From: kernel test robot <lkp@intel.com>
To: Sneh Shah <quic_snehshah@quicinc.com>,
Vinod Koul <vkoul@kernel.org>,
Bhupesh Sharma <bhupesh.sharma@linaro.org>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Jose Abreu <joabreu@synopsys.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
linux-arm-msm@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org,
Sneh Shah <quic_snehshah@quicinc.com>,
kernel@quicinc.com, Andrew Halaney <ahalaney@redhat.com>
Subject: Re: [PATCH net-next] net: stmmac: qcom-ethqos: Add sysfs nodes for qcom ethqos
Date: Tue, 5 Dec 2023 13:53:09 +0800 [thread overview]
Message-ID: <202312051347.L3L2pNLv-lkp@intel.com> (raw)
In-Reply-To: <20231204084854.31543-1-quic_snehshah@quicinc.com>
Hi Sneh,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Sneh-Shah/net-stmmac-qcom-ethqos-Add-sysfs-nodes-for-qcom-ethqos/20231204-165232
base: net-next/main
patch link: https://lore.kernel.org/r/20231204084854.31543-1-quic_snehshah%40quicinc.com
patch subject: [PATCH net-next] net: stmmac: qcom-ethqos: Add sysfs nodes for qcom ethqos
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20231205/202312051347.L3L2pNLv-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231205/202312051347.L3L2pNLv-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/202312051347.L3L2pNLv-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c: In function 'gvm_queue_mapping_store':
>> drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c:770:13: warning: variable 'prio' set but not used [-Wunused-but-set-variable]
770 | u32 prio;
| ^~~~
vim +/prio +770 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
762
763 static ssize_t gvm_queue_mapping_store(struct device *dev,
764 struct device_attribute *attr,
765 const char *user_buf, size_t size)
766 {
767 struct net_device *netdev = to_net_dev(dev);
768 struct stmmac_priv *priv;
769 struct qcom_ethqos *ethqos;
> 770 u32 prio;
771 s8 input = 0;
772
773 if (!netdev) {
774 pr_err("netdev is NULL\n");
775 return -EINVAL;
776 }
777
778 priv = netdev_priv(netdev);
779 if (!priv) {
780 pr_err("priv is NULL\n");
781 return -EINVAL;
782 }
783
784 ethqos = priv->plat->bsp_priv;
785 if (!ethqos) {
786 pr_err("ethqos is NULL\n");
787 return -EINVAL;
788 }
789
790 if (kstrtos8(user_buf, 0, &input)) {
791 pr_err("Error in reading option from user\n");
792 return -EINVAL;
793 }
794
795 if (input == ethqos->gvm_queue)
796 pr_err("No effect as duplicate input\n");
797
798 ethqos->gvm_queue = input;
799 prio = 1 << input;
800
801 return size;
802 }
803
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-12-05 5:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-04 8:48 [PATCH net-next] net: stmmac: qcom-ethqos: Add sysfs nodes for qcom ethqos Sneh Shah
2023-12-04 16:31 ` Bjorn Andersson
2023-12-05 5:53 ` kernel test robot [this message]
2023-12-05 15:08 ` Andrew Lunn
2023-12-06 11:47 ` Sneh Shah
2023-12-06 13:52 ` Andrew Lunn
2023-12-08 6:28 ` Sneh Shah
2023-12-13 9:54 ` Andrew Lunn
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=202312051347.L3L2pNLv-lkp@intel.com \
--to=lkp@intel.com \
--cc=ahalaney@redhat.com \
--cc=alexandre.torgue@foss.st.com \
--cc=bhupesh.sharma@linaro.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=joabreu@synopsys.com \
--cc=kernel@quicinc.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=quic_snehshah@quicinc.com \
--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 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).