list: add missing empty list check to list_cut_before()
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 2 repliesIn review
- v22 patches 4 repliesSuperseded
- v11 patch 4 repliesSuperseded
Changes in v3 from the cover letter
- Elaborate the rationale in the commit message, as requested by Andy Shevchenko.
- Add Reviewed-by from Andy Shevchenko to patch 2/2.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | list: add missing empty list check to list_cut_before()include/ | +5 | 1 reply | |
| 2/2 | list: add KUnit test for list_cut_before() empty list caselib/ | +18 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Andy Shevchenko |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/2] list: add missing empty list check to list_cut_before()
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/[email protected]/
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(+)
Signature · 1 line
2.51.0