Re: [PATCH v2 1/2] init, arch: make CONFIG_COMMAND_LINE_SIZE globally configurable

[email protected]
Newsgroups org.kernel.vger.linux-s390
Message-ID <[email protected]>
> Currently, s390 has the ability to configure the maximum kernel command
> line size via Kconfig (CONFIG_COMMAND_LINE_SIZE). Other architectures
> define a hardcoded COMMAND_LINE_SIZE macro in their setup.h headers.
> 
> In some use cases, such as netboot kernels, rootfs configurations, or
> larger initramfs setups, a larger command line size is required. While
> for embedded workloads, it can be reduced to save memory.
> 
> Move CONFIG_COMMAND_LINE_SIZE out of arch/s390/Kconfig and into
> init/Kconfig under General setup, and update every architecture's setup.h
> header to define COMMAND_LINE_SIZE as CONFIG_COMMAND_LINE_SIZE.
> 
> For user-space API (uapi) headers, wrap the definition in an
> `#ifdef __KERNEL__` guard and retain the historical hardcoded default in
> the `#else` block. When user-space headers are installed via
> [ ... ]
> architectures are capped at 4096 bytes to prevent unreasonable
> allocations.
> 
> Signed-off-by: Maciej Żenczykowski <[email protected]>
> Signed-off-by: Wilson Felipe Pereira <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.