All of lore.kernel.org
 help / color / mirror / Atom feed
* [mkl-can-next:rx-offload 4/7] drivers/net/can/m_can/m_can.c:1062:30: error: 'priv' undeclared
@ 2021-06-24 13:57 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-24 13:57 UTC (permalink / raw)
  To: Marc Kleine-Budde; +Cc: kbuild-all, linux-can

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [mkl-can-next:rx-offload 4/7] drivers/net/can/m_can/m_can.c:1062:30: error: 'priv' undeclared
@ 2021-06-24 13:57 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-24 13:57 UTC (permalink / raw)
  To: kbuild-all

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-24 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-06-24 13:57 ` 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.