string.h: Use ARRAY_SIZE() for memtostr*()/strtomem*()
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 2 repliesIn review
- v13 patches 14 repliesSuperseded
Changes in v2 from the cover letter
- change __must_be_byte_array to __must_be_byte_array() (david)
- add missed Suggested-by (kent)
- clarify move log (miguel)
- clarify cover letter Clang version (andy)
v1: https://lore.kernel.org/lkml/[email protected]/
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | compiler.h: Move C string helpers into C-only kernel sectioninclude/ | +13 | 0 replies | |
| 2/3 | compiler.h: Introduce __must_be_byte_array()include/ | +7 | 0 replies | |
| 3/3 | string.h: Use ARRAY_SIZE() for memtostr*()/strtomem*()include/ | +8 | 2 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Miguel Ojeda | Suren Baghdasaryan |
|---|---|---|
| 1/3 | R-b | |
| 2/3 | ||
| 3/3 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] string.h: Use ARRAY_SIZE() for memtostr*()/strtomem*()
Work around a Clang <15 bug by switching to ARRAY_SIZE() (with the added benefit of explicitly checking for char array arguments) in memtostr*/strtomem*().
v2:
- change __must_be_byte_array to __must_be_byte_array() (david)
- add missed Suggested-by (kent)
- clarify move log (miguel)
- clarify cover letter Clang version (andy)
v1: https://lore.kernel.org/lkml/[email protected]/
-Kees
Kees Cook (3):
compiler.h: Move C string helpers into C-only kernel section compiler.h: Introduce __must_be_byte_array() string.h: Use ARRAY_SIZE() for memtostr*()/strtomem*()
include/linux/compiler.h | 32 +++++++++++++++++++------------- include/linux/string.h | 12 ++++++++---- 2 files changed, 27 insertions(+), 17 deletions(-)
Signature · 1 line
2.34.1