From: kernel test robot <lkp@intel.com>
To: Elaine Zhang <zhangqing@rock-chips.com>,
mkl@pengutronix.de, kernel@pengutronix.de,
mailhol.vincent@wanadoo.fr, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, heiko@sntech.de, cl@rock-chips.com,
kever.yang@rock-chips.com
Cc: oe-kbuild-all@lists.linux.dev, linux-can@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v5 3/4] net: can: rockchip: add can for RK3576 Soc
Date: Sat, 24 May 2025 21:55:56 +0800 [thread overview]
Message-ID: <202505242132.Mau7vNde-lkp@intel.com> (raw)
In-Reply-To: <20250523075422.4010083-4-zhangqing@rock-chips.com>
Hi Elaine,
kernel test robot noticed the following build warnings:
[auto build test WARNING on mkl-can-next/testing]
[also build test WARNING on robh/for-next linus/master v6.15-rc7 next-20250523]
[cannot apply to rockchip/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Elaine-Zhang/dt-bindings-can-rockchip_canfd-add-rk3576-CAN-FD-controller/20250523-211340
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git testing
patch link: https://lore.kernel.org/r/20250523075422.4010083-4-zhangqing%40rock-chips.com
patch subject: [PATCH v5 3/4] net: can: rockchip: add can for RK3576 Soc
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20250524/202505242132.Mau7vNde-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250524/202505242132.Mau7vNde-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/202505242132.Mau7vNde-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/can/rockchip/rockchip_canfd-tx.c: In function 'rkcanfd_handle_rk3576_tx_int':
>> drivers/net/can/rockchip/rockchip_canfd-tx.c:173:25: warning: variable 'skb' set but not used [-Wunused-but-set-variable]
173 | struct sk_buff *skb;
| ^~~
In file included from drivers/net/can/rockchip/rockchip_canfd-tx.c:9:
drivers/net/can/rockchip/rockchip_canfd.h: At top level:
drivers/net/can/rockchip/rockchip_canfd.h:699:29: warning: 'priv' defined but not used [-Wunused-variable]
699 | static struct rkcanfd_priv *priv;
| ^~~~
vim +/skb +173 drivers/net/can/rockchip/rockchip_canfd-tx.c
168
169 int rkcanfd_handle_rk3576_tx_int(struct rkcanfd_priv *priv)
170 {
171 struct net_device_stats *stats = &priv->ndev->stats;
172 unsigned int tx_tail;
> 173 struct sk_buff *skb;
174 unsigned int frame_len = 0;
175
176 tx_tail = rkcanfd_get_tx_tail(priv);
177 skb = priv->can.echo_skb[tx_tail];
178
179 /* Manual handling of CAN Bus Error counters. See
180 * rkcanfd_get_corrected_berr_counter() for detailed
181 * explanation.
182 */
183 if (priv->bec.txerr)
184 priv->bec.txerr--;
185
186 stats->tx_bytes +=
187 can_rx_offload_get_echo_skb_queue_tail(&priv->offload,
188 tx_tail, &frame_len);
189 stats->tx_packets++;
190 WRITE_ONCE(priv->tx_tail, priv->tx_tail + 1);
191 netif_subqueue_completed_wake(priv->ndev, 0, 1, frame_len,
192 rkcanfd_get_effective_tx_free(priv),
193 RKCANFD_TX_START_THRESHOLD);
194 return 0;
195 }
196
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-05-24 13:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-23 7:54 [PATCH v5 0/4] rockchip: add can for RK3576 Soc Elaine Zhang
2025-05-23 7:54 ` [PATCH v5 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN-FD controller Elaine Zhang
2025-05-23 7:57 ` Marc Kleine-Budde
2025-05-23 8:05 ` Krzysztof Kozlowski
2025-05-23 7:54 ` [PATCH v5 2/4] net: can: rockchip: Refactor the rkcanfd_devtype_data structure Elaine Zhang
2025-05-24 10:59 ` kernel test robot
2025-05-23 7:54 ` [PATCH v5 3/4] net: can: rockchip: add can for RK3576 Soc Elaine Zhang
2025-05-23 8:15 ` Marc Kleine-Budde
2025-05-24 13:55 ` kernel test robot [this message]
2025-05-23 7:54 ` [PATCH v5 4/4] net: can: rockchip: support dma for rk3576 rx Elaine Zhang
2025-05-23 9:10 ` Marc Kleine-Budde
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=202505242132.Mau7vNde-lkp@intel.com \
--to=lkp@intel.com \
--cc=cl@rock-chips.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=kernel@pengutronix.de \
--cc=kever.yang@rock-chips.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mailhol.vincent@wanadoo.fr \
--cc=mkl@pengutronix.de \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh@kernel.org \
--cc=zhangqing@rock-chips.com \
/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