From: Hauke Mehrtens Date: Sat, 26 Dec 2009 21:44:34 +0000 (+0100) Subject: compat: backport kfifo for libertas X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=67e42ae9944837d0787a66c9ced00ceaa86d4a43;p=openwrt%2Fstaging%2Fblogic.git compat: backport kfifo for libertas Second part of the kfifo backport. Signed-off-by: Hauke Mehrtens --- diff --git a/include/linux/compat-2.6.33.h b/include/linux/compat-2.6.33.h index 5367cd99529e..68f0e2ca79be 100644 --- a/include/linux/compat-2.6.33.h +++ b/include/linux/compat-2.6.33.h @@ -11,6 +11,7 @@ #include #include #include +#include #define IFF_DONT_BRIDGE 0x800 /* disallow bridging this ether dev */ /* source: include/linux/if.h */ @@ -49,6 +50,13 @@ int pccard_loop_tuple(struct pcmcia_socket *s, unsigned int function, cisparse_t *parse, void *priv_data)); +/* Backport for kfifo + * kfifo_alloc and kfifo_free must be backported manually + */ +#define kfifo_in(a, b, c) __kfifo_put(*a, b, c) +#define kfifo_out(a, b, c) __kfifo_get(*a, b, c) +#define kfifo_len(a) __kfifo_len(*a) + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) */ #endif /* LINUX_26_33_COMPAT_H */