* [lpieralisi:b4/acpi-static-table-irq-probe-defer-v2 3/10] sound/pci/es1968.c:115:12: warning: 'index' defined but not used
@ 2026-11-20 23:21 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-20 23:21 UTC (permalink / raw)
To: Lorenzo Pieralisi; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/linux.git b4/acpi-static-table-irq-probe-defer-v2
head: a75860f203b994ab67f8a876c7f568ac0f7f84c0
commit: 5df91ea5bcbef51cb967f3a07dd7c69c50681213 [3/10] ACPI: Introduce irq_get() for static fwnodes
config: i386-randconfig-r2100-20261120 (https://download.01.org/0day-ci/archive/20261121/20261121001458.PUFfptJo-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261121/20261121001458.PUFfptJo-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/20261121001458.PUFfptJo-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/i2c.h:13,
from include/media/v4l2-common.h:106,
from include/media/v4l2-subdev.h:15,
from include/media/v4l2-device.h:13,
from include/media/drv-intf/tea575x.h:14,
from sound/pci/es1968.c:102:
include/linux/acpi.h: In function 'acpi_static_fwnode_add_irq':
include/linux/acpi.h:71:10: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
71 | (FIELD_PREP(ACPI_STATIC_IRQ_TRIGGER_MASK, (trigger)) | \
| ^~~~~~~~~~
include/linux/acpi.h:126:22: note: in expansion of macro 'ACPI_STATIC_IRQ_FLAGS'
126 | irq->flags = ACPI_STATIC_IRQ_FLAGS(trigger, polarity);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/init.h:5,
from include/linux/io.h:11,
from sound/pci/es1968.c:83:
sound/pci/es1968.c: At top level:
include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^
include/linux/compiler.h:205:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
| ^~~~~~~~~~~~~~~
include/linux/moduleparam.h:544:20: note: in expansion of macro 'ARRAY_SIZE'
544 | = { .max = ARRAY_SIZE(array), .num = nump, \
| ^~~~~~~~~~
include/linux/moduleparam.h:528:9: note: in expansion of macro 'module_param_array_named'
528 | module_param_array_named(name, name, type, nump, perm)
| ^~~~~~~~~~~~~~~~~~~~~~~~
sound/pci/es1968.c:129:1: note: in expansion of macro 'module_param_array'
129 | module_param_array(index, int, NULL, 0444);
| ^~~~~~~~~~~~~~~~~~
>> sound/pci/es1968.c:115:12: warning: 'index' defined but not used [-Wunused-variable]
115 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 1-MAX */
| ^~~~~
vim +/index +115 sound/pci/es1968.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 114
^1da177e4c3f41 Linus Torvalds 2005-04-16 @115 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 1-MAX */
^1da177e4c3f41 Linus Torvalds 2005-04-16 116 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
a67ff6a54095e2 Rusty Russell 2011-12-15 117 static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; /* Enable this card */
^1da177e4c3f41 Linus Torvalds 2005-04-16 118 static int total_bufsize[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1024 };
^1da177e4c3f41 Linus Torvalds 2005-04-16 119 static int pcm_substreams_p[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4 };
^1da177e4c3f41 Linus Torvalds 2005-04-16 120 static int pcm_substreams_c[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1 };
6581f4e74d8541 Takashi Iwai 2006-05-17 121 static int clock[SNDRV_CARDS];
^1da177e4c3f41 Linus Torvalds 2005-04-16 122 static int use_pm[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2};
^1da177e4c3f41 Linus Torvalds 2005-04-16 123 static int enable_mpu[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2};
^1da177e4c3f41 Linus Torvalds 2005-04-16 124 #ifdef SUPPORT_JOYSTICK
a67ff6a54095e2 Rusty Russell 2011-12-15 125 static bool joystick[SNDRV_CARDS];
^1da177e4c3f41 Linus Torvalds 2005-04-16 126 #endif
d4ecc83b79cc29 Hans Verkuil 2012-02-27 127 static int radio_nr[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -1};
^1da177e4c3f41 Linus Torvalds 2005-04-16 128
:::::: The code at line 115 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
--
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:[~2026-11-20 23:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 23:21 [lpieralisi:b4/acpi-static-table-irq-probe-defer-v2 3/10] sound/pci/es1968.c:115:12: warning: 'index' defined 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.