[nf-next:for-net-next 36/40] net//netfilter/utils.c:60:9: warning: 'ret' may be used uninitialized in this function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git for-net-next
head:   680cba277b9779591e673100f6896e5baed7a180
commit: b8791270afcc93fac33133e28a7de74dee511707 [36/40] netfilter: remove reroute indirection in struct nf_afinfo
config: s390-default_defconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout b8791270afcc93fac33133e28a7de74dee511707
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   net//netfilter/utils.c: In function 'nf_reroute':
>> net//netfilter/utils.c:60:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
     return ret;
            ^~~

vim +/ret +60 net//netfilter/utils.c

    46	
    47	int nf_reroute(struct sk_buff *skb, struct nf_queue_entry *entry)
    48	{
    49		int ret;
    50	
    51		switch (entry->state.pf) {
    52		case AF_INET:
    53			ret = nf_ip_reroute(skb, entry);
    54			break;
    55		case AF_INET6:
    56			ret = nf_ip6_reroute(skb, entry);
    57			break;
    58		}
    59	
  > 60		return ret;
    61	}
    62	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux