From: Ziran Zhang <zhangcoder@yeah.net>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "Paul E . McKenney" <paulmck@kernel.org>,
David Howells <dhowells@redhat.com>,
Jonathan Corbet <corbet@lwn.net>,
Jordan R Abrahams-Whitehead <ajordanr@google.com>,
Marco Elver <elver@google.com>,
Nilay Shroff <nilay@linux.ibm.com>,
Edward Cree <ecree@solarflare.com>,
Simona Vetter <simona.vetter@ffwll.ch>,
linux-kernel@vger.kernel.org, Ziran Zhang <zhangcoder@yeah.net>
Subject: [PATCH v3 0/2] list: add missing empty list check to list_cut_before()
Date: Fri, 18 Sep 2026 16:10:24 +0800 [thread overview]
Message-ID: <20260918081026.8050-1-zhangcoder@yeah.net> (raw)
v3:
- Elaborate the rationale in the commit message, as requested
by Andy Shevchenko.
- Add Reviewed-by from Andy Shevchenko to patch 2/2.
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
next reply other threads:[~2026-09-18 8:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-18 8:10 Ziran Zhang [this message]
2026-09-18 8:10 ` [PATCH v3 1/2] list: add missing empty list check to list_cut_before() Ziran Zhang
2026-09-18 9:45 ` Andy Shevchenko
2026-09-18 8:10 ` [PATCH v3 2/2] list: add KUnit test for list_cut_before() empty list case Ziran Zhang
2026-09-30 13:03 ` Ziran Zhang
2026-11-29 14:15 ` Ziran Zhang
2026-11-30 2:13 ` David Gow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260918081026.8050-1-zhangcoder@yeah.net \
--to=zhangcoder@yeah.net \
--cc=ajordanr@google.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=corbet@lwn.net \
--cc=dhowells@redhat.com \
--cc=ecree@solarflare.com \
--cc=elver@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nilay@linux.ibm.com \
--cc=paulmck@kernel.org \
--cc=simona.vetter@ffwll.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.