On Fri, 23 Oct 2026 at 17:24, Peter Maydell <[email protected]> wrote:
>
> The checkpatch.pl script insists that Fixes tags are at the start of
> each line of its input. Although this is where they ought to be
> in the commit message, it is not where the script will see them
> in common usage patterns like
>
>   git show <hash> | ./scripts/checkpatch.pl -
>
> because 'git show' prefaces each line of the commit message body with
> four spaces.  Allow spaces before the Fixes tag; this matches how we
> check for e.g.  Signed-off-by: tags.
>
> Reported-by: Stefano Garzarella <[email protected]>
> Fixes: 910e1d41be6b2 ("scripts/checkpatch: validate Fixes: tag format and 
> commit ancestry")
> Signed-off-by: Peter Maydell <[email protected]>
> ---
> I just ran into this myself today as well so wrote up the patch

Thanks for that!

Tested-by: Stefano Garzarella <[email protected]>


Reply via email to