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

From: Andy Shevchenko

Date: Mon Jan 19 2026 - 15:41:58 EST


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(-)

--
2.50.1