]> git.baikalelectronics.ru Git - kernel.git/commit
x86/boot/compressed: Fix debug_puthex() parameter type
authorJoerg Roedel <jroedel@suse.de>
Thu, 19 Mar 2020 09:13:07 +0000 (10:13 +0100)
committerBorislav Petkov <bp@suse.de>
Sat, 28 Mar 2020 11:14:26 +0000 (12:14 +0100)
commitd945b3f5ec1c41d470e87d2865297aa0fbb05dc2
tree420900011b413e5b6dd85c9be300b2c4ceda5ca9
parent9cb4d6f5de642b3e2fdc3999a18cf88b820453fc
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 <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200319091407.1481-11-joro@8bytes.org
arch/x86/boot/compressed/misc.h