mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] list: add missing empty list check to list_cut_before()
@ 2026-09-17 12:55 Ziran Zhang
  2026-09-17 12:55 ` [PATCH v2 1/2] " Ziran Zhang
  2026-09-17 12:55 ` [PATCH v2 2/2] list: add KUnit test for list_cut_before() empty list case Ziran Zhang
  0 siblings, 2 replies; 7+ messages in thread
From: Ziran Zhang @ 2026-09-17 12:55 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Paul E . McKenney, David Howells, Jonathan Corbet,
	Jordan R Abrahams-Whitehead, Marco Elver, Nilay Shroff,
	Edward Cree, Simona Vetter, linux-kernel, Ziran Zhang

v2:
- Add a KUnit test case as requested by Andy Shevchenko.
- Patch 1 adds the missing list_empty() guard, patch 2 adds the
  test case.

v1:
- https://lore.kernel.org/all/20260916100001.10634-1-zhangcoder@yeah.net/

Tested with:
  tools/testing/kunit/kunit.py run --kernel_args=kunit.filter_glob='list-kunit-test'

Test result:
  [PASSED] list_test_list_cut_before_empty
  Testing complete. Ran 40 tests: passed: 40

Ziran Zhang (2):
  list: add missing empty list check to list_cut_before()
  list: add KUnit test for list_cut_before() empty list case

 include/linux/list.h  |  5 +++++
 lib/tests/list-test.c | 18 ++++++++++++++++++
 2 files changed, 23 insertions(+)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-09-18  7:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-17 12:55 [PATCH v2 0/2] list: add missing empty list check to list_cut_before() Ziran Zhang
2026-09-17 12:55 ` [PATCH v2 1/2] " Ziran Zhang
2026-09-17 15:21   ` Andy Shevchenko
2026-09-17 16:14     ` Ziran Zhang
2026-09-18  6:06       ` Andy Shevchenko
2026-09-17 12:55 ` [PATCH v2 2/2] list: add KUnit test for list_cut_before() empty list case Ziran Zhang
2026-09-18  7:33   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®