--- zzzz-none-000/linux-3.10.107/include/linux/netfilter.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/netfilter.h 2021-11-10 11:53:56.000000000 +0000 @@ -276,7 +276,9 @@ extern void (*nf_nat_decode_session_hook)(struct sk_buff *, struct flowi *); static inline void -nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl, u_int8_t family) +nf_nat_decode_session(struct sk_buff *skb __maybe_unused, + struct flowi *fl __maybe_unused, + u_int8_t family __maybe_unused) { #ifdef CONFIG_NF_NAT_NEEDED void (*decodefn)(struct sk_buff *, struct flowi *); @@ -292,23 +294,30 @@ #else /* !CONFIG_NETFILTER */ #define NF_HOOK(pf, hook, skb, indev, outdev, okfn) (okfn)(skb) #define NF_HOOK_COND(pf, hook, skb, indev, outdev, okfn, cond) (okfn)(skb) -static inline int nf_hook_thresh(u_int8_t pf, unsigned int hook, +static inline int nf_hook_thresh(u_int8_t pf __maybe_unused, + unsigned int hook __maybe_unused, struct sk_buff *skb, - struct net_device *indev, - struct net_device *outdev, - int (*okfn)(struct sk_buff *), int thresh) + struct net_device *indev __maybe_unused, + struct net_device *outdev __maybe_unused, + int (*okfn) (struct sk_buff *), + int thresh __maybe_unused) { return okfn(skb); } -static inline int nf_hook(u_int8_t pf, unsigned int hook, struct sk_buff *skb, - struct net_device *indev, struct net_device *outdev, - int (*okfn)(struct sk_buff *)) +static inline int nf_hook(u_int8_t pf __maybe_unused, + unsigned int hook __maybe_unused, + struct sk_buff *skb __maybe_unused, + struct net_device *indev __maybe_unused, + struct net_device *outdev __maybe_unused, + int (*okfn) (struct sk_buff *)__maybe_unused) { return 1; } struct flowi; static inline void -nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl, u_int8_t family) +nf_nat_decode_session(struct sk_buff *skb __maybe_unused, + struct flowi *fl __maybe_unused, + u_int8_t family __maybe_unused) { } #endif /*CONFIG_NETFILTER*/ @@ -334,7 +343,8 @@ }; extern struct nfq_ct_nat_hook __rcu *nfq_ct_nat_hook; #else -static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {} +static inline void nf_ct_attach(struct sk_buff *new __maybe_unused, + struct sk_buff *skb __maybe_unused) {} #endif #endif /*__LINUX_NETFILTER_H*/