]> git.baikalelectronics.ru Git - kernel.git/commit
kfifo: add explicit error checking in byte stream example
authorAndrea Righi <arighi@develer.com>
Thu, 19 Aug 2010 21:13:29 +0000 (14:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 Aug 2010 16:34:54 +0000 (09:34 -0700)
commitda491bd5121a597f31c14e8cfe6c8e32c978f1ed
tree998b8c3f82abb46a5a1c297a20ea0d5c4a7c0408
parentc4dc429be2998fbc88c9e5954c47dab475d8fc47
kfifo: add explicit error checking in byte stream example

Provide a static array of expected items that kfifo should contain at the
end of the test to validate it.

Signed-off-by: Andrea Righi <arighi@develer.com>
Cc: Stefani Seibold <stefani@seibold.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
samples/kfifo/bytestream-example.c