Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Felix Fietkau <nbd@nbd.name>
Subject: [nbd168-wireless:mt76 20/34] drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.h:35:27: warning: 'cc_list_be' defined but not used
Date: Tue, 11 Mar 2025 21:17:52 +0800	[thread overview]
Message-ID: <202503112103.Iuy6Ox55-lkp@intel.com> (raw)

tree:   https://github.com/nbd168/wireless mt76
head:   9b717a6cf418a48764fa88ff63fc595980564127
commit: afa9bec7ee2df76b1e3fabf9221116f7365107c7 [20/34] wifi: mt76: mt792x: extend MTCL of APCI to version3 for EHT control
config: sparc-randconfig-002-20250311 (https://download.01.org/0day-ci/archive/20250311/202503112103.Iuy6Ox55-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250311/202503112103.Iuy6Ox55-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/202503112103.Iuy6Ox55-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/net/wireless/mediatek/mt76/mt792x.h:12,
                    from drivers/net/wireless/mediatek/mt76/mt792x_dma.c:7:
>> drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.h:35:27: warning: 'cc_list_be' defined but not used [-Wunused-const-variable=]
      35 | static const char * const cc_list_be[] = {
         |                           ^~~~~~~~~~
>> drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.h:27:27: warning: 'cc_list_eu' defined but not used [-Wunused-const-variable=]
      27 | static const char * const cc_list_eu[] = {
         |                           ^~~~~~~~~~
>> drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.h:20:27: warning: 'cc_list_all' defined but not used [-Wunused-const-variable=]
      20 | static const char * const cc_list_all[] = {
         |                           ^~~~~~~~~~~
--
   drivers/net/wireless/mediatek/mt76/mt7925/init.c: In function 'mt7925_regd_channel_update':
   drivers/net/wireless/mediatek/mt76/mt7925/init.c:105:26: warning: unused variable 'mdev' [-Wunused-variable]
     105 |         struct mt76_dev *mdev = &dev->mt76;
         |                          ^~~~
   In file included from drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:12,
                    from drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7,
                    from drivers/net/wireless/mediatek/mt76/mt7925/init.c:9:
   drivers/net/wireless/mediatek/mt76/mt7925/../mt792x_acpi_sar.h: At top level:
>> drivers/net/wireless/mediatek/mt76/mt7925/../mt792x_acpi_sar.h:35:27: warning: 'cc_list_be' defined but not used [-Wunused-const-variable=]
      35 | static const char * const cc_list_be[] = {
         |                           ^~~~~~~~~~
>> drivers/net/wireless/mediatek/mt76/mt7925/../mt792x_acpi_sar.h:27:27: warning: 'cc_list_eu' defined but not used [-Wunused-const-variable=]
      27 | static const char * const cc_list_eu[] = {
         |                           ^~~~~~~~~~
>> drivers/net/wireless/mediatek/mt76/mt7925/../mt792x_acpi_sar.h:20:27: warning: 'cc_list_all' defined but not used [-Wunused-const-variable=]
      20 | static const char * const cc_list_all[] = {
         |                           ^~~~~~~~~~~
--
   In file included from drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:12,
                    from drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7,
                    from drivers/net/wireless/mediatek/mt76/mt7925/mac.c:7:
>> drivers/net/wireless/mediatek/mt76/mt7925/../mt792x_acpi_sar.h:35:27: warning: 'cc_list_be' defined but not used [-Wunused-const-variable=]
      35 | static const char * const cc_list_be[] = {
         |                           ^~~~~~~~~~
>> drivers/net/wireless/mediatek/mt76/mt7925/../mt792x_acpi_sar.h:27:27: warning: 'cc_list_eu' defined but not used [-Wunused-const-variable=]
      27 | static const char * const cc_list_eu[] = {
         |                           ^~~~~~~~~~
>> drivers/net/wireless/mediatek/mt76/mt7925/../mt792x_acpi_sar.h:20:27: warning: 'cc_list_all' defined but not used [-Wunused-const-variable=]
      20 | static const char * const cc_list_all[] = {
         |                           ^~~~~~~~~~~
--
   In file included from drivers/net/wireless/mediatek/mt76/mt7921/../mt792x.h:12,
                    from drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h:7,
                    from drivers/net/wireless/mediatek/mt76/mt7921/mac.c:7:
>> drivers/net/wireless/mediatek/mt76/mt7921/../mt792x_acpi_sar.h:35:27: warning: 'cc_list_be' defined but not used [-Wunused-const-variable=]
      35 | static const char * const cc_list_be[] = {
         |                           ^~~~~~~~~~
>> drivers/net/wireless/mediatek/mt76/mt7921/../mt792x_acpi_sar.h:27:27: warning: 'cc_list_eu' defined but not used [-Wunused-const-variable=]
      27 | static const char * const cc_list_eu[] = {
         |                           ^~~~~~~~~~
>> drivers/net/wireless/mediatek/mt76/mt7921/../mt792x_acpi_sar.h:20:27: warning: 'cc_list_all' defined but not used [-Wunused-const-variable=]
      20 | static const char * const cc_list_all[] = {
         |                           ^~~~~~~~~~~


vim +/cc_list_be +35 drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.h

    19	
  > 20	static const char * const cc_list_all[] = {
    21		"00", "EU", "AR", "AU", "AZ", "BY", "BO", "BR",
    22		"CA", "CL", "CN", "ID", "JP", "MY", "MX", "ME",
    23		"MA", "NZ", "NG", "PH", "RU", "RS", "SG", "KR",
    24		"TW", "TH", "UA", "GB", "US", "VN", "KH", "PY",
    25	};
    26	
  > 27	static const char * const cc_list_eu[] = {
    28		"AD", "AT", "BE", "BG", "CY", "CZ", "HR", "DK",
    29		"EE", "FI", "FR", "DE", "GR", "HU", "IS", "IE",
    30		"IT", "LV", "LI", "LT", "LU", "MC", "MT", "NL",
    31		"NO", "PL", "PT", "RO", "SK", "SI", "ES", "SE",
    32		"CH",
    33	};
    34	
  > 35	static const char * const cc_list_be[] = {
    36		"AR", "BR", "BY", "CL", "IQ", "MX", "OM", "RU",
    37		"RW", "VN", "KR", "UA", "", "", "", "",
    38		"EU", "AT", "CN", "CA", "TW", "NZ", "PH", "UK",
    39		"US",
    40	};
    41	

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

                 reply	other threads:[~2025-03-11 13:18 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=202503112103.Iuy6Ox55-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=mingyen.hsieh@mediatek.com \
    --cc=nbd@nbd.name \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox