From: Joerg Roedel Date: Thu, 19 Mar 2020 09:13:07 +0000 (+0100) Subject: x86/boot/compressed: Fix debug_puthex() parameter type X-Git-Tag: v5.10.7~2965^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c90beea22a2bece4b0bbb39789bf835504421594;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20200319091407.1481-11-joro@8bytes.org --- diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h index c818139..726e264 100644 --- a/arch/x86/boot/compressed/misc.h +++ b/arch/x86/boot/compressed/misc.h @@ -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) /* */