All of lore.kernel.org
 help / color / mirror / Atom feed
* [net-next:master 14/16] drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:2803:8: error: implicit declaration of function 'pci_vpd_check_csum'
@ 2021-08-23  5:48 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-23  5:48 UTC (permalink / raw)
  To: Heiner Kallweit; +Cc: clang-built-linux, kbuild-all, netdev

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   8d63ee602da381c437c0a4ef7ea882b71d829eb6
commit: 96ce96f151261e33a170cecb8a4fa664b45743ab [14/16] cxgb4: Validate VPD checksum with pci_vpd_check_csum()
config: riscv-randconfig-r014-20210822 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 79b55e5038324e61a3abf4e6a9a949c473edd858)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=96ce96f151261e33a170cecb8a4fa664b45743ab
        git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
        git fetch --no-tags net-next master
        git checkout 96ce96f151261e33a170cecb8a4fa664b45743ab
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

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 >>):

   In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
   In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
   In file included from include/linux/ethtool.h:18:
   In file included from include/uapi/linux/ethtool.h:19:
   In file included from include/linux/if_ether.h:19:
   In file included from include/linux/skbuff.h:31:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:136:
   include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __raw_readb(PCI_IOBASE + addr);
                             ~~~~~~~~~~ ^
   include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
   #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
                                                     ^
   In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
   In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
   In file included from include/linux/ethtool.h:18:
   In file included from include/uapi/linux/ethtool.h:19:
   In file included from include/linux/if_ether.h:19:
   In file included from include/linux/skbuff.h:31:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:136:
   include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                     ^
   In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
   In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
   In file included from include/linux/ethtool.h:18:
   In file included from include/uapi/linux/ethtool.h:19:
   In file included from include/linux/if_ether.h:19:
   In file included from include/linux/skbuff.h:31:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:136:
   include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writeb(value, PCI_IOBASE + addr);
                               ~~~~~~~~~~ ^
   include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
                                                         ~~~~~~~~~~ ^
   include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
                                                         ~~~~~~~~~~ ^
   include/asm-generic/io.h:1024:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
                                                     ~~~~~~~~~~ ^
>> drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:2803:8: error: implicit declaration of function 'pci_vpd_check_csum' [-Werror,-Wimplicit-function-declaration]
           ret = pci_vpd_check_csum(vpd, VPD_LEN);
                 ^
   7 warnings and 1 error generated.


vim +/pci_vpd_check_csum +2803 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

  2802	
> 2803		ret = pci_vpd_check_csum(vpd, VPD_LEN);
  2804		if (ret) {
  2805			dev_err(adapter->pdev_dev, "VPD checksum incorrect or missing\n");
  2806			ret = -EINVAL;
  2807			goto out;
  2808		}
  2809	
  2810		FIND_VPD_KW(ec, "EC");
  2811		FIND_VPD_KW(sn, "SN");
  2812		FIND_VPD_KW(pn, "PN");
  2813		FIND_VPD_KW(na, "NA");
  2814	#undef FIND_VPD_KW
  2815	
  2816		memcpy(p->id, vpd + PCI_VPD_LRDT_TAG_SIZE, id_len);
  2817		strim(p->id);
  2818		memcpy(p->ec, vpd + ec, EC_LEN);
  2819		strim(p->ec);
  2820		i = pci_vpd_info_field_size(vpd + sn - PCI_VPD_INFO_FLD_HDR_SIZE);
  2821		memcpy(p->sn, vpd + sn, min(i, SERNUM_LEN));
  2822		strim(p->sn);
  2823		i = pci_vpd_info_field_size(vpd + pn - PCI_VPD_INFO_FLD_HDR_SIZE);
  2824		memcpy(p->pn, vpd + pn, min(i, PN_LEN));
  2825		strim(p->pn);
  2826		memcpy(p->na, vpd + na, min(i, MACADDR_LEN));
  2827		strim((char *)p->na);
  2828	
  2829	out:
  2830		vfree(vpd);
  2831		return ret < 0 ? ret : 0;
  2832	}
  2833	

---
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: 45260 bytes --]

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

* [net-next:master 14/16] drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:2803:8: error: implicit declaration of function 'pci_vpd_check_csum'
@ 2021-08-23  5:48 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-23  5:48 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   8d63ee602da381c437c0a4ef7ea882b71d829eb6
commit: 96ce96f151261e33a170cecb8a4fa664b45743ab [14/16] cxgb4: Validate VPD checksum with pci_vpd_check_csum()
config: riscv-randconfig-r014-20210822 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 79b55e5038324e61a3abf4e6a9a949c473edd858)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=96ce96f151261e33a170cecb8a4fa664b45743ab
        git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
        git fetch --no-tags net-next master
        git checkout 96ce96f151261e33a170cecb8a4fa664b45743ab
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

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 >>):

   In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
   In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
   In file included from include/linux/ethtool.h:18:
   In file included from include/uapi/linux/ethtool.h:19:
   In file included from include/linux/if_ether.h:19:
   In file included from include/linux/skbuff.h:31:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:136:
   include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __raw_readb(PCI_IOBASE + addr);
                             ~~~~~~~~~~ ^
   include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
   #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
                                                     ^
   In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
   In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
   In file included from include/linux/ethtool.h:18:
   In file included from include/uapi/linux/ethtool.h:19:
   In file included from include/linux/if_ether.h:19:
   In file included from include/linux/skbuff.h:31:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:136:
   include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                     ^
   In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
   In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
   In file included from include/linux/ethtool.h:18:
   In file included from include/uapi/linux/ethtool.h:19:
   In file included from include/linux/if_ether.h:19:
   In file included from include/linux/skbuff.h:31:
   In file included from include/linux/dma-mapping.h:10:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/riscv/include/asm/io.h:136:
   include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writeb(value, PCI_IOBASE + addr);
                               ~~~~~~~~~~ ^
   include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
                                                         ~~~~~~~~~~ ^
   include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
                                                         ~~~~~~~~~~ ^
   include/asm-generic/io.h:1024:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
                                                     ~~~~~~~~~~ ^
>> drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:2803:8: error: implicit declaration of function 'pci_vpd_check_csum' [-Werror,-Wimplicit-function-declaration]
           ret = pci_vpd_check_csum(vpd, VPD_LEN);
                 ^
   7 warnings and 1 error generated.


vim +/pci_vpd_check_csum +2803 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

  2802	
> 2803		ret = pci_vpd_check_csum(vpd, VPD_LEN);
  2804		if (ret) {
  2805			dev_err(adapter->pdev_dev, "VPD checksum incorrect or missing\n");
  2806			ret = -EINVAL;
  2807			goto out;
  2808		}
  2809	
  2810		FIND_VPD_KW(ec, "EC");
  2811		FIND_VPD_KW(sn, "SN");
  2812		FIND_VPD_KW(pn, "PN");
  2813		FIND_VPD_KW(na, "NA");
  2814	#undef FIND_VPD_KW
  2815	
  2816		memcpy(p->id, vpd + PCI_VPD_LRDT_TAG_SIZE, id_len);
  2817		strim(p->id);
  2818		memcpy(p->ec, vpd + ec, EC_LEN);
  2819		strim(p->ec);
  2820		i = pci_vpd_info_field_size(vpd + sn - PCI_VPD_INFO_FLD_HDR_SIZE);
  2821		memcpy(p->sn, vpd + sn, min(i, SERNUM_LEN));
  2822		strim(p->sn);
  2823		i = pci_vpd_info_field_size(vpd + pn - PCI_VPD_INFO_FLD_HDR_SIZE);
  2824		memcpy(p->pn, vpd + pn, min(i, PN_LEN));
  2825		strim(p->pn);
  2826		memcpy(p->na, vpd + na, min(i, MACADDR_LEN));
  2827		strim((char *)p->na);
  2828	
  2829	out:
  2830		vfree(vpd);
  2831		return ret < 0 ? ret : 0;
  2832	}
  2833	

---
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: 45260 bytes --]

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

end of thread, other threads:[~2021-08-23  5:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23  5:48 [net-next:master 14/16] drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:2803:8: error: implicit declaration of function 'pci_vpd_check_csum' kernel test robot
2021-08-23  5:48 ` 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.