From: kernel test robot <lkp@intel.com>
To: Conor Dooley <conor+lkp@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [conor:qwip 10/15] drivers/irqchip/irq-mpfs-mux.c:215:6: warning: variable 'mask' set but not used
Date: Fri, 10 May 2024 06:26:34 +0800 [thread overview]
Message-ID: <202405100628.xntHTI5e-lkp@intel.com> (raw)
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
reply other threads:[~2024-05-09 22:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202405100628.xntHTI5e-lkp@intel.com \
--to=lkp@intel.com \
--cc=conor+lkp@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.