Bug 203609 - Build error: implicit declaration of function 'cpu_mitigations_off'
Summary: Build error: implicit declaration of function 'cpu_mitigations_off'
Status: RESOLVED CODE_FIX
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: PPC-64 (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: platform_ppc-64
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-15 13:36 UTC by jason
Modified: 2019-05-16 13:50 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.19.43 and 4.14.119
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Build log (9.56 KB, text/plain)
2019-05-15 13:36 UTC, jason
Details

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.

Note You need to log in before you can comment on or make changes to this bug.