linux-next: build warning after merge of the tip tree
Subsystems (2)
Hi all,
After merging the tip tree, today's linux-next build (x86_64 allmodconfig) produced this warning:
vmlinux.o: warning: objtool: fred_extint+0x1c: call to array_index_mask_nospec.constprop.0() leaves .noinstr.text section
Probably introduced by commit
6786137bf8fd ("x86/fred: FRED entry/exit and dispatch code")
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 11 lines · Stephen Rothwell
Hi all,
After merging the tip tree, today's linux-next build (
x86_64allmodconfig) produced this warning:vmlinux.o: warning: objtool:
fred_extint+0x1c: call to array_index_mask_nospec.constprop.0() leaves .noinstr.text sectionProbably introduced by commit
6786137bf8fd ("x86/fred: FRED entry/exit and dispatch code")
Thanks for reporting, I will take care of it.
Xin
Quoted 11 lines · Stephen Rothwell
Hi all,
After merging the tip tree, today's linux-next build (
x86_64allmodconfig) produced this warning:vmlinux.o: warning: objtool:
fred_extint+0x1c: call to array_index_mask_nospec.constprop.0() leaves .noinstr.text sectionProbably introduced by commit
6786137bf8fd ("x86/fred: FRED entry/exit and dispatch code")
The following patch gets rid of the warning.
Boris, should I send a format patch?
Thanks!
Xin
arch/x86/include/asm/barrier.h +1 -1
@@ -33,7 +33,7 @@* Returns: * 0 - (index < size) */ -static inline unsigned long array_index_mask_nospec (unsigned long index, +static __always_inline unsigned long array_index_mask_nospec (unsigned long index,unsigned long size) {unsigned long mask;
Borislav Petkov
maintainerQuoted 3 lines · Xin Li
The following patch gets rid of the warning.
Boris, should I send a format patch?
This is how kernel development is usually done. People send formal patches and maintainers apply them.
:-)
Make sure you explain why you're fixing it.
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette