lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202211150409.SfQmzARu-lkp@intel.com>
Date:   Tue, 15 Nov 2022 04:41:05 +0800
From:   kernel test robot <lkp@...el.com>
To:     Krzysztof Kozlowski <krzk@...nel.org>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Mark Brown <broonie@...nel.org>
Subject: sound/soc/codecs/lochnagar-sc.c:247:34: warning:
 'lochnagar_of_match' defined but not used

Hi Krzysztof,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   094226ad94f471a9f19e8f8e7140a09c2625abaa
commit: 5b7f4e5de61ba8c44317718936864da29eeba62a ASoC: codecs: allow compile testing without MFD drivers
date:   3 months ago
config: x86_64-buildonly-randconfig-r003-20221114
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5b7f4e5de61ba8c44317718936864da29eeba62a
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 5b7f4e5de61ba8c44317718936864da29eeba62a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash sound/soc/codecs/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> sound/soc/codecs/lochnagar-sc.c:247:34: warning: 'lochnagar_of_match' defined but not used [-Wunused-const-variable=]
     247 | static const struct of_device_id lochnagar_of_match[] = {
         |                                  ^~~~~~~~~~~~~~~~~~


vim +/lochnagar_of_match +247 sound/soc/codecs/lochnagar-sc.c

16123412a6283b Piotr Stankiewicz 2019-03-20  246  
16123412a6283b Piotr Stankiewicz 2019-03-20 @247  static const struct of_device_id lochnagar_of_match[] = {
16123412a6283b Piotr Stankiewicz 2019-03-20  248  	{ .compatible = "cirrus,lochnagar2-soundcard" },
16123412a6283b Piotr Stankiewicz 2019-03-20  249  	{}
16123412a6283b Piotr Stankiewicz 2019-03-20  250  };
16123412a6283b Piotr Stankiewicz 2019-03-20  251  MODULE_DEVICE_TABLE(of, lochnagar_of_match);
16123412a6283b Piotr Stankiewicz 2019-03-20  252  

:::::: The code at line 247 was first introduced by commit
:::::: 16123412a6283bcf956f1a377f2e799a79c2b439 ASoC: lochnagar: Add driver to support Lochnagar 2 sound card

:::::: TO: Piotr Stankiewicz <piotrs@...nsource.cirrus.com>
:::::: CC: Mark Brown <broonie@...nel.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (217642 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ