kfifo: fix KFIFO_INIT in include/linux/kfifo.h
authorDavid Härdeman <david@hardeman.nu>
Tue, 23 Mar 2010 20:35:22 +0000 (13:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Mar 2010 23:31:20 +0000 (16:31 -0700)
commit4c87684d32e8f95715d53039dcd2d998dc63d1eb
tree80d351d6866fa15ff829408aee635145a039b7fb
parent3fa30460ea502133a18a07b14452cd660906f16f
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>
include/linux/kfifo.h