* drivers/net/can/m_can/m_can.c:1034 m_can_echo_tx_event() error: uninitialized symbol 'txe'.
@ 2021-12-07 11:32 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-07 11:32 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 5093 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Matt Kline <matt@bitbashing.io>
CC: "Marc Kleine-Budde" <mkl@pengutronix.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cd8c917a56f20f48748dd43d9ae3caff51d5b987
commit: e39381770ec9ca3c51d8b9bd9cc6e01d78ea974a can: m_can: Disable IRQs on FIFO bus errors
date: 4 months ago
:::::: branch date: 11 hours ago
:::::: commit date: 4 months ago
config: arc-randconfig-m031-20211207 (https://download.01.org/0day-ci/archive/20211207/202112071909.sQoYNqGo-lkp(a)intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
New smatch warnings:
drivers/net/can/m_can/m_can.c:1034 m_can_echo_tx_event() error: uninitialized symbol 'txe'.
Old smatch warnings:
drivers/net/can/m_can/m_can.c:477 m_can_read_fifo() error: uninitialized symbol 'dlc'.
drivers/net/can/m_can/m_can.c:495 m_can_read_fifo() error: uninitialized symbol 'id'.
vim +/txe +1034 drivers/net/can/m_can/m_can.c
1be37d3b0414e3 Torin Cooper-Bennun 2021-03-08 1002
e39381770ec9ca Matt Kline 2021-08-16 1003 static int m_can_echo_tx_event(struct net_device *dev)
10c1c3975a6663 Mario Huettel 2017-04-08 1004 {
10c1c3975a6663 Mario Huettel 2017-04-08 1005 u32 txe_count = 0;
10c1c3975a6663 Mario Huettel 2017-04-08 1006 u32 m_can_txefs;
10c1c3975a6663 Mario Huettel 2017-04-08 1007 u32 fgi = 0;
10c1c3975a6663 Mario Huettel 2017-04-08 1008 int i = 0;
10c1c3975a6663 Mario Huettel 2017-04-08 1009 unsigned int msg_mark;
10c1c3975a6663 Mario Huettel 2017-04-08 1010
441ac340169b79 Dan Murphy 2019-05-09 1011 struct m_can_classdev *cdev = netdev_priv(dev);
10c1c3975a6663 Mario Huettel 2017-04-08 1012
10c1c3975a6663 Mario Huettel 2017-04-08 1013 /* read tx event fifo status */
441ac340169b79 Dan Murphy 2019-05-09 1014 m_can_txefs = m_can_read(cdev, M_CAN_TXEFS);
10c1c3975a6663 Mario Huettel 2017-04-08 1015
10c1c3975a6663 Mario Huettel 2017-04-08 1016 /* Get Tx Event fifo element count */
20779943a080c5 Torin Cooper-Bennun 2021-05-04 1017 txe_count = FIELD_GET(TXEFS_EFFL_MASK, m_can_txefs);
10c1c3975a6663 Mario Huettel 2017-04-08 1018
10c1c3975a6663 Mario Huettel 2017-04-08 1019 /* Get and process all sent elements */
10c1c3975a6663 Mario Huettel 2017-04-08 1020 for (i = 0; i < txe_count; i++) {
1be37d3b0414e3 Torin Cooper-Bennun 2021-03-08 1021 u32 txe, timestamp = 0;
e39381770ec9ca Matt Kline 2021-08-16 1022 int err;
1be37d3b0414e3 Torin Cooper-Bennun 2021-03-08 1023
10c1c3975a6663 Mario Huettel 2017-04-08 1024 /* retrieve get index */
20779943a080c5 Torin Cooper-Bennun 2021-05-04 1025 fgi = FIELD_GET(TXEFS_EFGI_MASK, m_can_read(cdev, M_CAN_TXEFS));
10c1c3975a6663 Mario Huettel 2017-04-08 1026
1be37d3b0414e3 Torin Cooper-Bennun 2021-03-08 1027 /* get message marker, timestamp */
e39381770ec9ca Matt Kline 2021-08-16 1028 err = m_can_txe_fifo_read(cdev, fgi, 4, &txe);
e39381770ec9ca Matt Kline 2021-08-16 1029 if (err) {
e39381770ec9ca Matt Kline 2021-08-16 1030 netdev_err(dev, "TXE FIFO read returned %d\n", err);
e39381770ec9ca Matt Kline 2021-08-16 1031 return err;
e39381770ec9ca Matt Kline 2021-08-16 1032 }
e39381770ec9ca Matt Kline 2021-08-16 1033
20779943a080c5 Torin Cooper-Bennun 2021-05-04 @1034 msg_mark = FIELD_GET(TX_EVENT_MM_MASK, txe);
1be37d3b0414e3 Torin Cooper-Bennun 2021-03-08 1035 timestamp = FIELD_GET(TX_EVENT_TXTS_MASK, txe);
10c1c3975a6663 Mario Huettel 2017-04-08 1036
10c1c3975a6663 Mario Huettel 2017-04-08 1037 /* ack txe element */
20779943a080c5 Torin Cooper-Bennun 2021-05-04 1038 m_can_write(cdev, M_CAN_TXEFA, FIELD_PREP(TXEFA_EFAI_MASK,
20779943a080c5 Torin Cooper-Bennun 2021-05-04 1039 fgi));
10c1c3975a6663 Mario Huettel 2017-04-08 1040
10c1c3975a6663 Mario Huettel 2017-04-08 1041 /* update stats */
1be37d3b0414e3 Torin Cooper-Bennun 2021-03-08 1042 m_can_tx_update_stats(cdev, msg_mark, timestamp);
10c1c3975a6663 Mario Huettel 2017-04-08 1043 }
e39381770ec9ca Matt Kline 2021-08-16 1044
e39381770ec9ca Matt Kline 2021-08-16 1045 return 0;
10c1c3975a6663 Mario Huettel 2017-04-08 1046 }
10c1c3975a6663 Mario Huettel 2017-04-08 1047
:::::: The code@line 1034 was first introduced by commit
:::::: 20779943a080c5ac9b9e291b76afbac12fdec023 can: m_can: use bits.h macros for all regmasks
:::::: TO: Torin Cooper-Bennun <torin@maxiluxsystems.com>
:::::: CC: Marc Kleine-Budde <mkl@pengutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-07 11:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-07 11:32 drivers/net/can/m_can/m_can.c:1034 m_can_echo_tx_event() error: uninitialized symbol 'txe' kernel test robot
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.