mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Ian Rogers <irogers@google.com>
Cc: Joe Perches <joe@perches.com>,
	Kuan-Wei Chiu <visitorckw@gmail.com>,
	Dwaipayan Ray <dwaipayanray1@gmail.com>,
	Lukas Bulwahn <lukas.bulwahn@gmail.com>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	Andy Whitcroft <apw@canonical.com>,
	linux-kernel@vger.kernel.org, Namhyung Kim <namhyung@kernel.org>
Subject: Re: [PATCH v1] checkpatch: Warn about sign offs if there's an accidental patch separator
Date: Tue, 13 Jan 2026 19:33:19 -0800	[thread overview]
Message-ID: <20260113193319.701e5799059eb642bbfc9a04@linux-foundation.org> (raw)
In-Reply-To: <CAP-5=fXDd7TV2MN_G9EQWdn1Cddg05prV7i=LVBin2HikND0rw@mail.gmail.com>

On Mon, 5 Jan 2026 09:13:49 -0800 Ian Rogers <irogers@google.com> wrote:

> On Mon, Jan 5, 2026 at 8:46 AM Joe Perches <joe@perches.com> wrote:
> >
> > On Mon, 2026-01-05 at 07:39 -0800, Ian Rogers wrote:
> > > I was the author of it. The patch passed checkpatch.pl but then
> > > created a commit with missing tags - ie it was broken. This patch is
> > > fixing this issue so that checkpatch.pl will warn about the missing
> > > tags prior to the patch being sent to LKML, which is kind of
> > > checkpatch.pl's purpose. This is all detailed in the commit message.
> >
> > Whatever was the tool that applied the patch should be fixed instead.
> 
> The tool was git. As I mentioned, we can patch git but old versions
> will still have the '^---' rather than '^---$' behavior and so these
> checkpatch.pl tests remain useful.
> 

I was bitten by this recently.  Someone's changelog had

----------- stuff here

and git-quiltimport remove half the changelog and all the metadata.

git is wrong.  I say so coz I invented the --- convention. 
submitting-patches.rst says

	  - A marker line containing simply ``---``.

The astonishingly old https://www.ozlabs.org/~akpm/stuff/tpp.txt says
"...  scripts will treat a ^--- string as ...".  I regret not
explicitly using "^---$".

I'd like checkpatch to emit a warning in this case.  If a line starts
with --- then please let's warn the user that downstream tooling will
screw this up.  

  reply	other threads:[~2026-01-14  3:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-05  5:34 Ian Rogers
2025-12-05  7:22 ` Kuan-Wei Chiu
2026-01-04  1:10   ` Ian Rogers
2026-01-04 17:37     ` Kuan-Wei Chiu
     [not found]       ` <195a2cba2b461a0ab99ae004bdf079b038db8b07.camel@perches.com>
2026-01-04 21:13         ` Ian Rogers
2026-01-04 22:22           ` Joe Perches
2026-01-05 15:39             ` Ian Rogers
2026-01-05 16:46               ` Joe Perches
2026-01-05 17:13                 ` Ian Rogers
2026-01-14  3:33                   ` Andrew Morton [this message]
2026-01-14  5:29                     ` Stephen Rothwell
2026-01-14 18:20                     ` Joe Perches
2026-01-14 19:01                       ` Ian Rogers
2026-01-16 17:42                     ` [PATCH] checkpatch: Add an invalid patch separator test Joe Perches
2026-01-16 20:48                       ` Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260113193319.701e5799059eb642bbfc9a04@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=apw@canonical.com \
    --cc=dwaipayanray1@gmail.com \
    --cc=irogers@google.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lukas.bulwahn@gmail.com \
    --cc=namhyung@kernel.org \
    --cc=sfr@canb.auug.org.au \
    --cc=visitorckw@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®