All of lore.kernel.org
 help / color / mirror / Atom feed
* [mark-rutland:arm64/entry/rework 16/16] arch/arm64/kernel/entry-common.c:346:25: warning: no previous prototype for function 'el1_irq_handler'
@ 2021-03-11 22:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-11 22:39 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/entry/rework
head:   c7071810c4aa3f59ecec504f7661d6cb8bb9b94f
commit: c7071810c4aa3f59ecec504f7661d6cb8bb9b94f [16/16] arm64: entry: convert irq handlers to C
config: arm64-randconfig-r014-20210311 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 574a9dabc63ba1e7a04c08d4bde2eacd61b44ce1)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=c7071810c4aa3f59ecec504f7661d6cb8bb9b94f
        git remote add mark-rutland https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark-rutland arm64/entry/rework
        git checkout c7071810c4aa3f59ecec504f7661d6cb8bb9b94f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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/entry-common.c:346:25: warning: no previous prototype for function 'el1_irq_handler' [-Wmissing-prototypes]
   asmlinkage void noinstr el1_irq_handler(struct pt_regs *regs)
                           ^
   arch/arm64/kernel/entry-common.c:346:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void noinstr el1_irq_handler(struct pt_regs *regs)
              ^
              static 
>> arch/arm64/kernel/entry-common.c:351:25: warning: no previous prototype for function 'el1_fiq_handler' [-Wmissing-prototypes]
   asmlinkage void noinstr el1_fiq_handler(struct pt_regs *regs)
                           ^
   arch/arm64/kernel/entry-common.c:351:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void noinstr el1_fiq_handler(struct pt_regs *regs)
              ^
              static 
   arch/arm64/kernel/entry-common.c:356:25: warning: no previous prototype for function 'el1_error_handler' [-Wmissing-prototypes]
   asmlinkage void noinstr el1_error_handler(struct pt_regs *regs)
                           ^
   arch/arm64/kernel/entry-common.c:356:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void noinstr el1_error_handler(struct pt_regs *regs)
              ^
              static 
>> arch/arm64/kernel/entry-common.c:576:25: warning: no previous prototype for function 'el0_irq_handler' [-Wmissing-prototypes]
   asmlinkage void noinstr el0_irq_handler(struct pt_regs *regs)
                           ^
   arch/arm64/kernel/entry-common.c:576:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void noinstr el0_irq_handler(struct pt_regs *regs)
              ^
              static 
>> arch/arm64/kernel/entry-common.c:581:25: warning: no previous prototype for function 'el0_fiq_handler' [-Wmissing-prototypes]
   asmlinkage void noinstr el0_fiq_handler(struct pt_regs *regs)
                           ^
   arch/arm64/kernel/entry-common.c:581:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void noinstr el0_fiq_handler(struct pt_regs *regs)
              ^
              static 
   arch/arm64/kernel/entry-common.c:586:25: warning: no previous prototype for function 'el0_error_handler' [-Wmissing-prototypes]
   asmlinkage void noinstr el0_error_handler(struct pt_regs *regs)
                           ^
   arch/arm64/kernel/entry-common.c:586:12: note: declare 'static' if the function is not intended to be used outside of this translation unit
   asmlinkage void noinstr el0_error_handler(struct pt_regs *regs)
              ^
              static 
   6 warnings generated.


vim +/el1_irq_handler +346 arch/arm64/kernel/entry-common.c

   345	
 > 346	asmlinkage void noinstr el1_irq_handler(struct pt_regs *regs)
   347	{
   348		el1_interrupt(regs, handle_arch_irq);
   349	}
   350	
 > 351	asmlinkage void noinstr el1_fiq_handler(struct pt_regs *regs)
   352	{
   353		el1_interrupt(regs, handle_arch_fiq);
   354	}
   355	
 > 356	asmlinkage void noinstr el1_error_handler(struct pt_regs *regs)
   357	{
   358		unsigned long esr = read_sysreg(esr_el1);
   359	
   360		if (system_uses_irq_prio_masking())
   361			gic_write_pmr(GIC_PRIO_IRQON | GIC_PRIO_PSR_I_SET);
   362	
   363		local_daif_restore(DAIF_ERRCTX);
   364		do_serror(regs, esr);
   365	}
   366	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37775 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-11 22:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 22:39 [mark-rutland:arm64/entry/rework 16/16] arch/arm64/kernel/entry-common.c:346:25: warning: no previous prototype for function 'el1_irq_handler' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.