tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
pending-4.19
head: da0ab6f9b4814a4a16e1999273d7dbd1a348314b
commit: f6ed8abfa222990685b78e1d3e6df3bca8efbf31 [48/61] ipv4: Fix device used for
dst_alloc with local routes
config: x86_64-randconfig-a002-20210620 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
d1baf2895467735ab14f4b3415fce204c0cc8e7f)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
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 pending-4.19
git checkout f6ed8abfa222990685b78e1d3e6df3bca8efbf31
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
net/ipv4/route.c:870:6: warning: variable 'log_martians' set but not used
[-Wunused-but-set-variable]
int log_martians;
^
> net/ipv4/route.c:1988:45: error: no member named 'nhc' in
'struct fib_result'
struct fib_nh_common *nhc = res->fi ?
res->nhc : NULL;
~~~ ^
> net/ipv4/route.c:1992:34: error: incomplete definition of type
'struct fib_nh_common'
dev =
l3mdev_master_dev_rcu(nhc->nhc_dev);
~~~^
net/ipv4/route.c:1988:9: note: forward declaration of 'struct fib_nh_common'
struct fib_nh_common *nhc = res->fi ? res->nhc : NULL;
^
1 warning and 2 errors generated.
vim +1988 net/ipv4/route.c
1983
1984 /* get device for dst_alloc with local routes */
1985 static struct net_device *ip_rt_get_dev(struct net *net,
1986 const struct fib_result *res)
1987 {
1988 struct fib_nh_common *nhc = res->fi ? res->nhc : NULL;
1989 struct net_device *dev = NULL;
1990
1991 if (nhc)
1992 dev = l3mdev_master_dev_rcu(nhc->nhc_dev);
1993
1994 return dev ? : net->loopback_dev;
1995 }
1996
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org