tree:
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.4.y
head: 4d0830b6c55d2f882d494879d52e6f2c34f35305
commit: 93fac9fa368d4c49b62745b6f324d019fb42ecc4 [10032/12851] HACK: scripts:
headers_install: fix allmodconfig builds
config: mips-randconfig-r012-20201209 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
5ff35356f1af2bb92785b38c657463924d9ec386)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git remote add ti
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.4.y
git checkout 93fac9fa368d4c49b62745b6f324d019fb42ecc4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
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/net/ethernet/mellanox/mlx5/core/main.c:43:
In file included from include/linux/mlx5/driver.h:52:
In file included from include/linux/mlx5/device.h:37:
In file included from include/rdma/ib_verbs.h:51:
In file included from include/net/ipv6.h:12:
In file included from include/linux/ipv6.h:87:
In file included from include/linux/tcp.h:19:
include/net/sock.h:2461:29: error: use of undeclared identifier
'SCM_REDUNDANT'
put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
^
> drivers/net/ethernet/mellanox/mlx5/core/main.c:243:31: warning:
shift count >= width of type [-Wshift-count-overflow]
err =
pci_set_dma_mask(pdev, DMA_BIT_MASK(64));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:142:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
drivers/net/ethernet/mellanox/mlx5/core/main.c:253:42: warning: shift count >= width
of type [-Wshift-count-overflow]
err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:142:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
2 warnings and 1 error generated.
vim +243 drivers/net/ethernet/mellanox/mlx5/core/main.c
012e50e109fd27 Huy Nguyen 2016-11-17 238
e126ba97dba9ed Eli Cohen 2013-07-07 239 static int set_dma_caps(struct pci_dev *pdev)
e126ba97dba9ed Eli Cohen 2013-07-07 240 {
e126ba97dba9ed Eli Cohen 2013-07-07 241 int err;
e126ba97dba9ed Eli Cohen 2013-07-07 242
e126ba97dba9ed Eli Cohen 2013-07-07 @243 err = pci_set_dma_mask(pdev,
DMA_BIT_MASK(64));
e126ba97dba9ed Eli Cohen 2013-07-07 244 if (err) {
1a91de28831a1b Joe Perches 2014-05-07 245 dev_warn(&pdev->dev, "Warning:
couldn't set 64-bit PCI DMA mask\n");
e126ba97dba9ed Eli Cohen 2013-07-07 246 err = pci_set_dma_mask(pdev,
DMA_BIT_MASK(32));
e126ba97dba9ed Eli Cohen 2013-07-07 247 if (err) {
1a91de28831a1b Joe Perches 2014-05-07 248 dev_err(&pdev->dev, "Can't
set PCI DMA mask, aborting\n");
e126ba97dba9ed Eli Cohen 2013-07-07 249 return err;
e126ba97dba9ed Eli Cohen 2013-07-07 250 }
e126ba97dba9ed Eli Cohen 2013-07-07 251 }
e126ba97dba9ed Eli Cohen 2013-07-07 252
e126ba97dba9ed Eli Cohen 2013-07-07 253 err = pci_set_consistent_dma_mask(pdev,
DMA_BIT_MASK(64));
e126ba97dba9ed Eli Cohen 2013-07-07 254 if (err) {
e126ba97dba9ed Eli Cohen 2013-07-07 255 dev_warn(&pdev->dev,
1a91de28831a1b Joe Perches 2014-05-07 256 "Warning: couldn't set 64-bit
consistent PCI DMA mask\n");
e126ba97dba9ed Eli Cohen 2013-07-07 257 err = pci_set_consistent_dma_mask(pdev,
DMA_BIT_MASK(32));
e126ba97dba9ed Eli Cohen 2013-07-07 258 if (err) {
e126ba97dba9ed Eli Cohen 2013-07-07 259 dev_err(&pdev->dev,
1a91de28831a1b Joe Perches 2014-05-07 260 "Can't set consistent PCI DMA
mask, aborting\n");
e126ba97dba9ed Eli Cohen 2013-07-07 261 return err;
e126ba97dba9ed Eli Cohen 2013-07-07 262 }
e126ba97dba9ed Eli Cohen 2013-07-07 263 }
e126ba97dba9ed Eli Cohen 2013-07-07 264
e126ba97dba9ed Eli Cohen 2013-07-07 265 dma_set_max_seg_size(&pdev->dev, 2u *
1024 * 1024 * 1024);
e126ba97dba9ed Eli Cohen 2013-07-07 266 return err;
e126ba97dba9ed Eli Cohen 2013-07-07 267 }
e126ba97dba9ed Eli Cohen 2013-07-07 268
:::::: The code at line 243 was first introduced by commit
:::::: e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c mlx5: Add driver for Mellanox Connect-IB
adapters
:::::: TO: Eli Cohen <eli(a)mellanox.com>
:::::: CC: Roland Dreier <roland(a)purestorage.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org