linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/arm64/kernel/syscall.c:164:6: warning: no previous prototype for 'do_el0_svc_compat'
@ 2021-01-14  2:41 kernel test robot
  2021-01-14 11:58 ` Mark Rutland
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-01-14  2:41 UTC (permalink / raw)
  To: Mark Rutland; +Cc: kbuild-all, linux-kernel, Will Deacon, Anshuman Khandual

[-- Attachment #1: Type: text/plain, Size: 1793 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   65f0d2414b7079556fbbcc070b3d1c9f9587606d
commit: 7a2c094464e39a54f5b9228cd78208cd43872bbd arm64: entry: cleanup el0 svc handler naming
date:   12 months ago
config: arm64-randconfig-r005-20210113 (attached as .config)
compiler: aarch64-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/torvalds/linux.git/commit/?id=7a2c094464e39a54f5b9228cd78208cd43872bbd
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 7a2c094464e39a54f5b9228cd78208cd43872bbd
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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/arm64/kernel/syscall.c:157:6: warning: no previous prototype for 'do_el0_svc' [-Wmissing-prototypes]
     157 | void do_el0_svc(struct pt_regs *regs)
         |      ^~~~~~~~~~
>> arch/arm64/kernel/syscall.c:164:6: warning: no previous prototype for 'do_el0_svc_compat' [-Wmissing-prototypes]
     164 | void do_el0_svc_compat(struct pt_regs *regs)
         |      ^~~~~~~~~~~~~~~~~


vim +/do_el0_svc_compat +164 arch/arm64/kernel/syscall.c

   162	
   163	#ifdef CONFIG_COMPAT
 > 164	void do_el0_svc_compat(struct pt_regs *regs)

---
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: 32507 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: arch/arm64/kernel/syscall.c:164:6: warning: no previous prototype for 'do_el0_svc_compat'
  2021-01-14  2:41 arch/arm64/kernel/syscall.c:164:6: warning: no previous prototype for 'do_el0_svc_compat' kernel test robot
@ 2021-01-14 11:58 ` Mark Rutland
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Rutland @ 2021-01-14 11:58 UTC (permalink / raw)
  To: kernel test robot
  Cc: kbuild-all, linux-kernel, Will Deacon, Anshuman Khandual

On Thu, Jan 14, 2021 at 10:41:59AM +0800, kernel test robot wrote:
> All warnings (new ones prefixed by >>):
> 
>    arch/arm64/kernel/syscall.c:157:6: warning: no previous prototype for 'do_el0_svc' [-Wmissing-prototypes]
>      157 | void do_el0_svc(struct pt_regs *regs)
>          |      ^~~~~~~~~~
> >> arch/arm64/kernel/syscall.c:164:6: warning: no previous prototype for 'do_el0_svc_compat' [-Wmissing-prototypes]
>      164 | void do_el0_svc_compat(struct pt_regs *regs)
>          |      ^~~~~~~~~~~~~~~~~

Looks like this is down to syscall.c not including <asm/exception.h>,
since do_el0_svc_compat() has a prototype there.

I'll spin a patch...

Mark.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-14 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14  2:41 arch/arm64/kernel/syscall.c:164:6: warning: no previous prototype for 'do_el0_svc_compat' kernel test robot
2021-01-14 11:58 ` Mark Rutland

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).