Replace strncmp with str_has_prefix
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 12 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 12 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/12] Replace strncmp with str_has_prefix
The commit 72921427d46b
("string.h: Add str_has_prefix() helper function") introduced str_has_prefix() to substitute error-prone strncmp(str, const, len).
The commit b6b2735514bc
("tracing: Use str_has_prefix() instead of using fixed sizes") has fixed some codes.
These patches use str_has_prefix to replace
such pattern of strncmp usages.
Chuhong Yuan (12):
rdmacg: Replace strncmp with str_has_prefix
kdb: Replace strncmp with str_has_prefix
dma-debug: Replace strncmp with str_has_prefix
gcov: Replace strncmp with str_has_prefix genirq/debugfs: Replace strncmp with str_has_prefix
module: Replace strncmp with str_has_prefix
power: Replace strncmp with str_has_prefix
printk: Replace strncmp with str_has_prefix
reboot: Replace strncmp with str_has_prefix
sched: Replace strncmp with str_has_prefix
userns: Replace strncmp with str_has_prefix
watchdog: Replace strncmp with str_has_prefix
kernel/cgroup/rdma.c | 2 +- kernel/debug/kdb/kdb_main.c | 2 +- kernel/dma/debug.c | 2 +- kernel/gcov/fs.c | 2 +- kernel/irq/debugfs.c | 2 +- kernel/module.c | 2 +- kernel/power/hibernate.c | 8 ++++---- kernel/power/main.c | 2 +- kernel/printk/braille.c | 4 ++-- kernel/printk/printk.c | 6 +++--- kernel/reboot.c | 2 +- kernel/sched/debug.c | 2 +- kernel/sched/isolation.c | 4 ++-- kernel/user_namespace.c | 4 ++-- kernel/watchdog.c | 8 ++++---- 15 files changed, 26 insertions(+), 26 deletions(-)
Signature · 1 line
2.20.1