Bug 203609

Summary: Build error: implicit declaration of function 'cpu_mitigations_off'
Product: Platform Specific/Hardware Reporter: jason
Component: PPC-64Assignee: platform_ppc-64
Status: RESOLVED CODE_FIX    
Severity: normal CC: michael
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.19.43 and 4.14.119 Subsystem:
Regression: No Bisected commit-id:
Attachments: Build log

Description jason 2019-05-15 13:36:41 UTC
Created attachment 282765 [details]
Build log

This just showed up in 4.19.43 and 4.14.119. 4.19.42 and 4.14.118 were fine. I'm building with GCC 8.3 for ppc64el. 4.19.43 and 4.14.119 also build fine for 32- and 64-bit x86.

arch/powerpc/kernel/security.c: In function 'setup_barrier_nospec':
arch/powerpc/kernel/security.c:59:21: error: implicit declaration of function 'cpu_mitigations_off' [-Werror=implicit-function-declaration]
  if (!no_nospec && !cpu_mitigations_off())
                     ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
scripts/Makefile.build:303: recipe for target 'arch/powerpc/kernel/security.o' failed
make[1]: *** [arch/powerpc/kernel/security.o] Error 1
Makefile:1051: recipe for target 'arch/powerpc/kernel' failed
make: *** [arch/powerpc/kernel] Error 2
Comment 1 Michael Ellerman 2019-05-16 13:49:57 UTC
This should be fixed in 4.19.44 and 4.14.120 which will be released soon.