]> git.baikalelectronics.ru Git - kernel.git/commit
list: test: Add a test for list_entry_is_head()
authorDavid Gow <davidgow@google.com>
Fri, 25 Feb 2022 02:52:49 +0000 (10:52 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 25 Feb 2022 15:39:01 +0000 (08:39 -0700)
commita44cce4efebaca724df48ee20d45ac3b458cab18
treef04a199a6de8a8c29361c3209459df8ea1c2870b
parenta974d92533e7526b869c957f5a1ef3eef996bb58
list: test: Add a test for list_entry_is_head()

The list_entry_is_head() macro was added[1] after the list KUnit tests,
so wasn't tested. Add a new KUnit test to complete the set.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=48bc9e3eb5dbb438ca935de47abe98a149d5d760

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