aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2010-03-23 13:35:22 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-24 16:31:20 -0700
commit4c87684d32e8f95715d53039dcd2d998dc63d1eb (patch)
tree80d351d6866fa15ff829408aee635145a039b7fb /include
parent3fa30460ea502133a18a07b14452cd660906f16f (diff)
downloadkernel_samsung_espresso10-4c87684d32e8f95715d53039dcd2d998dc63d1eb.zip
kernel_samsung_espresso10-4c87684d32e8f95715d53039dcd2d998dc63d1eb.tar.gz
kernel_samsung_espresso10-4c87684d32e8f95715d53039dcd2d998dc63d1eb.tar.bz2
kfifo: fix KFIFO_INIT in include/linux/kfifo.h
include/linux/kfifo.h first defines and then undefines __kfifo_initializer which is used by INIT_KFIFO (which is also a macro, so building a module which uses INIT_KFIFO will fail). Signed-off-by: David Härdeman <david@hardeman.nu> Acked-by: Stefani Seibold <stefani@seibold.net> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kfifo.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h
index bc0fc79..ece0b1c 100644
--- a/include/linux/kfifo.h
+++ b/include/linux/kfifo.h
@@ -102,8 +102,6 @@ union { \
unsigned char name##kfifo_buffer[size]; \
struct kfifo name = __kfifo_initializer(size, name##kfifo_buffer)
-#undef __kfifo_initializer
-
extern void kfifo_init(struct kfifo *fifo, void *buffer,
unsigned int size);
extern __must_check int kfifo_alloc(struct kfifo *fifo, unsigned int size,