tree:
https://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git ps3-queue
head: 2adf05b3045d10e1cd25d8db99608f4c77482caf
commit: 89d4e3c1761b6f437a2c50cd04470068ba59ade9 [6/14] ps3-debugging: Setup DABR
register
config: powerpc-randconfig-r023-20210315 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
a28facba1ccdc957f386b7753f4958307f1bfde8)
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
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git/commi...
git remote add ps3
https://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git
git fetch --no-tags ps3 ps3-queue
git checkout 89d4e3c1761b6f437a2c50cd04470068ba59ade9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> arch/powerpc/kernel/process.c:675:6: error: no previous prototype
for function 'do_break' [-Werror,-Wmissing-prototypes]
void do_break
(struct pt_regs *regs, unsigned long address,
^
arch/powerpc/kernel/process.c:675:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
void do_break (struct pt_regs *regs, unsigned long address,
^
static
1 error generated.
vim +/do_break +675 arch/powerpc/kernel/process.c
674
675 void do_break (struct pt_regs *regs, unsigned long address,
676 unsigned long error_code)
677 {
678 current->thread.trap_nr = TRAP_HWBKPT;
679 if (notify_die(DIE_DABR_MATCH, "dabr_match", regs, error_code,
680 11, SIGSEGV) == NOTIFY_STOP)
681 return;
682
683 if (debugger_break_match(regs))
684 return;
685
686 /*
687 * We reach here only when watchpoint exception is generated by ptrace
688 * event (or hw is buggy!). Now if CONFIG_HAVE_HW_BREAKPOINT is set,
689 * watchpoint is already handled by hw_breakpoint_handler() so we don't
690 * have to do anything. But when CONFIG_HAVE_HW_BREAKPOINT is not set,
691 * we need to manually handle the watchpoint here.
692 */
693 if (!IS_ENABLED(CONFIG_HAVE_HW_BREAKPOINT))
694 do_break_handler(regs);
695
696 /* Deliver the signal to userspace */
697 force_sig_fault(SIGTRAP, TRAP_HWBKPT, (void __user *)address);
698 }
699 #endif /* CONFIG_PPC_ADV_DEBUG_REGS */
700
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org