]> 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)
commitcf4cb0b8592cd3d305b2117ebebf4a0bb703c313
treef04a199a6de8a8c29361c3209459df8ea1c2870b
parent259c9686e06e4c86dab8ee39093d2aac03f98631
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=b3dff7bcc4e0731b944f5eb7e3fb4e0cdaa56dcf

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