From: kernel test robot <lkp@intel.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: kbuild-all@lists.01.org, linux-can@vger.kernel.org
Subject: [mkl-can-next:rx-offload 4/7] drivers/net/can/m_can/m_can.c:1062:30: error: 'priv' undeclared
Date: Thu, 24 Jun 2021 21:57:17 +0800 [thread overview]
Message-ID: <202106242110.VE1sILTd-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3669 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git rx-offload
head: 891949c484eaa5e793336fa7c049e4ed95d69a24
commit: 205563fbf2fd4f820b41731c7f63955b23760274 [4/7] can: m_can: convert to can_rx_offload_irq_finish()
config: alpha-randconfig-s031-20210622 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/commit/?id=205563fbf2fd4f820b41731c7f63955b23760274
git remote add mkl-can-next https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git
git fetch --no-tags mkl-can-next rx-offload
git checkout 205563fbf2fd4f820b41731c7f63955b23760274
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/net/can/m_can/m_can.c: In function 'm_can_isr':
>> drivers/net/can/m_can/m_can.c:1062:30: error: 'priv' undeclared (first use in this function)
1062 | can_rx_offload_irq_finish(&priv->offload);
| ^~~~
drivers/net/can/m_can/m_can.c:1062:30: note: each undeclared identifier is reported only once for each function it appears in
vim +/priv +1062 drivers/net/can/m_can/m_can.c
1004
1005 static irqreturn_t m_can_isr(int irq, void *dev_id)
1006 {
1007 struct net_device *dev = (struct net_device *)dev_id;
1008 struct m_can_classdev *cdev = netdev_priv(dev);
1009 u32 ir;
1010
1011 if (pm_runtime_suspended(cdev->dev))
1012 return IRQ_NONE;
1013 ir = m_can_read(cdev, M_CAN_IR);
1014 if (!ir)
1015 return IRQ_NONE;
1016
1017 /* ACK all irqs */
1018 if (ir & IR_ALL_INT)
1019 m_can_write(cdev, M_CAN_IR, ir);
1020
1021 if (cdev->ops->clear_interrupts)
1022 cdev->ops->clear_interrupts(cdev);
1023
1024 /* schedule NAPI in case of
1025 * - rx IRQ
1026 * - state change IRQ
1027 * - bus error IRQ and bus error reporting
1028 */
1029 if ((ir & IR_RF0N) || (ir & IR_ERR_ALL_30X)) {
1030 cdev->irqstatus = ir;
1031 m_can_disable_all_interrupts(cdev);
1032 if (!cdev->is_peripheral)
1033 napi_schedule(&cdev->napi);
1034 else
1035 m_can_rx_peripheral(dev);
1036 }
1037
1038 if (cdev->version == 30) {
1039 if (ir & IR_TC) {
1040 /* Transmission Complete Interrupt*/
1041 u32 timestamp = 0;
1042
1043 if (cdev->is_peripheral)
1044 timestamp = m_can_get_timestamp(cdev);
1045 m_can_tx_update_stats(cdev, 0, timestamp);
1046
1047 can_led_event(dev, CAN_LED_EVENT_TX);
1048 netif_wake_queue(dev);
1049 }
1050 } else {
1051 if (ir & IR_TEFN) {
1052 /* New TX FIFO Element arrived */
1053 m_can_echo_tx_event(dev);
1054 can_led_event(dev, CAN_LED_EVENT_TX);
1055 if (netif_queue_stopped(dev) &&
1056 !m_can_tx_fifo_full(cdev))
1057 netif_wake_queue(dev);
1058 }
1059 }
1060
1061 if (cdev->is_peripheral)
> 1062 can_rx_offload_irq_finish(&priv->offload);
1063
1064 return IRQ_HANDLED;
1065 }
1066
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28009 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [mkl-can-next:rx-offload 4/7] drivers/net/can/m_can/m_can.c:1062:30: error: 'priv' undeclared
Date: Thu, 24 Jun 2021 21:57:17 +0800 [thread overview]
Message-ID: <202106242110.VE1sILTd-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3769 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git rx-offload
head: 891949c484eaa5e793336fa7c049e4ed95d69a24
commit: 205563fbf2fd4f820b41731c7f63955b23760274 [4/7] can: m_can: convert to can_rx_offload_irq_finish()
config: alpha-randconfig-s031-20210622 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/commit/?id=205563fbf2fd4f820b41731c7f63955b23760274
git remote add mkl-can-next https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git
git fetch --no-tags mkl-can-next rx-offload
git checkout 205563fbf2fd4f820b41731c7f63955b23760274
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/net/can/m_can/m_can.c: In function 'm_can_isr':
>> drivers/net/can/m_can/m_can.c:1062:30: error: 'priv' undeclared (first use in this function)
1062 | can_rx_offload_irq_finish(&priv->offload);
| ^~~~
drivers/net/can/m_can/m_can.c:1062:30: note: each undeclared identifier is reported only once for each function it appears in
vim +/priv +1062 drivers/net/can/m_can/m_can.c
1004
1005 static irqreturn_t m_can_isr(int irq, void *dev_id)
1006 {
1007 struct net_device *dev = (struct net_device *)dev_id;
1008 struct m_can_classdev *cdev = netdev_priv(dev);
1009 u32 ir;
1010
1011 if (pm_runtime_suspended(cdev->dev))
1012 return IRQ_NONE;
1013 ir = m_can_read(cdev, M_CAN_IR);
1014 if (!ir)
1015 return IRQ_NONE;
1016
1017 /* ACK all irqs */
1018 if (ir & IR_ALL_INT)
1019 m_can_write(cdev, M_CAN_IR, ir);
1020
1021 if (cdev->ops->clear_interrupts)
1022 cdev->ops->clear_interrupts(cdev);
1023
1024 /* schedule NAPI in case of
1025 * - rx IRQ
1026 * - state change IRQ
1027 * - bus error IRQ and bus error reporting
1028 */
1029 if ((ir & IR_RF0N) || (ir & IR_ERR_ALL_30X)) {
1030 cdev->irqstatus = ir;
1031 m_can_disable_all_interrupts(cdev);
1032 if (!cdev->is_peripheral)
1033 napi_schedule(&cdev->napi);
1034 else
1035 m_can_rx_peripheral(dev);
1036 }
1037
1038 if (cdev->version == 30) {
1039 if (ir & IR_TC) {
1040 /* Transmission Complete Interrupt*/
1041 u32 timestamp = 0;
1042
1043 if (cdev->is_peripheral)
1044 timestamp = m_can_get_timestamp(cdev);
1045 m_can_tx_update_stats(cdev, 0, timestamp);
1046
1047 can_led_event(dev, CAN_LED_EVENT_TX);
1048 netif_wake_queue(dev);
1049 }
1050 } else {
1051 if (ir & IR_TEFN) {
1052 /* New TX FIFO Element arrived */
1053 m_can_echo_tx_event(dev);
1054 can_led_event(dev, CAN_LED_EVENT_TX);
1055 if (netif_queue_stopped(dev) &&
1056 !m_can_tx_fifo_full(cdev))
1057 netif_wake_queue(dev);
1058 }
1059 }
1060
1061 if (cdev->is_peripheral)
> 1062 can_rx_offload_irq_finish(&priv->offload);
1063
1064 return IRQ_HANDLED;
1065 }
1066
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28009 bytes --]
next reply other threads:[~2021-06-24 13:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-24 13:57 kernel test robot [this message]
2021-06-24 13:57 ` [mkl-can-next:rx-offload 4/7] drivers/net/can/m_can/m_can.c:1062:30: error: 'priv' undeclared kernel test robot
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=202106242110.VE1sILTd-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-can@vger.kernel.org \
--cc=mkl@pengutronix.de \
/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.