tree:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git 
next-test
head:   103bf32b0d2dd8b8a4d3d9ebdded5ba4e8263e6a
commit: 88a293b28ae07acc86b09ebbe8715bcee412a63e [119/124] powerpc/64: use 
interrupt restart table to speed up return from interrupt
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.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/powerpc/linux.git/commit/?id=88a293b28ae07acc86b09ebbe8715bcee412a63e
        git remote add powerpc 
https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git
        git fetch --no-tags powerpc next-test
        git checkout 88a293b28ae07acc86b09ebbe8715bcee412a63e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>

All warnings (new ones prefixed by >>):

   arch/powerpc/kernel/interrupt.c:246:23: warning: no previous prototype for 
'syscall_exit_prepare_main' [-Wmissing-prototypes]
     246 | notrace unsigned long syscall_exit_prepare_main(unsigned long r3,
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/kernel/interrupt.c:378:23: warning: no previous prototype for 
>> 'syscall_exit_restart' [-Wmissing-prototypes]
     378 | notrace unsigned long syscall_exit_restart(unsigned long r3, struct 
pt_regs *regs)
         |                       ^~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/kernel/interrupt.c:581:23: warning: no previous prototype for 
>> 'interrupt_exit_user_restart' [-Wmissing-prototypes]
     581 | notrace unsigned long interrupt_exit_user_restart(struct pt_regs 
*regs)
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/kernel/interrupt.c:601:23: warning: no previous prototype for 
>> 'interrupt_exit_kernel_restart' [-Wmissing-prototypes]
     601 | notrace unsigned long interrupt_exit_kernel_restart(struct pt_regs 
*regs)
         |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/syscall_exit_restart +378 arch/powerpc/kernel/interrupt.c

   376  
   377  #ifdef CONFIG_PPC64
 > 378  notrace unsigned long syscall_exit_restart(unsigned long r3, struct 
 > pt_regs *regs)
   379  {
   380          /*
   381           * This is called when detecting a soft-pending interrupt as 
well as
   382           * an alternate-return interrupt. So we can't just have the 
alternate
   383           * return path clear SRR1[MSR] and set PACA_IRQ_HARD_DIS (unless
   384           * the soft-pending case were to fix things up as well). RI 
might be
   385           * disabled, in which case it gets re-enabled by 
__hard_irq_disable().
   386           */
   387          __hard_irq_disable();
   388          local_paca->irq_happened |= PACA_IRQ_HARD_DIS;
   389  
   390          trace_hardirqs_off();
   391          user_exit_irqoff();
   392          account_cpu_user_entry();
   393  
   394          BUG_ON(!user_mode(regs));
   395  
   396          regs->exit_result |= syscall_exit_prepare_main(r3, regs);
   397  
   398          return regs->exit_result;
   399  }
   400  #endif
   401  

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

Attachment: .config.gz
Description: application/gzip

Reply via email to