All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Icenowy Zheng <icenowy@aosc.io>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Maxime Ripard <maxime@cerno.tech>,
	Vasily Khoruzhick <anarsoul@gmail.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Torsten Duwe <duwe@suse.de>, Andrzej Hajda <a.hajda@samsung.com>
Subject: drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c:50:17: warning: 'anx781x_i2c_addresses' defined but not used
Date: Wed, 11 May 2022 13:43:28 +0800	[thread overview]
Message-ID: <202205111306.DCEG8q0G-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   feb9c5e19e913b53cb536a7aa7c9f20107bb51ec
commit: 5d97408e0d70a7c7c5942ba95260bab7c9e21eb4 drm/bridge: move ANA78xx driver to analogix subdirectory
date:   2 years, 6 months ago
config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220511/202205111306.DCEG8q0G-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5d97408e0d70a7c7c5942ba95260bab7c9e21eb4
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 5d97408e0d70a7c7c5942ba95260bab7c9e21eb4
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/bridge/analogix/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c:50:17: warning: 'anx781x_i2c_addresses' defined but not used [-Wunused-const-variable=]
      50 | static const u8 anx781x_i2c_addresses[] = {
         |                 ^~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c:42:17: warning: 'anx7808_i2c_addresses' defined but not used [-Wunused-const-variable=]
      42 | static const u8 anx7808_i2c_addresses[] = {
         |                 ^~~~~~~~~~~~~~~~~~~~~


vim +/anx781x_i2c_addresses +50 drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c

0647e7dd3f7ab2e drivers/gpu/drm/bridge/analogix-anx78xx.c Enric Balletbo i Serra 2016-05-02  41  
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22 @42  static const u8 anx7808_i2c_addresses[] = {
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  43  	[I2C_IDX_TX_P0] = 0x78,
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  44  	[I2C_IDX_TX_P1] = 0x7a,
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  45  	[I2C_IDX_TX_P2] = 0x72,
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  46  	[I2C_IDX_RX_P0] = 0x7e,
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  47  	[I2C_IDX_RX_P1] = 0x80,
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  48  };
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  49  
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22 @50  static const u8 anx781x_i2c_addresses[] = {
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  51  	[I2C_IDX_TX_P0] = 0x70,
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  52  	[I2C_IDX_TX_P1] = 0x7a,
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  53  	[I2C_IDX_TX_P2] = 0x72,
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  54  	[I2C_IDX_RX_P0] = 0x7e,
025910db8057f60 drivers/gpu/drm/bridge/analogix-anx78xx.c Brian Masney           2019-09-22  55  	[I2C_IDX_RX_P1] = 0x80,
0647e7dd3f7ab2e drivers/gpu/drm/bridge/analogix-anx78xx.c Enric Balletbo i Serra 2016-05-02  56  };
0647e7dd3f7ab2e drivers/gpu/drm/bridge/analogix-anx78xx.c Enric Balletbo i Serra 2016-05-02  57  

:::::: The code at line 50 was first introduced by commit
:::::: 025910db8057f60d2d2aa11002f7751e3eb66588 drm/bridge: analogix-anx78xx: add support for 7808 addresses

:::::: TO: Brian Masney <masneyb@onstation.org>
:::::: CC: Andrzej Hajda <a.hajda@samsung.com>

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

                 reply	other threads:[~2022-05-11  5:44 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=202205111306.DCEG8q0G-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=a.hajda@samsung.com \
    --cc=anarsoul@gmail.com \
    --cc=duwe@suse.de \
    --cc=icenowy@aosc.io \
    --cc=kbuild-all@lists.01.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maxime@cerno.tech \
    /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.