All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [norov:declare_bitmap 3/3] sound/pci/asihpi/asihpi.c:45:12: warning: 'index' defined but not used
Date: Tue, 12 Aug 2025 05:13:27 +0800	[thread overview]
Message-ID: <202508120559.5YWcwUWI-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-08-11 21:14 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=202508120559.5YWcwUWI-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=yury.norov@gmail.com \
    /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.