--- zzzz-none-000/linux-2.6.32.61/include/net/dst.h 2013-06-10 09:43:48.000000000 +0000 +++ ar9-7330-650/linux-2.6.32.61/include/net/dst.h 2014-08-12 13:03:17.000000000 +0000 @@ -48,6 +48,8 @@ #define DST_NOXFRM 2 #define DST_NOPOLICY 4 #define DST_NOHASH 8 +/* AVM: backport from 3.15 */ +#define DST_FAKE_RTABLE 0x0080 unsigned long expires; unsigned short header_len; /* more space at head required */ @@ -84,9 +86,18 @@ * (L1_CACHE_SIZE would be too much) */ #ifdef CONFIG_64BIT - long __pad_to_align_refcnt[2]; +#ifdef CONFIG_MAPPING + long mapping; + long __pad_to_align_refcnt[1]; #else - long __pad_to_align_refcnt[1]; + long __pad_to_align_refcnt[2]; +#endif +#else +#ifdef CONFIG_MAPPING + long mapping; +#else + long __pad_to_align_refcnt[1]; +#endif #endif /* * __refcnt wants to be on a different cache line from @@ -276,13 +287,13 @@ struct flowi; #ifndef CONFIG_XFRM -static inline int xfrm_lookup(struct net *net, struct dst_entry **dst_p, - struct flowi *fl, struct sock *sk, int flags) +static inline int xfrm_lookup(struct net *net __attribute__((unused)), struct dst_entry **dst_p __attribute__((unused)), + struct flowi *fl __attribute__((unused)), struct sock *sk __attribute__((unused)), int flags __attribute__((unused))) { return 0; } -static inline int __xfrm_lookup(struct net *net, struct dst_entry **dst_p, - struct flowi *fl, struct sock *sk, int flags) +static inline int __xfrm_lookup(struct net *net __attribute__((unused)), struct dst_entry **dst_p __attribute__((unused)), + struct flowi *fl __attribute__((unused)), struct sock *sk __attribute__((unused)), int flags __attribute__((unused))) { return 0; }