[nf-next:master 9/9] include/net/netfilter/nf_reject.h:5: multiple definition of `nf_reject_verify_csum'; net/ipv4/netfilter/nf_reject_ipv4.o:include/net/netfilter/nf_reject.h:5: first defined here

[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 master
head:   bfcf40da75597a7c6761ab7dd8bba18b487ae2d9
commit: bfcf40da75597a7c6761ab7dd8bba18b487ae2d9 [9/9] netfilter: reject: skip csum verification for protocols that don't support it
config: x86_64-randconfig-s2-02130805 (attached as .config)
compiler: gcc-6 (Debian 6.5.0-2) 6.5.0 20181026
reproduce:
        git checkout bfcf40da75597a7c6761ab7dd8bba18b487ae2d9
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   ld: net/ipv6/netfilter/nf_reject_ipv6.o: in function `nf_reject_verify_csum':
>> include/net/netfilter/nf_reject.h:5: multiple definition of `nf_reject_verify_csum'; net/ipv4/netfilter/nf_reject_ipv4.o:include/net/netfilter/nf_reject.h:5: first defined here
   ld: net/ipv6/netfilter/ip6t_REJECT.o: in function `nf_reject_verify_csum':
>> include/net/netfilter/nf_reject.h:5: multiple definition of `nf_reject_verify_csum'; net/ipv4/netfilter/nf_reject_ipv4.o:include/net/netfilter/nf_reject.h:5: first defined here

vim +5 include/net/netfilter/nf_reject.h

     4	
   > 5	bool nf_reject_verify_csum(__u8 proto) {
     6		/* Skip protocols that don't use 16-bit one's complement checksum
     7		 * of the entire payload.
     8		 */
     9		switch (proto) {
    10			/* Protocols with other integrity checks. */
    11			case IPPROTO_AH:
    12			case IPPROTO_ESP:
    13			case IPPROTO_SCTP:
    14	
    15			/* Protocols with partial checksums. */
    16			case IPPROTO_UDPLITE:
    17			case IPPROTO_DCCP:
    18	
    19			/* Protocols with optional checksums. */
    20			case IPPROTO_GRE:
    21				return false;
    22		}
    23		return true;
    24	}
    25	

---
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