From 12656343a90b0a5a216dfed5d31c42a2268fe13d Mon Sep 17 00:00:00 2001 From: Mike Marciniszyn Date: Mon, 21 May 2012 08:58:32 -0400 Subject: [PATCH] compat: kernels <= 3.0 handle netlink_dump_start API change Older kernels don't have the last min_dump_alloc_arg to netlink_dump_start(). The arg removal can be disarmed with the NEED_MIN_DUMP_ALLOC_ARG to support compilation on SLES11SP2, which has the arg. Signed-off-by: Mike Marciniszyn --- include/linux/compat-3.1.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/compat-3.1.h b/include/linux/compat-3.1.h index 9845aea..164ab6f 100644 --- a/include/linux/compat-3.1.h +++ b/include/linux/compat-3.1.h @@ -23,6 +23,12 @@ static inline struct neighbour *dst_get_neighbour_raw(struct dst_entry *dst) return rcu_dereference_raw(dst->neighbour); } +#ifndef NEED_MIN_DUMP_ALLOC_ARG +#include +/* remove last arg */ +#define netlink_dump_start(a, b, c, d, e, f) netlink_dump_start(a, b, c, d, e) +#endif + #define genl_dump_check_consistent(cb, user_hdr, family) #define IFF_TX_SKB_SHARING 0x10000 /* The interface supports sharing -- 2.41.0