--- zzzz-none-000/linux-2.6.32.61/include/net/inet_timewait_sock.h 2013-06-10 09:43:48.000000000 +0000 +++ ar9-7330-650/linux-2.6.32.61/include/net/inet_timewait_sock.h 2011-01-18 10:33:14.000000000 +0000 @@ -216,7 +216,11 @@ struct inet_timewait_death_row *twdr, int family); static inline -struct net *twsk_net(const struct inet_timewait_sock *twsk) +struct net *twsk_net(const struct inet_timewait_sock *twsk +#ifndef CONFIG_NET_NS + __attribute__((unused)) +#endif + ) { #ifdef CONFIG_NET_NS return twsk->tw_net; @@ -226,7 +230,15 @@ } static inline -void twsk_net_set(struct inet_timewait_sock *twsk, struct net *net) +void twsk_net_set(struct inet_timewait_sock *twsk +#ifndef CONFIG_NET_NS + __attribute__((unused)) +#endif + , struct net *net +#ifndef CONFIG_NET_NS + __attribute__((unused)) +#endif + ) { #ifdef CONFIG_NET_NS twsk->tw_net = net;