[PATCH] checkpatch: Add check for space indentation in Kconfig

Tom Rini trini at konsulko.com
Mon Dec 22 19:13:21 CET 2025


On Mon, Dec 22, 2025 at 05:42:55PM +0000, Kuan-Wei Chiu wrote:

> U-Boot requires Kconfig options to be indented with tabs, whereas Linux
> allows spaces. Add a U-Boot specific check to warn when spaces are used
> for indentation in Kconfig files.
> 
> To ensure this check is executed, move the u_boot_line() invocation in
> process() to occur before the valid source file check. Previously,
> Kconfig files were skipped by the file extension filter before the
> U-Boot specific checks could run.
> 
> Example warning:
> 
> WARNING: Kconfig indentation should use tabs
> +    bool
> 
> Link: https://lore.kernel.org/u-boot/20251222162026.GA847766@bill-the-cat/
> Signed-off-by: Kuan-Wei Chiu <visitorckw at gmail.com>

Thanks!

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20251222/734672bd/attachment.sig>


More information about the U-Boot mailing list