tree:
https://github.com/jpirko/linux_mlxsw net_next_queue
head: 4db3a8525898c8f8a5131792f6a03b698df5759e
commit: f8610c65010c63c61b6fceee17ae35713272a6b1 [13/38] net: ipv4: Emit notification when
fib hardware flags are changed
config: powerpc64-randconfig-s032-20210118 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
#
https://github.com/jpirko/linux_mlxsw/commit/f8610c65010c63c61b6fceee17ae...
git remote add jpirko-mlxsw
https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw net_next_queue
git checkout f8610c65010c63c61b6fceee17ae35713272a6b1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
> net/ipv4/fib_trie.c:1073:54: sparse: sparse: Using plain integer
as NULL pointer
vim +1073 net/ipv4/fib_trie.c
1037
1038 void fib_alias_hw_flags_set(struct net *net, const struct fib_rt_info *fri)
1039 {
1040 struct fib_alias *fa_match;
1041 struct sk_buff *skb;
1042 int err;
1043
1044 rcu_read_lock();
1045
1046 fa_match = fib_find_matching_alias(net, fri);
1047 if (!fa_match)
1048 goto out;
1049
1050 if (fa_match->offload == fri->offload && fa_match->trap ==
fri->trap)
1051 goto out;
1052
1053 fa_match->offload = fri->offload;
1054 fa_match->trap = fri->trap;
1055
1056 if (!net->ipv4.sysctl_fib_notify_on_flag_change)
1057 goto out;
1058
1059 skb = nlmsg_new(fib_nlmsg_size(fa_match->fa_info), GFP_ATOMIC);
1060 if (!skb) {
1061 err = -ENOBUFS;
1062 goto errout;
1063 }
1064
1065 err = fib_dump_info(skb, 0, 0, RTM_NEWROUTE, fri, 0);
1066 if (err < 0) {
1067 /* -EMSGSIZE implies BUG in fib_nlmsg_size() */
1068 WARN_ON(err == -EMSGSIZE);
1069 kfree_skb(skb);
1070 goto errout;
1071 }
1072
1073 rtnl_notify(skb, net, 0, RTNLGRP_IPV4_ROUTE, 0, GFP_ATOMIC);
1074 goto out;
1075
1076 errout:
1077 rtnl_set_sk_err(net, RTNLGRP_IPV4_ROUTE, err);
1078 out:
1079 rcu_read_unlock();
1080 }
1081 EXPORT_SYMBOL_GPL(fib_alias_hw_flags_set);
1082
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org