Re: [PATCH v2] checkpatch: report warning with files ending with blank lines
From: Christian Marangi (Ansuel)
Date: Wed Oct 07 2026 - 14:50:44 EST
Il giorno mer 7 ott 2026 alle ore 20:48 Joe Perches <joe@xxxxxxxxxxx>
ha scritto:
>
> On Wed, 2026-10-07 at 20:31 +0200, Christian Marangi wrote:
>
> > > > It's to catch situation like this. Example for entire new file or adding
> > > > stuff at the end of a file, where a new line is introduced.
> > > >
> > > > git am will complain about this.
> > >
> > > It seems there's something odd about the patch content
> > > as there aren't any context lines after the addition.
> > >
> > > How was it generated ?
> >
> > It was just an example, it's not the full patch. Just the last patch.
>
> Send more correct examples.
Here... the DT file adds a whitespace at the end of file. With this
patch checkpatch
correctly report the problem.