[ammarfaizi2-block:google/android/kernel/common/android-4.14-q-release 3312/9999] net/xfrm/xfrm_interface.c:742:13: warning: no previous declaration for 'xfrmi_get_link_net'

From: kernel test robot
Date: Wed Mar 02 2022 - 19:24:15 EST


Hi Steffen,

FYI, the error/warning still remains.

tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.14-q-release
head: 10b2283595d8504436650acaacae25859eb24bdc
commit: 73d9837ccf12f353d7c5bdcf84ebbe6d0c3b2015 [3312/9999] UPSTREAM: xfrm: Add virtual xfrm interfaces
config: i386-randconfig-a001-20220124 (https://download.01.org/0day-ci/archive/20220303/202203030812.b5xXlD0J-lkp@xxxxxxxxx/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/73d9837ccf12f353d7c5bdcf84ebbe6d0c3b2015
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.14-q-release
git checkout 73d9837ccf12f353d7c5bdcf84ebbe6d0c3b2015
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/xfrm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> net/xfrm/xfrm_interface.c:742:13: warning: no previous declaration for 'xfrmi_get_link_net' [-Wmissing-declarations]
struct net *xfrmi_get_link_net(const struct net_device *dev)
^~~~~~~~~~~~~~~~~~


vim +/xfrmi_get_link_net +742 net/xfrm/xfrm_interface.c

741
> 742 struct net *xfrmi_get_link_net(const struct net_device *dev)
743 {
744 struct xfrm_if *xi = netdev_priv(dev);
745
746 return dev_net(xi->phydev);
747 }
748

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx