All of lore.kernel.org
 help / color / mirror / Atom feed
* [mkl-can-next:men 1/1] drivers/net/can/men_z192_can.c:482:2: error: implicit declaration of function 'mmiowb'; did you mean '__iowmb'?
@ 2019-11-06 14:34 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-11-06 14:34 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3831 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git men
head:   ee2172710a15be7687afaa9033920b97567a8fd3
commit: ee2172710a15be7687afaa9033920b97567a8fd3 [1/1] net: can: Introduce MEN 16Z192-00 CAN controller driver
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout ee2172710a15be7687afaa9033920b97567a8fd3
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/net/can/men_z192_can.c: In function 'men_z192_xmit':
>> drivers/net/can/men_z192_can.c:482:2: error: implicit declaration of function 'mmiowb'; did you mean '__iowmb'? [-Werror=implicit-function-declaration]
     mmiowb();
     ^~~~~~
     __iowmb
   cc1: some warnings being treated as errors

vim +482 drivers/net/can/men_z192_can.c

   414	
   415	static int men_z192_xmit(struct sk_buff *skb, struct net_device *ndev)
   416	{
   417		struct can_frame *cf = (struct can_frame *)skb->data;
   418		struct men_z192 *priv = netdev_priv(ndev);
   419		struct men_z192_regs __iomem *regs = priv->regs;
   420		struct net_device_stats *stats = &ndev->stats;
   421		struct men_z192_cf_buf __iomem *cf_buf;
   422		u32 data[2] = {0, 0};
   423		int status;
   424		u32 id;
   425	
   426		if (can_dropped_invalid_skb(ndev, skb))
   427			return NETDEV_TX_OK;
   428	
   429		status = readl(&regs->rx_tx_sts);
   430	
   431		if (MEN_Z192_TX_BUF_CNT(status) >= 255) {
   432			netif_stop_queue(ndev);
   433			netdev_err(ndev, "not enough space in TX buffer\n");
   434	
   435			return NETDEV_TX_BUSY;
   436		}
   437	
   438		cf_buf = priv->dev_base + MEN_Z192_TX_BUF_START;
   439	
   440		if (cf->can_id & CAN_EFF_FLAG) {
   441			/* Extended frame */
   442			id = ((cf->can_id & CAN_EFF_MASK) <<
   443				MEN_Z192_CFBUF_ID2_SHIFT) & MEN_Z192_CFBUF_ID2;
   444	
   445			id |= (((cf->can_id & CAN_EFF_MASK) >>
   446				(CAN_EFF_ID_BITS - CAN_SFF_ID_BITS)) <<
   447				 MEN_Z192_CFBUF_ID1_SHIFT) & MEN_Z192_CFBUF_ID1;
   448	
   449			id |= MEN_Z192_CFBUF_IDE;
   450	
   451			if (cf->can_id & CAN_RTR_FLAG) {
   452				id |= MEN_Z192_CFBUF_SRR;
   453				id |= MEN_Z192_CFBUF_E_RTR;
   454			}
   455		} else {
   456			/* Standard frame */
   457			id = ((cf->can_id & CAN_SFF_MASK) <<
   458			       MEN_Z192_CFBUF_ID1_SHIFT) & MEN_Z192_CFBUF_ID1;
   459	
   460			if (cf->can_id & CAN_RTR_FLAG)
   461				id |= MEN_Z192_CFBUF_S_RTR;
   462		}
   463	
   464		if (cf->can_dlc > 0)
   465			data[0] = be32_to_cpup((__be32 *)(cf->data));
   466		if (cf->can_dlc > 3)
   467			data[1] = be32_to_cpup((__be32 *)(cf->data + 4));
   468	
   469		writel(id, &cf_buf->can_id);
   470		writel(cf->can_dlc, &cf_buf->length);
   471	
   472		if (!(cf->can_id & CAN_RTR_FLAG)) {
   473			writel(data[0], &cf_buf->data[0]);
   474			writel(data[1], &cf_buf->data[1]);
   475	
   476			stats->tx_bytes += cf->can_dlc;
   477		}
   478	
   479		/* be sure everything is written to the
   480		 * device before acknowledge the data.
   481		 */
 > 482		mmiowb();
   483	
   484		/* trigger the transmission */
   485		men_z192_ack_tx_pkg(priv, 1);
   486	
   487		stats->tx_packets++;
   488	
   489		kfree_skb(skb);
   490	
   491		return NETDEV_TX_OK;
   492	}
   493	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 72006 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-06 14:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06 14:34 [mkl-can-next:men 1/1] drivers/net/can/men_z192_can.c:482:2: error: implicit declaration of function 'mmiowb'; did you mean '__iowmb'? kbuild 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.