[linux-stable-rc:linux-4.19.y 2397/4040] arch/powerpc/kernel/traps.c:1341:5: error: no previous prototype for 'is_valid_bugaddr'

From: kernel test robot
Date: Wed Aug 11 2021 - 03:44:03 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: 5a3ba2f90f8789162a03e07a37224bab4c643d1d
commit: 57ac40ee09cea2ec90f71c6f49b15d0d82667b38 [2397/4040] powerpc: Drop -me200 addition to build flags
config: powerpc-randconfig-r004-20210810 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=57ac40ee09cea2ec90f71c6f49b15d0d82667b38
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout 57ac40ee09cea2ec90f71c6f49b15d0d82667b38
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=powerpc

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> arch/powerpc/kernel/traps.c:1341:5: error: no previous prototype for 'is_valid_bugaddr' [-Werror=missing-prototypes]
1341 | int is_valid_bugaddr(unsigned long addr)
| ^~~~~~~~~~~~~~~~
arch/powerpc/kernel/traps.c:1880:6: error: no previous prototype for 'DebugException' [-Werror=missing-prototypes]
1880 | void DebugException(struct pt_regs *regs, unsigned long debug_status)
| ^~~~~~~~~~~~~~
arch/powerpc/kernel/traps.c:1993:6: error: no previous prototype for 'CacheLockingException' [-Werror=missing-prototypes]
1993 | void CacheLockingException(struct pt_regs *regs, unsigned long address,
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
arch/powerpc/kernel/smp.c:445:5: error: no previous prototype for '__smp_send_nmi_ipi' [-Werror=missing-prototypes]
445 | int __smp_send_nmi_ipi(int cpu, void (*fn)(struct pt_regs *), u64 delay_us, bool safe)
| ^~~~~~~~~~~~~~~~~~
arch/powerpc/kernel/smp.c:521:6: error: no previous prototype for 'tick_broadcast' [-Werror=missing-prototypes]
521 | void tick_broadcast(const struct cpumask *mask)
| ^~~~~~~~~~~~~~
>> arch/powerpc/kernel/smp.c:531:6: error: no previous prototype for 'debugger_ipi_callback' [-Werror=missing-prototypes]
531 | void debugger_ipi_callback(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
--
>> arch/powerpc/mm/fsl_booke_mmu.c:70:15: error: no previous prototype for 'tlbcam_sz' [-Werror=missing-prototypes]
70 | unsigned long tlbcam_sz(int idx)
| ^~~~~~~~~
cc1: all warnings being treated as errors
--
In file included from arch/powerpc/xmon/xmon.c:67:
arch/powerpc/xmon/dis-asm.h: In function 'print_insn_powerpc':
arch/powerpc/xmon/dis-asm.h:20:13: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Werror=format=]
20 | printf("%.8x", insn);
| ~~~^ ~~~~
| | |
| | long unsigned int
| unsigned int
| %.8lx
arch/powerpc/xmon/dis-asm.h: In function 'print_insn_spu':
arch/powerpc/xmon/dis-asm.h:26:13: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Werror=format=]
26 | printf("%.8x", insn);
| ~~~^ ~~~~
| | |
| | long unsigned int
| unsigned int
| %.8lx
arch/powerpc/xmon/xmon.c: In function 'xmon_print_symbol':
>> arch/powerpc/xmon/xmon.c:3425:14: error: variable 'name' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
3425 | const char *name = NULL;
| ^~~~
arch/powerpc/xmon/xmon.c: In function 'show_tasks':
>> arch/powerpc/xmon/xmon.c:3107:22: error: variable 'tsk' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
3107 | struct task_struct *tsk = NULL;
| ^~~
arch/powerpc/xmon/xmon.c: In function 'xmon_core':
>> arch/powerpc/xmon/xmon.c:800:14: error: variable 'bp' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
800 | struct bpt *bp;
| ^~
>> arch/powerpc/xmon/xmon.c:800:14: error: variable 'bp' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
>> arch/powerpc/xmon/xmon.c:454:48: error: argument 'fromipi' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
454 | static int xmon_core(struct pt_regs *regs, int fromipi)
| ~~~~^~~~~~~
cc1: all warnings being treated as errors

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
WARNING: unmet direct dependencies detected for FSL_EMB_PERFMON
Depends on E500 || PPC_83xx
Selected by
- PPC_FSL_BOOK3E


vim +/is_valid_bugaddr +1341 arch/powerpc/kernel/traps.c

14cf11af6cf608 Paul Mackerras 2005-09-26 1340
73c9ceab40b126 Jeremy Fitzhardinge 2006-12-08 @1341 int is_valid_bugaddr(unsigned long addr)
14cf11af6cf608 Paul Mackerras 2005-09-26 1342 {
73c9ceab40b126 Jeremy Fitzhardinge 2006-12-08 1343 return is_kernel_addr(addr);
14cf11af6cf608 Paul Mackerras 2005-09-26 1344 }
14cf11af6cf608 Paul Mackerras 2005-09-26 1345

:::::: The code at line 1341 was first introduced by commit
:::::: 73c9ceab40b1269d6195e556773167c078ac8311 [POWERPC] Generic BUG for powerpc

:::::: TO: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
:::::: CC: Paul Mackerras <paulus@xxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip