Re: [PATCH] genirq: Own affinity hint

From: kernel test robot
Date: Wed Oct 25 2023 - 14:49:30 EST


Hi Jakub,

kernel test robot noticed the following build warnings:

[auto build test WARNING on tip/irq/core]
[also build test WARNING on linus/master v6.6-rc7 next-20231025]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Jakub-Sitnicki/genirq-Own-affinity-hint/20231026-001606
base: tip/irq/core
patch link: https://lore.kernel.org/r/20231025141517.375378-1-jakub%40cloudflare.com
patch subject: [PATCH] genirq: Own affinity hint
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20231026/202310260237.0IF4S81f-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231026/202310260237.0IF4S81f-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310260237.0IF4S81f-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

kernel/irq/irqdesc.c: In function 'alloc_masks':
>> kernel/irq/irqdesc.c:79:1: warning: label 'err_effective_affinity' defined but not used [-Wunused-label]
79 | err_effective_affinity:
| ^~~~~~~~~~~~~~~~~~~~~~
>> kernel/irq/irqdesc.c:75:1: warning: label 'err_pending_mask' defined but not used [-Wunused-label]
75 | err_pending_mask:
| ^~~~~~~~~~~~~~~~


vim +/err_effective_affinity +79 kernel/irq/irqdesc.c

68
69 #ifdef CONFIG_GENERIC_PENDING_IRQ
70 if (!zalloc_cpumask_var_node(&desc->pending_mask, GFP_KERNEL, node))
71 goto err_pending_mask;
72 #endif
73 return 0;
74
> 75 err_pending_mask:
76 #ifdef CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK
77 free_cpumask_var(desc->irq_common_data.effective_affinity);
78 #endif
> 79 err_effective_affinity:
80 free_cpumask_var(desc->irq_common_data.affinity_hint);
81 err_affinity_hint:
82 free_cpumask_var(desc->irq_common_data.affinity);
83 err_affinity:
84 return -ENOMEM;
85 }
86

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