All of lore.kernel.org
 help / color / mirror / Atom feed
* [norov:declare_bitmap 3/3] sound/pci/asihpi/asihpi.c:45:12: warning: 'index' defined but not used
@ 2025-08-11 21:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-11 21:13 UTC (permalink / raw)
  To: Yury Norov; +Cc: oe-kbuild-all

tree:   https://github.com/norov/linux declare_bitmap
head:   01ab0916a9bf06c1c2c964b3747e9a02f812285c
commit: 01ab0916a9bf06c1c2c964b3747e9a02f812285c [3/3] bitmap: move DECLARE_BITMAP() macro to include/linux/bitmap.h
config: x86_64-buildonly-randconfig-003-20250812 (https://download.01.org/0day-ci/archive/20250812/202508120559.5YWcwUWI-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250812/202508120559.5YWcwUWI-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/202508120559.5YWcwUWI-lkp@intel.com/

All warnings (new ones prefixed by >>):

   include/linux/cpumask.h:890:48: note: in expansion of macro 'cpumask_bits'
     890 |         bitmap_shift_right(cpumask_bits(dstp), cpumask_bits(srcp), n,
         |                                                ^~~~~~~~~~~~
   include/linux/cpumask.h: In function 'cpumask_shift_left':
   include/linux/cpumask_types.h:18:37: error: 'struct cpumask' has no member named 'bits'
      18 | #define cpumask_bits(maskp) ((maskp)->bits)
         |                                     ^~
   include/linux/cpumask.h:903:27: note: in expansion of macro 'cpumask_bits'
     903 |         bitmap_shift_left(cpumask_bits(dstp), cpumask_bits(srcp), n,
         |                           ^~~~~~~~~~~~
   include/linux/cpumask_types.h:18:37: error: 'const struct cpumask' has no member named 'bits'
      18 | #define cpumask_bits(maskp) ((maskp)->bits)
         |                                     ^~
   include/linux/cpumask.h:903:47: note: in expansion of macro 'cpumask_bits'
     903 |         bitmap_shift_left(cpumask_bits(dstp), cpumask_bits(srcp), n,
         |                                               ^~~~~~~~~~~~
   include/linux/cpumask.h: In function 'cpumask_copy':
   include/linux/cpumask_types.h:18:37: error: 'struct cpumask' has no member named 'bits'
      18 | #define cpumask_bits(maskp) ((maskp)->bits)
         |                                     ^~
   include/linux/cpumask.h:915:21: note: in expansion of macro 'cpumask_bits'
     915 |         bitmap_copy(cpumask_bits(dstp), cpumask_bits(srcp), large_cpumask_bits);
         |                     ^~~~~~~~~~~~
   include/linux/cpumask_types.h:18:37: error: 'const struct cpumask' has no member named 'bits'
      18 | #define cpumask_bits(maskp) ((maskp)->bits)
         |                                     ^~
   include/linux/cpumask.h:915:41: note: in expansion of macro 'cpumask_bits'
     915 |         bitmap_copy(cpumask_bits(dstp), cpumask_bits(srcp), large_cpumask_bits);
         |                                         ^~~~~~~~~~~~
   include/linux/cpumask.h: In function 'cpumask_parse_user':
   include/linux/cpumask_types.h:18:37: error: 'struct cpumask' has no member named 'bits'
      18 | #define cpumask_bits(maskp) ((maskp)->bits)
         |                                     ^~
   include/linux/cpumask.h:952:44: note: in expansion of macro 'cpumask_bits'
     952 |         return bitmap_parse_user(buf, len, cpumask_bits(dstp), nr_cpumask_bits);
         |                                            ^~~~~~~~~~~~
   include/linux/cpumask.h: In function 'cpumask_parselist_user':
   include/linux/cpumask_types.h:18:37: error: 'struct cpumask' has no member named 'bits'
      18 | #define cpumask_bits(maskp) ((maskp)->bits)
         |                                     ^~
   include/linux/cpumask.h:966:48: note: in expansion of macro 'cpumask_bits'
     966 |         return bitmap_parselist_user(buf, len, cpumask_bits(dstp),
         |                                                ^~~~~~~~~~~~
   include/linux/cpumask.h: In function 'cpumask_parse':
   include/linux/cpumask_types.h:18:37: error: 'struct cpumask' has no member named 'bits'
      18 | #define cpumask_bits(maskp) ((maskp)->bits)
         |                                     ^~
   include/linux/cpumask.h:979:44: note: in expansion of macro 'cpumask_bits'
     979 |         return bitmap_parse(buf, UINT_MAX, cpumask_bits(dstp), nr_cpumask_bits);
         |                                            ^~~~~~~~~~~~
   include/linux/cpumask.h: In function 'cpulist_parse':
   include/linux/cpumask_types.h:18:37: error: 'struct cpumask' has no member named 'bits'
      18 | #define cpumask_bits(maskp) ((maskp)->bits)
         |                                     ^~
   include/linux/cpumask.h:991:38: note: in expansion of macro 'cpumask_bits'
     991 |         return bitmap_parselist(buf, cpumask_bits(dstp), nr_cpumask_bits);
         |                                      ^~~~~~~~~~~~
   include/linux/cpumask.h: In function 'cpumap_print_to_pagebuf':
   include/linux/cpumask_types.h:18:37: error: 'const struct cpumask' has no member named 'bits'
      18 | #define cpumask_bits(maskp) ((maskp)->bits)
         |                                     ^~
   include/linux/cpumask.h:1303:51: note: in expansion of macro 'cpumask_bits'
    1303 |         return bitmap_print_to_pagebuf(list, buf, cpumask_bits(mask),
         |                                                   ^~~~~~~~~~~~
   include/linux/cpumask.h: In function 'cpumap_print_bitmask_to_buf':
   include/linux/cpumask_types.h:18:37: error: 'const struct cpumask' has no member named 'bits'
      18 | #define cpumask_bits(maskp) ((maskp)->bits)
         |                                     ^~
   include/linux/cpumask.h:1327:49: note: in expansion of macro 'cpumask_bits'
    1327 |         return bitmap_print_bitmask_to_buf(buf, cpumask_bits(mask),
         |                                                 ^~~~~~~~~~~~
   include/linux/cpumask.h: In function 'cpumap_print_list_to_buf':
   include/linux/cpumask_types.h:18:37: error: 'const struct cpumask' has no member named 'bits'
      18 | #define cpumask_bits(maskp) ((maskp)->bits)
         |                                     ^~
   include/linux/cpumask.h:1349:46: note: in expansion of macro 'cpumask_bits'
    1349 |         return bitmap_print_list_to_buf(buf, cpumask_bits(mask),
         |                                              ^~~~~~~~~~~~
   In file included from include/linux/build_bug.h:5,
                    from include/linux/init.h:5,
                    from include/linux/io.h:11:
   sound/pci/asihpi/asihpi.c: At top level:
   include/linux/compiler.h:197:82: error: expression in static assertion is not an integer
     197 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                                                  ^
   include/linux/compiler.h:202:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     202 | #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:525:20: note: in expansion of macro 'ARRAY_SIZE'
     525 |         = { .max = ARRAY_SIZE(array), .num = nump,                      \
         |                    ^~~~~~~~~~
   include/linux/moduleparam.h:509:9: note: in expansion of macro 'module_param_array_named'
     509 |         module_param_array_named(name, name, type, nump, perm)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   sound/pci/asihpi/asihpi.c:50:1: note: in expansion of macro 'module_param_array'
      50 | module_param_array(index, int, NULL, 0444);
         | ^~~~~~~~~~~~~~~~~~
>> sound/pci/asihpi/asihpi.c:45:12: warning: 'index' defined but not used [-Wunused-variable]
      45 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;      /* index 0-MAX */
         |            ^~~~~


vim +/index +45 sound/pci/asihpi/asihpi.c

b2e65c8e913321 Eliot Blennerhassett 2011-03-25  44  
719f82d3987aad Eliot Blennerhassett 2010-04-21 @45  static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;	/* index 0-MAX */
719f82d3987aad Eliot Blennerhassett 2010-04-21  46  static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;	/* ID for this card */
a67ff6a54095e2 Rusty Russell        2011-12-15  47  static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
a67ff6a54095e2 Rusty Russell        2011-12-15  48  static bool enable_hpi_hwdep = 1;
719f82d3987aad Eliot Blennerhassett 2010-04-21  49  

:::::: The code at line 45 was first introduced by commit
:::::: 719f82d3987aad4cc9f46d19c35f362672545cad ALSA: Add support of AudioScience ASI boards

:::::: TO: Eliot Blennerhassett <eblennerhassett@audioscience.com>
:::::: CC: Takashi Iwai <tiwai@suse.de>

-- 
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:[~2025-08-11 21:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 21:13 [norov:declare_bitmap 3/3] sound/pci/asihpi/asihpi.c:45: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.