* [conor:qwip 10/15] drivers/irqchip/irq-mpfs-mux.c:215:6: warning: variable 'mask' set but not used
@ 2024-05-09 22:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-09 22:26 UTC (permalink / raw)
To: Conor Dooley; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git qwip
head: 520f2563214599bc3abdd1aa6f127f67e084e65f
commit: c0ea499b12c76ccd8bceafc3ee52ba5655125837 [10/15] irqchip: add mpfs gpio interrupt mux
config: riscv-defconfig (https://download.01.org/0day-ci/archive/20240510/202405100628.xntHTI5e-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project b910bebc300dafb30569cecc3017b446ea8eafa0)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240510/202405100628.xntHTI5e-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405100628.xntHTI5e-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/irqchip/irq-mpfs-mux.c:11:
In file included from include/linux/interrupt.h:21:
In file included from arch/riscv/include/asm/sections.h:9:
In file included from include/linux/mm.h:2208:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> drivers/irqchip/irq-mpfs-mux.c:215:6: warning: variable 'mask' set but not used [-Wunused-but-set-variable]
215 | u64 mask;
| ^
2 warnings generated.
vim +/mask +215 drivers/irqchip/irq-mpfs-mux.c
207
208 static int mpfs_irq_mux_alloc(struct irq_domain *d, unsigned int virq,
209 unsigned int nr_irqs, void *arg)
210 {
211 struct mpfs_irq_mux *priv = d->host_data;
212 struct irq_fwspec *fwspec = arg;
213 struct irq_fwspec parent_fwspec;
214 unsigned int bank, line, irq;
> 215 u64 mask;
216
217 if (!mpfs_irq_mux_is_direct(priv, fwspec))
218 return mpfs_irq_mux_nondirect_alloc(d, virq, fwspec, priv);
219
220 bank = fwspec->param[0] / MPFS_MAX_IRQS_PER_GPIO;
221 line = fwspec->param[0] % MPFS_MAX_IRQS_PER_GPIO;
222 mask = mpfs_irq_mux_bank_configs[bank].mask;
223 irq = line + mpfs_irq_mux_bank_configs[bank].shift;
224
225 parent_fwspec.fwnode = d->parent->fwnode;
226 parent_fwspec.param[0] = priv->parent_irqs[irq];
227 parent_fwspec.param_count = 1;
228
229 irq_domain_set_hwirq_and_chip(d, virq, fwspec->param[0], &mpfs_irq_mux_irq_chip, priv);
230
231 return irq_domain_alloc_irqs_parent(d, virq, 1, &parent_fwspec);
232 }
233
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-09 22:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-09 22:26 [conor:qwip 10/15] drivers/irqchip/irq-mpfs-mux.c:215:6: warning: variable 'mask' set but not used 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.