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: x86_64-allyesconfig (attached as .config) compiler: gcc-7 (Debian 7.4.0-14) 7.4.0 reproduce: git checkout ee2172710a15be7687afaa9033920b97567a8fd3 # save the attached .config to linux build tree make ARCH=x86_64 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> 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' [-Werror=implicit-function-declaration] mmiowb(); ^~~~~~ cc1: some warnings being treated as errors vim +/mmiowb +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(®s->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:
.config.gz
Description: application/gzip