Skip to content

initramfs: get rid of custom hex2bin()

Andy Shevchenko linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4initramfs: Sort headers alphabeticallyinit/initramfs.c+12 -120 replies
2/4initramfs: Refactor to use hex2bin() instead of custom approachinit/initramfs.c+20 -165 replies
3/4vsprintf: Revert "add simple_strntoul"include/linux/kstrtox.h lib/vsprintf.c+0 -80 replies
4/4kstrtox: Drop extern keyword in the simple_strtox() declarationsinclude/linux/kstrtox.h+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/4] initramfs: get rid of custom hex2bin()

The series that introduced simple_strntoul() had passed into kernel without proper review and hence reinvented a wheel that's not needed. Here is the refactoring to show that. This is assumed to go via PRINTK tree.

I have tested this on x86, but I believe the same result will be on big-endian CPUs (I deduced that from how strtox() works).

Andy Shevchenko (4):
initramfs: Sort headers alphabetically
initramfs: Refactor to use hex2bin() instead of custom approach
vsprintf: Revert "add simple_strntoul"
kstrtox: Drop extern keyword in the simple_strtox() declarations

 include/linux/kstrtox.h |  9 +++----
 init/initramfs.c        | 60 ++++++++++++++++++++++-------------------
 lib/vsprintf.c          |  7 -----
 3 files changed, 36 insertions(+), 40 deletions(-)
Signature · 1 line
2.50.1