[tiwai-sound:topic/pm-ops 5/29] sound/isa/cmi8330.c:55:12: warning: 'index' defined but not used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Takashi,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git topic/pm-ops
head:   2fe6ffd7c79f740b73533d44de3ae0e542674857
commit: 9757c2b93cfed03065a14a6cd817474891eb55fe [5/29] ALSA: als4000: Replace with DEFINE_SIMPLE_DEV_PM_OPS()
config: powerpc-randconfig-002-20240127 (https://download.01.org/0day-ci/archive/20240128/202401280946.VcZLwAbo-lkp@xxxxxxxxx/config)
compiler: powerpc-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240128/202401280946.VcZLwAbo-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/202401280946.VcZLwAbo-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   In file included from sound/isa/cmi8330.c:41:
   include/sound/sb.h:294:20: error: two or more data types in declaration specifiers
     294 | static inline void void snd_sbmixer_suspend(struct snd_sb *chip) {}
         |                    ^~~~
   include/sound/sb.h:295:20: error: two or more data types in declaration specifiers
     295 | static inline void void snd_sbmixer_resume(struct snd_sb *chip) {}
         |                    ^~~~
   In file included from include/linux/init.h:5,
                    from sound/isa/cmi8330.c:32:
   include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/compiler.h:228:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     228 | #define __must_be_array(a)      BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
         |                                 ^~~~~~~~~~~~~~~~~
   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:521:20: note: in expansion of macro 'ARRAY_SIZE'
     521 |         = { .max = ARRAY_SIZE(array), .num = nump,                      \
         |                    ^~~~~~~~~~
   include/linux/moduleparam.h:505:9: note: in expansion of macro 'module_param_array_named'
     505 |         module_param_array_named(name, name, type, nump, perm)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   sound/isa/cmi8330.c:72:1: note: in expansion of macro 'module_param_array'
      72 | module_param_array(index, int, NULL, 0444);
         | ^~~~~~~~~~~~~~~~~~
>> sound/isa/cmi8330.c:55:12: warning: 'index' defined but not used [-Wunused-variable]
      55 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
         |            ^~~~~
--
   In file included from sound/pci/cs5530.c:35:
   include/sound/sb.h:294:20: error: two or more data types in declaration specifiers
     294 | static inline void void snd_sbmixer_suspend(struct snd_sb *chip) {}
         |                    ^~~~
   include/sound/sb.h:295:20: error: two or more data types in declaration specifiers
     295 | static inline void void snd_sbmixer_resume(struct snd_sb *chip) {}
         |                    ^~~~
   In file included from include/linux/bits.h:21,
                    from include/linux/bitops.h:6,
                    from include/linux/log2.h:12,
                    from include/asm-generic/div64.h:55,
                    from ./arch/powerpc/include/generated/asm/div64.h:1,
                    from include/linux/math.h:6,
                    from include/linux/delay.h:22,
                    from sound/pci/cs5530.c:30:
   include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/compiler.h:228:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     228 | #define __must_be_array(a)      BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
         |                                 ^~~~~~~~~~~~~~~~~
   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:521:20: note: in expansion of macro 'ARRAY_SIZE'
     521 |         = { .max = ARRAY_SIZE(array), .num = nump,                      \
         |                    ^~~~~~~~~~
   include/linux/moduleparam.h:505:9: note: in expansion of macro 'module_param_array_named'
     505 |         module_param_array_named(name, name, type, nump, perm)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   sound/pci/cs5530.c:46:1: note: in expansion of macro 'module_param_array'
      46 | module_param_array(index, int, NULL, 0444);
         | ^~~~~~~~~~~~~~~~~~
>> sound/pci/cs5530.c:42:12: warning: 'index' defined but not used [-Wunused-variable]
      42 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
         |            ^~~~~
--
   In file included from sound/isa/sb/sb16.c:14,
                    from sound/isa/sb/sbawe.c:2:
   include/sound/sb.h:294:20: error: two or more data types in declaration specifiers
     294 | static inline void void snd_sbmixer_suspend(struct snd_sb *chip) {}
         |                    ^~~~
   include/sound/sb.h:295:20: error: two or more data types in declaration specifiers
     295 | static inline void void snd_sbmixer_resume(struct snd_sb *chip) {}
         |                    ^~~~
   In file included from include/linux/bits.h:21,
                    from include/linux/ratelimit_types.h:5,
                    from include/linux/ratelimit.h:5,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from arch/powerpc/include/asm/io.h:22,
                    from arch/powerpc/include/asm/dma.h:22,
                    from sound/isa/sb/sb16.c:7:
   include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/compiler.h:228:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     228 | #define __must_be_array(a)      BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
         |                                 ^~~~~~~~~~~~~~~~~
   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:521:20: note: in expansion of macro 'ARRAY_SIZE'
     521 |         = { .max = ARRAY_SIZE(array), .num = nump,                      \
         |                    ^~~~~~~~~~
   include/linux/moduleparam.h:505:9: note: in expansion of macro 'module_param_array_named'
     505 |         module_param_array_named(name, name, type, nump, perm)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   sound/isa/sb/sb16.c:69:1: note: in expansion of macro 'module_param_array'
      69 | module_param_array(index, int, NULL, 0444);
         | ^~~~~~~~~~~~~~~~~~
>> sound/isa/sb/sb16.c:46:12: warning: 'index' defined but not used [-Wunused-variable]
      46 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;      /* Index 0-MAX */
         |            ^~~~~
--
   In file included from sound/isa/sb/jazz16.c:23:
   include/sound/sb.h:294:20: error: two or more data types in declaration specifiers
     294 | static inline void void snd_sbmixer_suspend(struct snd_sb *chip) {}
         |                    ^~~~
   include/sound/sb.h:295:20: error: two or more data types in declaration specifiers
     295 | static inline void void snd_sbmixer_resume(struct snd_sb *chip) {}
         |                    ^~~~
   In file included from include/linux/init.h:5,
                    from sound/isa/sb/jazz16.c:14:
   include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/compiler.h:228:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     228 | #define __must_be_array(a)      BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
         |                                 ^~~~~~~~~~~~~~~~~
   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:521:20: note: in expansion of macro 'ARRAY_SIZE'
     521 |         = { .max = ARRAY_SIZE(array), .num = nump,                      \
         |                    ^~~~~~~~~~
   include/linux/moduleparam.h:505:9: note: in expansion of macro 'module_param_array_named'
     505 |         module_param_array_named(name, name, type, nump, perm)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   sound/isa/sb/jazz16.c:44:1: note: in expansion of macro 'module_param_array'
      44 | module_param_array(index, int, NULL, 0444);
         | ^~~~~~~~~~~~~~~~~~
>> sound/isa/sb/jazz16.c:34:12: warning: 'index' defined but not used [-Wunused-variable]
      34 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;      /* Index 0-MAX */
         |            ^~~~~


vim +/index +55 sound/isa/cmi8330.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  54  
^1da177e4c3f41 Linus Torvalds 2005-04-16 @55  static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
^1da177e4c3f41 Linus Torvalds 2005-04-16  56  static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
a67ff6a54095e2 Rusty Russell  2011-12-15  57  static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_ISAPNP;
^1da177e4c3f41 Linus Torvalds 2005-04-16  58  #ifdef CONFIG_PNP
a67ff6a54095e2 Rusty Russell  2011-12-15  59  static bool isapnp[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1};
^1da177e4c3f41 Linus Torvalds 2005-04-16  60  #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16  61  static long sbport[SNDRV_CARDS] = SNDRV_DEFAULT_PORT;
^1da177e4c3f41 Linus Torvalds 2005-04-16  62  static int sbirq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ;
^1da177e4c3f41 Linus Torvalds 2005-04-16  63  static int sbdma8[SNDRV_CARDS] = SNDRV_DEFAULT_DMA;
^1da177e4c3f41 Linus Torvalds 2005-04-16  64  static int sbdma16[SNDRV_CARDS] = SNDRV_DEFAULT_DMA;
^1da177e4c3f41 Linus Torvalds 2005-04-16  65  static long wssport[SNDRV_CARDS] = SNDRV_DEFAULT_PORT;
^1da177e4c3f41 Linus Torvalds 2005-04-16  66  static int wssirq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ;
^1da177e4c3f41 Linus Torvalds 2005-04-16  67  static int wssdma[SNDRV_CARDS] = SNDRV_DEFAULT_DMA;
48972cc5101dee Krzysztof Helt 2009-01-21  68  static long fmport[SNDRV_CARDS] = SNDRV_DEFAULT_PORT;
c97dff84e0d9a4 Krzysztof Helt 2009-01-29  69  static long mpuport[SNDRV_CARDS] = SNDRV_DEFAULT_PORT;
c97dff84e0d9a4 Krzysztof Helt 2009-01-29  70  static int mpuirq[SNDRV_CARDS] = SNDRV_DEFAULT_IRQ;
^1da177e4c3f41 Linus Torvalds 2005-04-16  71  
^1da177e4c3f41 Linus Torvalds 2005-04-16 @72  module_param_array(index, int, NULL, 0444);
69eb88825a7a56 Ondrej Zary    2009-07-04  73  MODULE_PARM_DESC(index, "Index value for CMI8330/CMI8329 soundcard.");
^1da177e4c3f41 Linus Torvalds 2005-04-16  74  module_param_array(id, charp, NULL, 0444);
69eb88825a7a56 Ondrej Zary    2009-07-04  75  MODULE_PARM_DESC(id, "ID string  for CMI8330/CMI8329 soundcard.");
^1da177e4c3f41 Linus Torvalds 2005-04-16  76  module_param_array(enable, bool, NULL, 0444);
69eb88825a7a56 Ondrej Zary    2009-07-04  77  MODULE_PARM_DESC(enable, "Enable CMI8330/CMI8329 soundcard.");
^1da177e4c3f41 Linus Torvalds 2005-04-16  78  #ifdef CONFIG_PNP
^1da177e4c3f41 Linus Torvalds 2005-04-16  79  module_param_array(isapnp, bool, NULL, 0444);
^1da177e4c3f41 Linus Torvalds 2005-04-16  80  MODULE_PARM_DESC(isapnp, "PnP detection for specified soundcard.");
^1da177e4c3f41 Linus Torvalds 2005-04-16  81  #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16  82  

:::::: The code at line 55 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

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



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux