[PATCH] scripts/checkpatch.pl: Resync with v6.17

Tom Rini trini at konsulko.com
Mon Sep 29 19:57:55 CEST 2025


On Mon, Sep 29, 2025 at 07:24:32PM +0200, Kory Maincent wrote:

> This resyncs us with the version found in v6.17 of the Linux kernel with
> the following exceptions:
> - Keep our u-boot specific tests / code area.
> - Keep the location of our checkpatch.rst
> - Change the "use strscpy" test as we don't have that to strlcpy
> - Keep debug/printf in the list for $logFunctions
> - Keep checks to "env" files
> 
> This also syncs the spdxcheck.py tool and all the associated
> documentation.
> 
> Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>

I forgot to mention:
commit 0fd7ee0306a88bd99d3820167fa45a7ee6fbc1e1
Author: Tom Rini <trini at konsulko.com>
Date:   Wed Feb 26 09:33:45 2025 -0600

    scripts/checkpatch.pl: Upgrade IS_ENABLED_CONFIG to error for U-Boot
    
    A problem we have today is that some instances of IS_ENABLED(FOO) have
    crept in to the code. This is in turn because with checkpatch.pl this is
    only a warning and not an error, so they were overlooked. And looking
    deeper, in the Linux kernel this pattern is allowed because
    IS_ENABLED(DEFINED_FLAG) is allowed if discouraged and a quick skim of
    the instances I saw in the current kernel follow this pattern. In U-Boot
    however, this is not allowed, so bump to an error.
    
    Signed-off-by: Tom Rini <trini at konsulko.com>

earlier, sorry. But it's easy to not undo this change, so barring other
comments I'll just fix that when applying.

Thanks for doing the resync!

-- 
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/20250929/7baa6924/attachment.sig>


More information about the U-Boot mailing list