linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Flax <flatmax@flatmax.com>
To: kernel test robot <lkp@intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org>
Subject: Re: sound/soc/codecs/src4xxx-i2c.c:28:34: warning: unused variable 'src4xxx_of_match'
Date: Fri, 7 Oct 2022 10:51:11 +1100	[thread overview]
Message-ID: <4f2e69e1-c9a2-0197-341c-c8c0bc9fda1c@flatmax.com> (raw)
In-Reply-To: <202210070151.yWxzUNdm-lkp@intel.com>

Hi all,

Can this test system be updated to catch of_match_ptr usage ?

Here is the decleration :

static const struct of_device_id src4xxx_of_match[] = {
     { .compatible = "ti,src4392", },
     { }
};
MODULE_DEVICE_TABLE(of, src4xxx_of_match);

Here is the usage (in the same file) :

static struct i2c_driver src4xxx_i2c_driver = {
     .driver = {
         .name = "src4xxx",
         .of_match_table = of_match_ptr(src4xxx_of_match),


On 7/10/22 04:21, kernel test robot wrote:
> Hi Matt,
>
> FYI, the error/warning still remains.
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   833477fce7a14d43ae4c07f8ddc32fa5119471a2
> commit: 4e6bedd3c396014ba70de2b4c9995c8e024e82b3 ASoC: codecs: add support for the TI SRC4392 codec
> date:   8 weeks ago
> config: hexagon-randconfig-r045-20221006
> compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
> reproduce (this is a W=1 build):
>          wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>          chmod +x ~/bin/make.cross
>          # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4e6bedd3c396014ba70de2b4c9995c8e024e82b3
>          git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>          git fetch --no-tags linus master
>          git checkout 4e6bedd3c396014ba70de2b4c9995c8e024e82b3
>          # save the config file
>          mkdir build_dir && cp config build_dir/.config
>          COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash sound/soc/codecs/
>
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
>>> sound/soc/codecs/src4xxx-i2c.c:28:34: warning: unused variable 'src4xxx_of_match' [-Wunused-const-variable]
>     static const struct of_device_id src4xxx_of_match[] = {
>                                      ^
>     1 warning generated.
>
>
> vim +/src4xxx_of_match +28 sound/soc/codecs/src4xxx-i2c.c
>
>      27	
>    > 28	static const struct of_device_id src4xxx_of_match[] = {
>      29		{ .compatible = "ti,src4392", },
>      30		{ }
>      31	};
>      32	MODULE_DEVICE_TABLE(of, src4xxx_of_match);
>      33	
>      34	
>

  reply	other threads:[~2022-10-06 23:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-06 17:21 sound/soc/codecs/src4xxx-i2c.c:28:34: warning: unused variable 'src4xxx_of_match' kernel test robot
2022-10-06 23:51 ` Matt Flax [this message]
2022-10-13 19:53   ` Nathan Chancellor
2022-10-18  4:29 kernel test robot
2022-11-24  7:56 kernel test robot
2022-12-15 12:15 kernel test robot

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=4f2e69e1-c9a2-0197-341c-c8c0bc9fda1c@flatmax.com \
    --to=flatmax@flatmax.com \
    --cc=broonie@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=llvm@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;
as well as URLs for NNTP newsgroup(s).