All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: oe-kbuild-all@lists.linux.dev, Vinod Koul <vkoul@kernel.org>,
	Kishon <kishon@ti.com>
Subject: [phy:next 67/74] drivers/phy/qualcomm/phy-qcom-qmp-pcie.c:2357:38: warning: 'qmp_pcie_offsets_v5_20' defined but not used
Date: Thu, 17 Aug 2023 22:00:42 +0800	[thread overview]
Message-ID: <202308172102.2PXA2WFl-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy.git next
head:   a11ecceaf41d2dd542228007940652fea7532276
commit: 64adc0bf06ad5855da5a02b9653fb7cfda289c50 [67/74] phy: qcom-qmp-pcie: populate offsets configuration
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230817/202308172102.2PXA2WFl-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230817/202308172102.2PXA2WFl-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/202308172102.2PXA2WFl-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/phy/qualcomm/phy-qcom-qmp-pcie.c:2378:38: error: redefinition of 'qmp_pcie_offsets_v5_20'
    2378 | static const struct qmp_pcie_offsets qmp_pcie_offsets_v5_20 = {
         |                                      ^~~~~~~~~~~~~~~~~~~~~~
   drivers/phy/qualcomm/phy-qcom-qmp-pcie.c:2357:38: note: previous definition of 'qmp_pcie_offsets_v5_20' with type 'const struct qmp_pcie_offsets'
    2357 | static const struct qmp_pcie_offsets qmp_pcie_offsets_v5_20 = {
         |                                      ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/phy/qualcomm/phy-qcom-qmp-pcie.c:2357:38: warning: 'qmp_pcie_offsets_v5_20' defined but not used [-Wunused-const-variable=]


vim +/qmp_pcie_offsets_v5_20 +2357 drivers/phy/qualcomm/phy-qcom-qmp-pcie.c

  2356	
> 2357	static const struct qmp_pcie_offsets qmp_pcie_offsets_v5_20 = {
  2358		.serdes		= 0x1000,
  2359		.pcs		= 0x1200,
  2360		.pcs_misc	= 0x1400,
  2361		.tx		= 0x0000,
  2362		.rx		= 0x0200,
  2363		.tx2		= 0x0800,
  2364		.rx2		= 0x0a00,
  2365	};
  2366	
  2367	static const struct qmp_pcie_offsets qmp_pcie_offsets_v6_20 = {
  2368		.serdes		= 0x1000,
  2369		.pcs		= 0x1200,
  2370		.pcs_misc	= 0x1400,
  2371		.tx		= 0x0000,
  2372		.rx		= 0x0200,
  2373		.tx2		= 0x0800,
  2374		.rx2		= 0x0a00,
  2375		.ln_shrd	= 0x0e00,
  2376	};
  2377	
> 2378	static const struct qmp_pcie_offsets qmp_pcie_offsets_v5_20 = {
  2379		.serdes		= 0x1000,
  2380		.pcs		= 0x1200,
  2381		.pcs_misc	= 0x1400,
  2382		.tx		= 0x0000,
  2383		.rx		= 0x0200,
  2384		.tx2		= 0x0800,
  2385		.rx2		= 0x0a00,
  2386		.ln_shrd	= 0x0e00,
  2387	};
  2388	

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

                 reply	other threads:[~2023-08-17 14:04 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=202308172102.2PXA2WFl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=kishon@ti.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=vkoul@kernel.org \
    /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.