]> git.baikalelectronics.ru Git - kernel.git/commit
kfifo: fix kfifo_alloc() to return a signed int value
authorStefani Seibold <stefani@seibold.net>
Wed, 27 Oct 2010 22:34:50 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:18 +0000 (18:03 -0700)
commit77b8f66938e379a99c4ef5e4162eb4ec81971fa2
tree2a444a3f618ec070f33b3024f7728db29f5ab7d4
parent826dcc7d665743d4cf842c89365ce22feb60329b
kfifo: fix kfifo_alloc() to return a signed int value

Add a new __kfifo_int_must_check_helper() helper function, which is needed
for kfifo_alloc() to return the right signed integer value.

The origin __kfifo_must_check_helper() helper was renamed into
__kfifo_uint_must_check_helper() to show the sign which is expected and
returned.

(And revert the temporary disabling of __kfifo_must_check_helper())

Signed-off-by: Stefani Seibold <stefani@seibold.net>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kfifo.h