This function is copied from the kernel. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- include/linux/compat-2.6.34.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/compat-2.6.34.h b/include/linux/compat-2.6.34.h index 39bc13b..b8b48c0 100644 --- a/include/linux/compat-2.6.34.h +++ b/include/linux/compat-2.6.34.h @@ -8,6 +8,7 @@ #include <linux/netdevice.h> #include <linux/usb.h> #include <linux/mmc/sdio_func.h> +#include <net/sock.h> /* * Backports da68c4eb25 @@ -325,6 +326,11 @@ extern struct hlist_node *seq_hlist_start_head(struct hlist_head *head, extern struct hlist_node *seq_hlist_next(void *v, struct hlist_head *head, loff_t *ppos); +static inline struct sock *sk_entry(const struct hlist_node *node) +{ + return hlist_entry(node, struct sock, sk_node); +} + #else /* Kernels >= 2.6.34 */ static inline void init_compat_mmc_pm_flags(void) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html