• Ying Xue's avatar
    net: fix a compile error when SOCK_REFCNT_DEBUG is enabled · dec34fb0
    Ying Xue authored
    When SOCK_REFCNT_DEBUG is enabled, below build error is met:
    
    kernel/sysctl_binary.o: In function `sk_refcnt_debug_release':
    include/net/sock.h:1025: multiple definition of `sk_refcnt_debug_release'
    kernel/sysctl.o:include/net/sock.h:1025: first defined here
    kernel/audit.o: In function `sk_refcnt_debug_release':
    include/net/sock.h:1025: multiple definition of `sk_refcnt_debug_release'
    kernel/sysctl.o:include/net/sock.h:1025: first defined here
    make[1]: *** [kernel/built-in.o] Error 1
    make: *** [kernel] Error 2
    
    So we decide to make sk_refcnt_debug_release static to eliminate
    the error.
    Signed-off-by: default avatarYing Xue <ying.xue@windriver.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    dec34fb0
sock.h 62.3 KB