]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bootconfig: move xbc_snprint_cmdline() to lib/bootconfig.c
authorBreno Leitao <leitao@debian.org>
Fri, 8 May 2026 13:55:03 +0000 (06:55 -0700)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 12 May 2026 00:44:31 +0000 (09:44 +0900)
commit5a643e4623238e14b03d75ca0d4eda0645720cee
tree7ac920c465cef7d2568331f0486f587d3e46df0f
parent5d6919055dec134de3c40167a490f33c74c12581
bootconfig: move xbc_snprint_cmdline() to lib/bootconfig.c

Move xbc_snprint_cmdline() from init/main.c to lib/bootconfig.c so the
function (and its xbc_namebuf scratch buffer) becomes part of the shared
parser library. tools/bootconfig already compiles lib/bootconfig.c
directly, which lets a follow-up patch reuse the same renderer in the
userspace tool to convert a bootconfig file into a flat cmdline string
at build time.

No functional change.

Link: https://lore.kernel.org/all/20260508-bootconfig_using_tools-v1-1-1132219aa773@debian.org/
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
include/linux/bootconfig.h
init/main.c
lib/bootconfig.c