kfifo: fix KFIFO_INIT in include/linux/kfifo.h
commit5e2c1b11b55ed5d758d503ba0a9d6188c7f7aad1
authorDavid Härdeman <david@hardeman.nu>
Tue, 23 Mar 2010 20:35:22 +0000 (23 13:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 23:01:46 +0000 (1 16:01 -0700)
tree5cb6309a64283813f5387c82675eb4188617702d
parentb48cf4837f3edb4b0fa8101f4544dba37be6188f
kfifo: fix KFIFO_INIT in include/linux/kfifo.h

commit 4c87684d32e8f95715d53039dcd2d998dc63d1eb upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/kfifo.h