Re: [PATCH] x86/microcode: make stub function static inline

From: Borislav Petkov
Date: Thu Dec 12 2019 - 03:58:16 EST


On Wed, Dec 11, 2019 at 06:33:53PM -0500, Valdis KlÄtnieks wrote:
> Were you building with W=1 (so gcc issues extra warnings) and C=1 or 2
> so sparse is run?

[boris@zn: ~/kernel/linux> make W=1 C=1 arch/x86/kernel/cpu/microcode/
...

LINK /mnt/kernel/kernel/linux/tools/objtool/objtool
CHECK arch/x86/kernel/cpu/microcode/core.c
CC arch/x86/kernel/cpu/microcode/core.o
CHECK arch/x86/kernel/cpu/microcode/intel.c
CC arch/x86/kernel/cpu/microcode/intel.o
CHECK arch/x86/kernel/cpu/microcode/amd.c
arch/x86/kernel/cpu/microcode/amd.c:421:35: warning: Using plain integer as NULL pointer
arch/x86/kernel/cpu/microcode/amd.c:546:35: warning: Using plain integer as NULL pointer
CC arch/x86/kernel/cpu/microcode/amd.o
AR arch/x86/kernel/cpu/microcode/built-in.a

[boris@zn: ~/kernel/linux> git clean -dqfx

...

[boris@zn: ~/kernel/linux> make W=1 C=2 arch/x86/kernel/cpu/microcode/

LINK /mnt/kernel/kernel/linux/tools/objtool/objtool
CHECK arch/x86/kernel/cpu/microcode/core.c
CC arch/x86/kernel/cpu/microcode/core.o
CHECK arch/x86/kernel/cpu/microcode/intel.c
CC arch/x86/kernel/cpu/microcode/intel.o
CHECK arch/x86/kernel/cpu/microcode/amd.c
arch/x86/kernel/cpu/microcode/amd.c:421:35: warning: Using plain integer as NULL pointer
arch/x86/kernel/cpu/microcode/amd.c:546:35: warning: Using plain integer as NULL pointer
CC arch/x86/kernel/cpu/microcode/amd.o
AR arch/x86/kernel/cpu/microcode/built-in.a


--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette