From: kernel test robot <lkp@intel.com>
To: Nicholas Piggin <npiggin@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org, kbuild-all@lists.01.org
Subject: [powerpc:next-test 119/124] arch/powerpc/kernel/interrupt.c:378:23: warning: no previous prototype for 'syscall_exit_restart'
Date: Wed, 16 Jun 2021 03:48:39 +0800 [thread overview]
Message-ID: <202106160330.K2Qy43ee-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3347 bytes --]
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 <lkp@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-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 73399 bytes --]
reply other threads:[~2021-06-15 19:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202106160330.K2Qy43ee-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=npiggin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).