]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
netfilter: nf_osf: move nf_osf_fingers to non-uapi header file
authorFernando Fernandez Mancera <ffmancera@riseup.net>
Tue, 31 Jul 2018 18:25:00 +0000 (20:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Aug 2018 16:38:29 +0000 (18:38 +0200)
All warnings (new ones prefixed by >>):

>> ./usr/include/linux/netfilter/nf_osf.h:73: userspace cannot reference function or variable defined in the kernel

Fixes: f9324952088f ("netfilter: nfnetlink_osf: extract nfnetlink_subsystem code from xt_osf.c")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/nf_osf.h
include/uapi/linux/netfilter/nf_osf.h

index aee460fcbd31495d0eabcd145bd147c761ec3672..3e455d6f94d5f99ac4c16bfec65b03e5e9e5ed4d 100644 (file)
@@ -25,6 +25,8 @@ enum osf_fmatch_states {
        FMATCH_OPT_WRONG,
 };
 
+extern struct list_head nf_osf_fingers[2];
+
 struct nf_osf_finger {
        struct rcu_head                 rcu_head;
        struct list_head                finger_entry;
index cc2487ff74f6240d50e520ca0dcefbeae7d8bdea..3b93fbb9fc24cf6a1e0b0337433704f54fbcc4fa 100644 (file)
@@ -70,8 +70,6 @@ struct nf_osf_nlmsg {
        struct tcphdr                   tcp;
 };
 
-extern struct list_head nf_osf_fingers[2];
-
 /* Defines for IANA option kinds */
 enum iana_options {
        OSFOPT_EOL = 0,         /* End of options */