Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1668804 > unrolled thread
| Started by | kbuild test robot <fengguang.wu@intel.com> |
|---|---|
| First post | 2017-06-19 08:10 +0200 |
| Last post | 2017-06-19 08:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[tip:WIP.irq 28/46] kernel/irq/proc.c:329: warning: unused variable 'irqp' kbuild test robot <fengguang.wu@intel.com> - 2017-06-19 08:10 +0200
| From | kbuild test robot <fengguang.wu@intel.com> |
|---|---|
| Date | 2017-06-19 08:10 +0200 |
| Subject | [tip:WIP.irq 28/46] kernel/irq/proc.c:329: warning: unused variable 'irqp' |
| Message-ID | <tTY2S-7lb-17@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.irq
head: 989f773f2a8a820efdb7895775a78f445ef7bd87
commit: fc6228af67f07a91af910029f8f49a3967e080ff [28/46] genirq/proc: Replace ever repeating type cast
config: x86_64-randconfig-a0-06191213 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
git checkout fc6228af67f07a91af910029f8f49a3967e080ff
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
kernel/irq/proc.c: In function 'register_irq_proc':
>> kernel/irq/proc.c:329: warning: unused variable 'irqp'
vim +/irqp +329 kernel/irq/proc.c
313 !name_unique(irq, action))
314 return;
315
316 snprintf(name, MAX_NAMELEN, "%s", action->name);
317
318 /* create /proc/irq/1234/handler/ */
319 action->dir = proc_mkdir(name, desc->dir);
320 }
321
322 #undef MAX_NAMELEN
323
324 #define MAX_NAMELEN 10
325
326 void register_irq_proc(unsigned int irq, struct irq_desc *desc)
327 {
328 static DEFINE_MUTEX(register_lock);
> 329 void *irqp = (void *)(unsigned long) irq;
330 char name [MAX_NAMELEN];
331
332 if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip))
333 return;
334
335 /*
336 * irq directories are registered only when a handler is
337 * added, not when the descriptor is created, so multiple
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Back to top | Article view | linux.kernel
csiph-web