* [PATCH] fix KFIFO_INIT in include/linux/kfifo.h
@ 2010-03-20 8:41 David Härdeman
2010-03-20 10:41 ` Stefani Seibold
0 siblings, 1 reply; 2+ messages in thread
From: David Härdeman @ 2010-03-20 8:41 UTC (permalink / raw)
To: linux-kernel; +Cc: stefani
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>
CC: stable@kernel.org
CC: stefani@seibold.net
---
include/linux/kfifo.h | 2 --
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,
--
1.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fix KFIFO_INIT in include/linux/kfifo.h
2010-03-20 8:41 [PATCH] fix KFIFO_INIT in include/linux/kfifo.h David Härdeman
@ 2010-03-20 10:41 ` Stefani Seibold
0 siblings, 0 replies; 2+ messages in thread
From: Stefani Seibold @ 2010-03-20 10:41 UTC (permalink / raw)
To: David Härdeman, Andrew Morton; +Cc: linux-kernel
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
CC: stefani@seibold.net
---
include/linux/kfifo.h | 2 --
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,
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-20 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-20 8:41 [PATCH] fix KFIFO_INIT in include/linux/kfifo.h David Härdeman
2010-03-20 10:41 ` Stefani Seibold
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.