[arm-platforms:irq/generic_handle_domain_irq 16/22] kernel/irq/chip.c:501:13: error: static declaration of 'handle_nested_irq' follows non-static declaration

kernel test robot lkp at intel.com
Tue Jul 27 10:55:49 PDT 2021


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git irq/generic_handle_domain_irq
head:   d3126d1af248cba3b70342748d77c2825f37eec2
commit: 56b521c481e166d4c7c488bc59752d96f9723b64 [16/22] genirq: Extract __handle_nested_irq() as a primitive for handle_hested_irq()
config: csky-randconfig-s032-20210727 (attached as .config)
compiler: csky-linux-gcc (GCC) 10.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=56b521c481e166d4c7c488bc59752d96f9723b64
        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/generic_handle_domain_irq
        git checkout 56b521c481e166d4c7c488bc59752d96f9723b64
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=csky SHELL=/bin/bash drivers/gpio/ kernel/irq/

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

All error/warnings (new ones prefixed by >>):

>> kernel/irq/chip.c:458:6: warning: no previous prototype for '__handle_nested_irq_desc' [-Wmissing-prototypes]
     458 | void __handle_nested_irq_desc(struct irq_desc *desc)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/irq/chip.c:501:13: error: static declaration of 'handle_nested_irq' follows non-static declaration
     501 | static void handle_nested_irq(unsigned int irq)
         |             ^~~~~~~~~~~~~~~~~
   In file included from kernel/irq/chip.c:11:
   include/linux/irq.h:660:13: note: previous declaration of 'handle_nested_irq' was here
     660 | extern void handle_nested_irq(unsigned int irq);
         |             ^~~~~~~~~~~~~~~~~
   kernel/irq/chip.c:501:13: warning: 'handle_nested_irq' defined but not used [-Wunused-function]
     501 | static void handle_nested_irq(unsigned int irq)
         |             ^~~~~~~~~~~~~~~~~


vim +/handle_nested_irq +501 kernel/irq/chip.c

   449	
   450	/*
   451	 *	__handle_nested_irq_desc - Handle a nested irq from a irq thread
   452	 *	@desc:	the interrupt descriptor
   453	 *
   454	 *	Handle interrupts which are nested into a threaded interrupt
   455	 *	handler. The handler function is called inside the calling
   456	 *	threads context.
   457	 */
 > 458	void __handle_nested_irq_desc(struct irq_desc *desc)
   459	{
   460		struct irqaction *action;
   461		irqreturn_t action_ret;
   462	
   463		might_sleep();
   464	
   465		raw_spin_lock_irq(&desc->lock);
   466	
   467		desc->istate &= ~(IRQS_REPLAY | IRQS_WAITING);
   468	
   469		action = desc->action;
   470		if (unlikely(!action || irqd_irq_disabled(&desc->irq_data))) {
   471			desc->istate |= IRQS_PENDING;
   472			goto out_unlock;
   473		}
   474	
   475		kstat_incr_irqs_this_cpu(desc);
   476		irqd_set(&desc->irq_data, IRQD_IRQ_INPROGRESS);
   477		raw_spin_unlock_irq(&desc->lock);
   478	
   479		action_ret = IRQ_NONE;
   480		for_each_action_of_desc(desc, action)
   481			action_ret |= action->thread_fn(action->irq, action->dev_id);
   482	
   483		if (!irq_settings_no_debug(desc))
   484			note_interrupt(desc, action_ret);
   485	
   486		raw_spin_lock_irq(&desc->lock);
   487		irqd_clear(&desc->irq_data, IRQD_IRQ_INPROGRESS);
   488	
   489	out_unlock:
   490		raw_spin_unlock_irq(&desc->lock);
   491	}
   492	
   493	/*
   494	 *	handle_nested_irq - Handle a nested irq from a irq thread
   495	 *	@irq:	the interrupt number
   496	 *
   497	 *	Handle interrupts which are nested into a threaded interrupt
   498	 *	handler. The handler function is called inside the calling
   499	 *	threads context.
   500	 */
 > 501	static void handle_nested_irq(unsigned int irq)
   502	{
   503		__handle_nested_irq(irq_to_desc(irq));
   504	}
   505	EXPORT_SYMBOL_GPL(handle_nested_irq);
   506	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 33991 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210728/a2cfcb59/attachment-0001.gz>


More information about the linux-arm-kernel mailing list