All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm-platforms:irq/domain_cleanup 17/17] include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq'
@ 2021-05-13 15:36 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-13 15:36 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: kbuild-all, clang-built-linux, linux-arm-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/domain_cleanup
head:   5a65598a27f5f18b56e0f471925ccfa02e56ca84
commit: 5a65598a27f5f18b56e0f471925ccfa02e56ca84 [17/17] genirq: Move non-irqdomain handle_domain_irq() handling into ARM's handle_IRQ()
config: powerpc-randconfig-r035-20210513 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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/maz/arm-platforms.git/commit/?id=5a65598a27f5f18b56e0f471925ccfa02e56ca84
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms irq/domain_cleanup
        git checkout 5a65598a27f5f18b56e0f471925ccfa02e56ca84
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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 >>):

   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:23:
   In file included from arch/powerpc/include/asm/irq.h:9:
   include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq' [-Werror,-Wimplicit-function-declaration]
           return irq_desc_get_irq(desc);
                  ^
   include/linux/irqdomain.h:420:9: note: did you mean 'irq_get_next_irq'?
   include/linux/irqnr.h:10:14: note: 'irq_get_next_irq' declared here
   unsigned int irq_get_next_irq(unsigned int offset);
                ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:584:
   include/linux/irqdesc.h:127:28: error: static declaration of 'irq_desc_get_irq' follows non-static declaration
   static inline unsigned int irq_desc_get_irq(struct irq_desc *desc)
                              ^
   include/linux/irqdomain.h:420:9: note: previous implicit declaration is here
           return irq_desc_get_irq(desc);
                  ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:584:
>> include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq' [-Wmissing-prototypes]
   int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
       ^
   include/linux/irqdesc.h:178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
   ^
   static 
   1 warning and 2 errors generated.
--
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:23:
   In file included from arch/powerpc/include/asm/irq.h:9:
   include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq' [-Werror,-Wimplicit-function-declaration]
           return irq_desc_get_irq(desc);
                  ^
   include/linux/irqdomain.h:420:9: note: did you mean 'irq_get_next_irq'?
   include/linux/irqnr.h:10:14: note: 'irq_get_next_irq' declared here
   unsigned int irq_get_next_irq(unsigned int offset);
                ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:584:
   include/linux/irqdesc.h:127:28: error: static declaration of 'irq_desc_get_irq' follows non-static declaration
   static inline unsigned int irq_desc_get_irq(struct irq_desc *desc)
                              ^
   include/linux/irqdomain.h:420:9: note: previous implicit declaration is here
           return irq_desc_get_irq(desc);
                  ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:584:
>> include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq' [-Wmissing-prototypes]
   int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
       ^
   include/linux/irqdesc.h:178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
   ^
   static 
   1 warning and 2 errors generated.
   make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1227: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:215: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/generic_handle_domain_irq +178 include/linux/irqdesc.h

   171	
   172	int handle_domain_irq(struct irq_domain *domain,
   173			      unsigned int hwirq, struct pt_regs *regs);
   174	
   175	int handle_domain_nmi(struct irq_domain *domain, unsigned int hwirq,
   176			      struct pt_regs *regs);
   177	#else
 > 178	int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
   179	{
   180		return -EINVAL;
   181	}
   182	#endif
   183	

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

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [arm-platforms:irq/domain_cleanup 17/17] include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq'
@ 2021-05-13 15:36 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-13 15:36 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/domain_cleanup
head:   5a65598a27f5f18b56e0f471925ccfa02e56ca84
commit: 5a65598a27f5f18b56e0f471925ccfa02e56ca84 [17/17] genirq: Move non-irqdomain handle_domain_irq() handling into ARM's handle_IRQ()
config: powerpc-randconfig-r035-20210513 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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/maz/arm-platforms.git/commit/?id=5a65598a27f5f18b56e0f471925ccfa02e56ca84
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms irq/domain_cleanup
        git checkout 5a65598a27f5f18b56e0f471925ccfa02e56ca84
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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 >>):

   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:23:
   In file included from arch/powerpc/include/asm/irq.h:9:
   include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq' [-Werror,-Wimplicit-function-declaration]
           return irq_desc_get_irq(desc);
                  ^
   include/linux/irqdomain.h:420:9: note: did you mean 'irq_get_next_irq'?
   include/linux/irqnr.h:10:14: note: 'irq_get_next_irq' declared here
   unsigned int irq_get_next_irq(unsigned int offset);
                ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:584:
   include/linux/irqdesc.h:127:28: error: static declaration of 'irq_desc_get_irq' follows non-static declaration
   static inline unsigned int irq_desc_get_irq(struct irq_desc *desc)
                              ^
   include/linux/irqdomain.h:420:9: note: previous implicit declaration is here
           return irq_desc_get_irq(desc);
                  ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:584:
>> include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq' [-Wmissing-prototypes]
   int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
       ^
   include/linux/irqdesc.h:178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
   ^
   static 
   1 warning and 2 errors generated.
--
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:23:
   In file included from arch/powerpc/include/asm/irq.h:9:
   include/linux/irqdomain.h:420:9: error: implicit declaration of function 'irq_desc_get_irq' [-Werror,-Wimplicit-function-declaration]
           return irq_desc_get_irq(desc);
                  ^
   include/linux/irqdomain.h:420:9: note: did you mean 'irq_get_next_irq'?
   include/linux/irqnr.h:10:14: note: 'irq_get_next_irq' declared here
   unsigned int irq_get_next_irq(unsigned int offset);
                ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:584:
   include/linux/irqdesc.h:127:28: error: static declaration of 'irq_desc_get_irq' follows non-static declaration
   static inline unsigned int irq_desc_get_irq(struct irq_desc *desc)
                              ^
   include/linux/irqdomain.h:420:9: note: previous implicit declaration is here
           return irq_desc_get_irq(desc);
                  ^
   In file included from arch/powerpc/kernel/asm-offsets.c:23:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/powerpc/include/asm/hardirq.h:6:
   In file included from include/linux/irq.h:584:
>> include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq' [-Wmissing-prototypes]
   int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
       ^
   include/linux/irqdesc.h:178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
   ^
   static 
   1 warning and 2 errors generated.
   make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1227: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:215: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/generic_handle_domain_irq +178 include/linux/irqdesc.h

   171	
   172	int handle_domain_irq(struct irq_domain *domain,
   173			      unsigned int hwirq, struct pt_regs *regs);
   174	
   175	int handle_domain_nmi(struct irq_domain *domain, unsigned int hwirq,
   176			      struct pt_regs *regs);
   177	#else
 > 178	int generic_handle_domain_irq(struct irq_domain *domain, unsigned int hwirq)
   179	{
   180		return -EINVAL;
   181	}
   182	#endif
   183	

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

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

end of thread, other threads:[~2021-05-13 15:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 15:36 [arm-platforms:irq/domain_cleanup 17/17] include/linux/irqdesc.h:178:5: warning: no previous prototype for function 'generic_handle_domain_irq' kernel test robot
2021-05-13 15:36 ` 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.