Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1383739

[PATCH 3/5] x86, boot: Clean up things used by decompressors

From Kees Cook <keescook@chromium.org>
Newsgroups linux.kernel
Subject [PATCH 3/5] x86, boot: Clean up things used by decompressors
Date 2016-04-20 23:00 +0200
Message-ID <rq7o7-5F5-17@gated-at.bofh.it> (permalink)
References <rq7o5-5F5-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This rearranges the pieces needed to include the decompressor code
in misc.c. It wasn't obvious why things were there, so a comment was
added and definitions consolidated.

Signed-off-by: Kees Cook <keescook@chromium.org>
---
 arch/x86/boot/compressed/misc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c
index e96829bdb6d2..0381e250a785 100644
--- a/arch/x86/boot/compressed/misc.c
+++ b/arch/x86/boot/compressed/misc.c
@@ -21,19 +21,19 @@
  * it is not safe to place pointers in static structures.
  */
 
+/* Macros used by the included decompressor code below. */
 #define STATIC		static
 
-#undef memcpy
-
 /*
- * Use a normal definition of memset() from string.c. There are already
+ * Use normal definitions of mem*() from string.c. There are already
  * included header files which expect a definition of memset() and by
  * the time we define memset macro, it is too late.
  */
+#undef memcpy
 #undef memset
 #define memzero(s, n)	memset((s), 0, (n))
 
-
+/* Functions used by the included decompressor code below. */
 static void error(char *m);
 
 /*
-- 
2.6.3

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 3/5] x86, boot: Clean up things used by decompressors Kees Cook <keescook@chromium.org> - 2016-04-20 23:00 +0200
  [tip:x86/boot] x86/boot: Clean up things used by decompressors tip-bot for Kees Cook <tipbot@zytor.com> - 2016-04-22 11:50 +0200

csiph-web