]> git.baikalelectronics.ru Git - kernel.git/commit
list: test: Add a test for list_is_head()
authorDavid Gow <davidgow@google.com>
Fri, 25 Feb 2022 02:52:48 +0000 (10:52 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 25 Feb 2022 15:38:55 +0000 (08:38 -0700)
commita974d92533e7526b869c957f5a1ef3eef996bb58
tree6cfa68eedab40792a8c70184444b8a381ac891f3
parentaa876ca1d2d547b0ce367770805dc6f7ba93fc45
list: test: Add a test for list_is_head()

list_is_head() was added recently[1], and didn't have a KUnit test. The
implementation is trivial, so it's not a particularly exciting test, but
it'd be nice to get back to full coverage of the list functions.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/linux/list.h?id=b63df3f34cafb0707b584f3ea8c229cc3f6a9a45

Signed-off-by: David Gow <davidgow@google.com>
Acked-by: Daniel Latypov <dlatypov@google.com>
Acked-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/list-test.c