Skip to content

Commit c90beea

Browse files
joergroedelsuryasaimadhu
authored andcommitted
x86/boot/compressed: Fix debug_puthex() parameter type
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]
1 parent bac59d1 commit c90beea

File tree

1 file changed

+1
-1
lines changed
  • arch/x86/boot/compressed

1 file changed

+1
-1
lines changed

arch/x86/boot/compressed/misc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void __puthex(unsigned long value);
5959

6060
static inline void debug_putstr(const char *s)
6161
{ }
62-
static inline void debug_puthex(const char *s)
62+
static inline void debug_puthex(unsigned long value)
6363
{ }
6464
#define debug_putaddr(x) /* */
6565

0 commit comments

Comments
 (0)