--- zzzz-none-000/linux-2.6.39.4/include/linux/netfilter.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/netfilter.h 2021-11-10 13:23:10.000000000 +0000 @@ -29,6 +29,9 @@ #define NF_VERDICT_MASK 0x000000ff /* extra verdict flags have mask 0x0000ff00 */ +#ifdef CONFIG_TI_PACKET_PROCESSOR +#define NF_VERDICT_FLAG_PP_BYPASS 0x00000100 +#endif /* CONFIG_TI_PACKET_PROCESSOR */ #define NF_VERDICT_FLAG_QUEUE_BYPASS 0x00008000 /* queue number (NF_QUEUE) or errno (NF_DROP) */ @@ -324,7 +327,7 @@ extern void (*ip_nat_decode_session)(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 __attribute__((unused)), struct flowi *fl __attribute__((unused)), u_int8_t family __attribute__((unused))) { #ifdef CONFIG_NF_NAT_NEEDED void (*decodefn)(struct sk_buff *, struct flowi *); @@ -347,23 +350,23 @@ #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 __attribute__((unused)), unsigned int hook __attribute__((unused)), struct sk_buff *skb, - struct net_device *indev, - struct net_device *outdev, - int (*okfn)(struct sk_buff *), int thresh) + struct net_device *indev __attribute__((unused)), + struct net_device *outdev __attribute__((unused)), + int (*okfn)(struct sk_buff *), int thresh __attribute__((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 __attribute__((unused)), unsigned int hook __attribute__((unused)), struct sk_buff *skb __attribute__((unused)), + struct net_device *indev __attribute__((unused)), struct net_device *outdev __attribute__((unused)), + int (*okfn)(struct sk_buff *) __attribute__((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 __attribute__((unused)), struct flowi *fl __attribute__((unused)), u_int8_t family __attribute__((unused))) { } #endif /*CONFIG_NETFILTER*/ @@ -373,7 +376,7 @@ extern void nf_ct_attach(struct sk_buff *, struct sk_buff *); extern void (*nf_ct_destroy)(struct nf_conntrack *) __rcu; #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 __attribute__((unused)), struct sk_buff *skb __attribute__((unused))) {} #endif #endif /*__KERNEL__*/