]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kfifo: fix warn_unused_result
authorStefani Seibold <stefani@seibold.net>
Mon, 21 Dec 2009 22:37:29 +0000 (14:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Dec 2009 22:17:56 +0000 (14:17 -0800)
commit9842c38e917636fa7dc6b88aff17a8f1fd7f0cc0
tree71d0b52ddc243743046bba9f774beca9febc393a
parent7acd72eb85f1c7a15e8b5eb554994949241737f1
kfifo: fix warn_unused_result

Fix the "ignoring return value of '...', declared with attribute
warn_unused_result" compiler warning in several users of the new kfifo
API.

It removes the __must_check attribute from kfifo_in() and
kfifo_in_locked() which must not necessary performed.

Fix the allocation bug in the nozomi driver file, by moving out the
kfifo_alloc from the interrupt handler into the probe function.

Fix the kfifo_out() and kfifo_out_locked() users to handle a unexpected
end of fifo.

Signed-off-by: Stefani Seibold <stefani@seibold.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/nozomi.c
drivers/infiniband/hw/cxgb3/cxio_resource.c
drivers/media/video/meye.c
drivers/net/wireless/libertas/main.c
drivers/scsi/libiscsi_tcp.c
drivers/scsi/libsrp.c
include/linux/kfifo.h