Skip to contentSkip to conversation

New: Build error: implicit declaration of function 'cpu_mitigations_off'

Bug 203609 [email protected] 1 participant 3 messages May 15, 2019 – May 16, 2019

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=203609

            Bug ID: 203609
           Summary: Build error: implicit declaration of function
                    'cpu_mitigations_off'
           Product: Platform Specific/Hardware
           Version: 2.5
    Kernel Version: 4.19.43 and 4.14.119
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: PPC-64
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Created attachment 282765
--> https://bugzilla.kernel.org/attachment.cgi?id=282765&action=edit
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

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 203609] Build error: implicit declaration of function 'cpu_mitigations_off'

https://bugzilla.kernel.org/show_bug.cgi?id=203609

Michael Ellerman ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |ASSIGNED
                 CC|                            |[email protected]

--- Comment #1 from Michael Ellerman ([email protected]) --- This should be fixed in 4.19.44 and 4.14.120 which will be released soon.

Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw

[Bug 203609] Build error: implicit declaration of function 'cpu_mitigations_off'

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=203609

Michael Ellerman ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |CODE_FIX
Signature · 2 lines
You are receiving this mail because:
You are watching the assignee of the bug.