[arm-platforms:hack/ppi 17/25] kernel/irq/irqdomain.c:922:1: warning: control reaches end of non-void function

kernel test robot lkp at intel.com
Sun Apr 6 02:04:27 PDT 2025


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git hack/ppi
head:   aefa1f7be0ec85eaa2d21637deea85660d4c153a
commit: 56d963e82dae51037c004093c820370a4ad96cba [17/25] WIP
config: powerpc64-randconfig-002-20250406 (https://download.01.org/0day-ci/archive/20250406/202504061643.olUiUk0A-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250406/202504061643.olUiUk0A-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504061643.olUiUk0A-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/irq/irqdomain.c: In function 'irq_populate_fwspec_info':
   kernel/irq/irqdomain.c:916:29: error: 'const struct irq_domain_ops' has no member named 'get_info'
     if (!domain || !domain->ops->get_info) {
                                ^~
   kernel/irq/irqdomain.c:921:20: error: 'const struct irq_domain_ops' has no member named 'get_info'
     return domain->ops->get_info(info);
                       ^~
>> kernel/irq/irqdomain.c:922:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^


vim +922 kernel/irq/irqdomain.c

   910	
   911	int irq_populate_fwspec_info(struct irq_fwspec_info *info)
   912	{
   913		struct irq_domain *domain;
   914	
   915		domain = fwspec_to_domain(&info->fwspec);
 > 916		if (!domain || !domain->ops->get_info) {
   917			info->flags = 0;
   918			return 0;
   919		}
   920	
   921		return domain->ops->get_info(info);
 > 922	}
   923	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the linux-arm-kernel mailing list