tree:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git master
head: e1d9d7b91302593d1951fcb12feddda6fb58a3c0
commit: 85ce50d337d10a6fd328fa70b0a15543bf5c0f64 [181/184] net: kcov: don't select
SKB_EXTENSIONS when there is no NET
config: arm64-randconfig-r032-20201113 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
9e0c35655b6e8186baef8840b26ba4090503b554)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commi...
git remote add netdev-net-next
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git
git fetch --no-tags netdev-net-next master
git checkout 85ce50d337d10a6fd328fa70b0a15543bf5c0f64
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/vdpa/ifcvf/ifcvf_main.c:15:
In file included from drivers/vdpa/ifcvf/ifcvf_base.h:17:
In file included from include/uapi/linux/virtio_net.h:32:
In file included from include/linux/if_ether.h:19:
include/linux/skbuff.h:4622:26: error: implicit declaration of function
'skb_ext_add' [-Werror,-Wimplicit-function-declaration]
u64 *kcov_handle_ptr = skb_ext_add(skb, SKB_EXT_KCOV_HANDLE);
^
include/linux/skbuff.h:4622:43: error: use of undeclared identifier
'SKB_EXT_KCOV_HANDLE'
u64 *kcov_handle_ptr = skb_ext_add(skb, SKB_EXT_KCOV_HANDLE);
^
include/linux/skbuff.h:4631:21: error: implicit declaration of function
'skb_ext_find' [-Werror,-Wimplicit-function-declaration]
u64 *kcov_handle = skb_ext_find(skb, SKB_EXT_KCOV_HANDLE);
^
include/linux/skbuff.h:4631:39: error: use of undeclared identifier
'SKB_EXT_KCOV_HANDLE'
u64 *kcov_handle = skb_ext_find(skb, SKB_EXT_KCOV_HANDLE);
^
> drivers/vdpa/ifcvf/ifcvf_main.c:420:31: warning: shift count
>= width of type [-Wshift-count-overflow]
ret = pci_set_dma_mask(pdev,
DMA_BIT_MASK(64));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
drivers/vdpa/ifcvf/ifcvf_main.c:426:42: warning: shift count >= width of type
[-Wshift-count-overflow]
ret = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
2 warnings and 4 errors generated.
vim +420 drivers/vdpa/ifcvf/ifcvf_main.c
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 399
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 400
static int ifcvf_probe(struct pci_dev *pdev, const struct pci_device_id *id)
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 401 {
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 402
struct device *dev = &pdev->dev;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 403
struct ifcvf_adapter *adapter;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 404
struct ifcvf_hw *vf;
3597a2fba672cfd drivers/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-07-31 405 int
ret, i;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 406
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 407 ret
= pcim_enable_device(pdev);
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 408 if
(ret) {
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 409
IFCVF_ERR(pdev, "Failed to enable device\n");
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 410
return ret;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 411 }
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 412
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 413 ret
= pcim_iomap_regions(pdev, BIT(0) | BIT(2) | BIT(4),
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 414
IFCVF_DRIVER_NAME);
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 415 if
(ret) {
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 416
IFCVF_ERR(pdev, "Failed to request MMIO region\n");
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 417
return ret;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 418 }
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 419
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 @420 ret
= pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 421 if
(ret) {
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 422
IFCVF_ERR(pdev, "No usable DMA confiugration\n");
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 423
return ret;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 424 }
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 425
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 426 ret
= pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 427 if
(ret) {
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 428
IFCVF_ERR(pdev,
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 429
"No usable coherent DMA confiugration\n");
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 430
return ret;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 431 }
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 432
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 433 ret
= devm_add_action_or_reset(dev, ifcvf_free_irq_vectors, pdev);
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 434 if
(ret) {
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 435
IFCVF_ERR(pdev,
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 436
"Failed for adding devres for freeing irq vectors\n");
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 437
return ret;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 438 }
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 439
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 440
adapter = vdpa_alloc_device(struct ifcvf_adapter, vdpa,
a9974489b61c09c drivers/vdpa/ifcvf/ifcvf_main.c Max Gurtovoy 2020-08-04 441
dev, &ifc_vdpa_ops,
a9974489b61c09c drivers/vdpa/ifcvf/ifcvf_main.c Max Gurtovoy 2020-08-04 442
IFCVF_MAX_QUEUE_PAIRS * 2);
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 443 if
(adapter == NULL) {
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 444
IFCVF_ERR(pdev, "Failed to allocate vDPA structure");
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 445
return -ENOMEM;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 446 }
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 447
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 448
pci_set_master(pdev);
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 449
pci_set_drvdata(pdev, adapter);
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 450
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 451 vf =
&adapter->vf;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 452
vf->base = pcim_iomap_table(pdev);
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 453
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 454
adapter->pdev = pdev;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 455
adapter->vdpa.dma_dev = &pdev->dev;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 456
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 457 ret
= ifcvf_init_hw(vf, pdev);
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 458 if
(ret) {
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 459
IFCVF_ERR(pdev, "Failed to init IFCVF hw\n");
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 460
goto err;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 461 }
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 462
3597a2fba672cfd drivers/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-07-31 463 for
(i = 0; i < IFCVF_MAX_QUEUE_PAIRS * 2; i++)
3597a2fba672cfd drivers/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-07-31 464
vf->vring[i].irq = -EINVAL;
3597a2fba672cfd drivers/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-07-31 465
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 466 ret
= vdpa_register_device(&adapter->vdpa);
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 467 if
(ret) {
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 468
IFCVF_ERR(pdev, "Failed to register ifcvf to vdpa bus");
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 469
goto err;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 470 }
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 471
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 472
return 0;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 473
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 474 err:
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 475
put_device(&adapter->vdpa.dev);
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 476
return ret;
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 477 }
5a2414bc454e89e drivers/virtio/vdpa/ifcvf/ifcvf_main.c Zhu Lingshan 2020-03-26 478
:::::: The code at line 420 was first introduced by commit
:::::: 5a2414bc454e89e0515b47500734a65aa40cf9fe virtio: Intel IFC VF driver for VDPA
:::::: TO: Zhu Lingshan <lingshan.zhu(a)intel.com>
:::::: CC: Michael S. Tsirkin <mst(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org