Skip to contentSkip to conversation

fix KFIFO_INIT in include/linux/kfifo.h

PATCH In review David Härdeman 2 participants 2 messages Mar 20, 2010 Kfifo

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

---
 include/linux/kfifo.h |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
include/linux/kfifo.h +0 -2
index bc0fc79..ece0b1c 100644
@@ -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,
Signature · 1 line
1.7.0
maintainer Acked-by on v1 1/1
#1 lore raw

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).

---
 include/linux/kfifo.h |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
include/linux/kfifo.h +0 -2
index bc0fc79..ece0b1c 100644
@@ -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,