[net:master 11/11] net//ipv4/igmp.c:2157:2: error: implicit declaration of function 'ip_sf_list_clear_all'; did you mean 'ip_mc_filter_del'?
From: kbuild test robot <hidden>
Date: 2019-05-23 01:19:46
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git master
head: 3580d04aa674383c42de7b635d28e52a1e5bc72c
commit: 3580d04aa674383c42de7b635d28e52a1e5bc72c [11/11] ipv4/igmp: fix another memory leak in igmpv3_del_delrec()
config: i386-randconfig-x073-201920 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 3580d04aa674383c42de7b635d28e52a1e5bc72c
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <redacted>
All errors (new ones prefixed by >>):
net//ipv4/igmp.c: In function 'ip_mc_clear_src':quoted
net//ipv4/igmp.c:2157:2: error: implicit declaration of function 'ip_sf_list_clear_all'; did you mean 'ip_mc_filter_del'? [-Werror=implicit-function-declaration]
ip_sf_list_clear_all(tomb);
^~~~~~~~~~~~~~~~~~~~
ip_mc_filter_del
cc1: some warnings being treated as errors
vim +2157 net//ipv4/igmp.c
2142
2143 static void ip_mc_clear_src(struct ip_mc_list *pmc)
2144 {
2145 struct ip_sf_list *tomb, *sources;
2146
2147 spin_lock_bh(&pmc->lock);
2148 tomb = pmc->tomb;
2149 pmc->tomb = NULL;
2150 sources = pmc->sources;
2151 pmc->sources = NULL;
2152 pmc->sfmode = MCAST_EXCLUDE;
2153 pmc->sfcount[MCAST_INCLUDE] = 0;
2154 pmc->sfcount[MCAST_EXCLUDE] = 1;
2155 spin_unlock_bh(&pmc->lock);
2156 2157 ip_sf_list_clear_all(tomb);
2158 ip_sf_list_clear_all(sources); 2159 } 2160 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation