Skip to contentSkip to conversation

linux-next: Fixes tag needs some work in the drm tree

DISCUSSION Stephen Rothwell 3 participants 4 messages Jun 3, 2022 – Jun 4, 2022 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

In commit

8caad14e7224 ("drm/msm/dpu: Fix pointer dereferenced before checking")

Fixes tag

Fixes d7d0e73f7de33 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for

has these problem(s):

- Subject has leading but no trailing parentheses
- Subject has leading but no trailing quotes

Fixes tags should not be truncated or split across more than 1 line. So:

Fixes d7d0e73f7de3 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback")
Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 11 lines · Stephen Rothwell

Hi all,

In commit

8caad14e7224 ("drm/msm/dpu: Fix pointer dereferenced before checking")

Fixes tag

Fixes d7d0e73f7de33 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for
Quoted 8 lines

has these problem(s):

- Subject has leading but no trailing parentheses
- Subject has leading but no trailing quotes

Fixes tags should not be truncated or split across more than 1 line. So:

Fixes d7d0e73f7de3 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback")

Hmm, checkpatch seems to not catch this (unless it was a recent addition that landed after what msm-fixes is based on.

will the truncated subject confuse the scripts that look for patches to backport to stable, ie. do we *really* have to rewrite history to fix this?

BR,
-R

#2 lore raw

Hi Rob,

Quoted 4 lines · On Fri, 3 Jun 2022 07:58:14 -0700 Rob Clark <[email protected]> wrote:

will the truncated subject confuse the scripts that look for patches to backport to stable, ie. do we *really* have to rewrite history to fix this?

I don't know what scripts are being used and what they expect, but our documentation says (Documentation/process/submitting-patches.rst):

If your patch fixes a bug in a specific commit, e.g. you found an issue using ``git bisect``, please use the 'Fixes:' tag with the first 12 characters of the SHA-1 ID, and the one line summary. Do not split the tag across multiple lines, tags are exempt from the "wrap at 75 columns" rule in order to simplify parsing scripts.

But, that being said, doing the rewrite is up to the maintainer. You could just look at this as a learning experience and do better in the future.

BTW, my script reacted to the missing closing quotes and parentheses, which is more like to confuse any scripts that the actual truncation.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 18 lines · Stephen Rothwell

Hi Rob,

Quoted 4 lines · On Fri, 3 Jun 2022 07:58:14 -0700 Rob Clark <[email protected]> wrote:

will the truncated subject confuse the scripts that look for patches to backport to stable, ie. do we *really* have to rewrite history to fix this?

I don't know what scripts are being used and what they expect, but our documentation says (Documentation/process/submitting-patches.rst):

If your patch fixes a bug in a specific commit, e.g. you found an issue using ``git bisect``, please use the 'Fixes:' tag with the first 12 characters of the SHA-1 ID, and the one line summary. Do not split the tag across multiple lines, tags are exempt from the "wrap at 75 columns" rule in order to simplify parsing scripts.

Quoted 3 lines

But, that being said, doing the rewrite is up to the maintainer. You could just look at this as a learning experience and do better in the future.

Ok, I'll leave it up to airlied

If you don't mind sharing, what is the script you use? We could perhaps add it to our WIP CI.. a script is much less likely to miss a check than a human, so I'm a fan of automating these sorts of checks whenever possible ;-)

BR,
-R

Quoted 5 lines

BTW, my script reacted to the missing closing quotes and parentheses, which is more like to confuse any scripts that the actual truncation. --
Cheers,
Stephen Rothwell