tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.9
head: 86939dc341d2ca7dcb02f5eb6dafe4c36cb5ec5a
commit: 86939dc341d2ca7dcb02f5eb6dafe4c36cb5ec5a [27/27] RDMA/addr: Be strict with gid
size
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.5.0
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
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-4.9
git checkout 86939dc341d2ca7dcb02f5eb6dafe4c36cb5ec5a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers/i2c/busses/i2c-designware-core.c: In function 'i2c_dw_init':
> drivers/i2c/busses/i2c-designware-core.c:409:4: error:
't' undeclared (first use in this function); did you mean 'tm'?
t->bus_freq_hz = I2C_MAX_FAST_MODE_FREQ;
^
tm
drivers/i2c/busses/i2c-designware-core.c:409:4: note: each undeclared identifier is
reported only once for each function it appears in
> drivers/i2c/busses/i2c-designware-core.c:409:21: error:
'I2C_MAX_FAST_MODE_FREQ' undeclared (first use in this function)
t->bus_freq_hz = I2C_MAX_FAST_MODE_FREQ;
^~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/thread_info.h:10,
from arch/xtensa/include/asm/current.h:16,
from include/linux/mutex.h:13,
from drivers/infiniband/core/addr.c:36:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/xtensa/include/asm/page.h:185:9: warning: comparison of unsigned expression >=
0 is always true [-Wtype-limits]
((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
^
include/linux/compiler.h:184:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/scatterlist.h:140:2: note: in expansion of macro 'BUG_ON'
BUG_ON(!virt_addr_valid(buf));
^~~~~~
arch/xtensa/include/asm/page.h:193:32: note: in expansion of macro 'pfn_valid'
#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
^~~~~~~~~
include/linux/scatterlist.h:140:10: note: in expansion of macro
'virt_addr_valid'
BUG_ON(!virt_addr_valid(buf));
^~~~~~~~~~~~~~~
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:185:9: warning: comparison of unsigned expression >=
0 is always true [-Wtype-limits]
((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
^
include/linux/compiler.h:184:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/dma-mapping.h:284:2: note: in expansion of macro 'BUG_ON'
BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
^~~~~~
include/linux/dma-mapping.h:284:9: note: in expansion of macro 'pfn_valid'
BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
^~~~~~~~~
drivers/infiniband/core/addr.c: At top level:
> drivers/infiniband/core/addr.c:80:4: error: 'const struct
nla_policy' has no member named 'validation_type'
.validation_type
= NLA_VALIDATE_MIN,
^~~~~~~~~~~~~~~
> drivers/infiniband/core/addr.c:80:22: error:
'NLA_VALIDATE_MIN' undeclared here (not in a function); did you mean
'MACSEC_VALIDATE_MAX'?
.validation_type = NLA_VALIDATE_MIN,
^~~~~~~~~~~~~~~~
MACSEC_VALIDATE_MAX
> drivers/infiniband/core/addr.c:80:22: warning: excess elements in
struct initializer
drivers/infiniband/core/addr.c:80:22: note: (near
initialization for 'ib_nl_addr_policy[4]')
> drivers/infiniband/core/addr.c:81:4: error: 'const struct
nla_policy' has no member named 'min'
.min = sizeof(struct
rdma_nla_ls_gid)},
^~~
drivers/infiniband/core/addr.c:81:10: warning: excess elements in struct initializer
.min = sizeof(struct rdma_nla_ls_gid)},
^~~~~~
drivers/infiniband/core/addr.c:81:10: note: (near initialization for
'ib_nl_addr_policy[4]')
vim +80 drivers/infiniband/core/addr.c
76
77 static const struct nla_policy ib_nl_addr_policy[LS_NLA_TYPE_MAX] = {
78 [LS_NLA_TYPE_DGID] = {.type = NLA_BINARY,
79 .len = sizeof(struct rdma_nla_ls_gid),
80 .validation_type = NLA_VALIDATE_MIN,
81 .min = sizeof(struct rdma_nla_ls_gid)},
82 };
83
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org