Bug 210911 - error: implicit declaration of function 'cleanup_cpu_mmu_context' [-Werror=implicit-function-declaration]
Summary: error: implicit declaration of function 'cleanup_cpu_mmu_context' [-Werror=im...
Status: CLOSED CODE_FIX
Alias: None
Product: Platform Specific/Hardware
Classification: Unclassified
Component: PPC-32 (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: platform_ppc-32
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-26 18:02 UTC by jason
Modified: 2021-01-05 02:29 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.10.3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Kernel config file (222.96 KB, text/plain)
2020-12-26 18:02 UTC, jason
Details

Description jason 2020-12-26 18:02:54 UTC
Created attachment 294347 [details]
Kernel config file

This began to appear starting with 5.10 and continues with 5.10.3. I had no problems with the 5.9 series. I am building it with GCC 10.2. I have also tried going back to 9.3 but that makes no difference.

arch/powerpc/platforms/powermac/smp.c: In function 'smp_core99_cpu_disable':
arch/powerpc/platforms/powermac/smp.c:914:2: error: implicit declaration of function 'cleanup_cpu_mmu_context' [-Werror=implicit-function-declaration]
  914 |  cleanup_cpu_mmu_context();
      |  ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:279: recipe for target 'arch/powerpc/platforms/powermac/smp.o' failed
make[3]: *** [arch/powerpc/platforms/powermac/smp.o] Error 1
scripts/Makefile.build:496: recipe for target 'arch/powerpc/platforms/powermac' failed
make[2]: *** [arch/powerpc/platforms/powermac] Error 2
scripts/Makefile.build:496: recipe for target 'arch/powerpc/platforms' failed
make[1]: *** [arch/powerpc/platforms] Error 2
Makefile:1805: recipe for target 'arch/powerpc' failed
make: *** [arch/powerpc] Error 2
Comment 1 Michael Ellerman 2021-01-05 02:29:38 UTC
Fixed in c1bea0a840ac ("powerpc/32s: Fix cleanup_cpu_mmu_context() compile bug")

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