]> Git Repo - linux.git/commitdiff
x86/boot/compressed: Fix debug_puthex() parameter type
authorJoerg Roedel <[email protected]>
Thu, 19 Mar 2020 09:13:07 +0000 (10:13 +0100)
committerBorislav Petkov <[email protected]>
Sat, 28 Mar 2020 11:14:26 +0000 (12:14 +0100)
In the CONFIG_X86_VERBOSE_BOOTUP=Y case, the debug_puthex() macro just
turns into __puthex(), which takes 'unsigned long' as parameter.

But in the CONFIG_X86_VERBOSE_BOOTUP=N case, it is a function which
takes 'unsigned char *', causing compile warnings when the function is
used. Fix the parameter type to get rid of the warnings.

Signed-off-by: Joerg Roedel <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/boot/compressed/misc.h

index c8181392f70d7d19b8f806c667ea8770a1090664..726e264410ffc9ff7e8593bf94e53c73381beb9a 100644 (file)
@@ -59,7 +59,7 @@ void __puthex(unsigned long value);
 
 static inline void debug_putstr(const char *s)
 { }
-static inline void debug_puthex(const char *s)
+static inline void debug_puthex(unsigned long value)
 { }
 #define debug_putaddr(x) /* */
 
This page took 0.058639 seconds and 4 git commands to generate.