Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 3 messages Oct 7, 2019 – Oct 11, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

In commit

1d200e9d6f63 ("block: Fix writeback throttling W=1 compiler warnings")

Fixes tag

Fixes e34cbd307477 ("blk-wbt: add general throttling mechanism"; v4.10).

has these problem(s):

- Subject has leading but no trailing quotes
- Subject does not match target commit subject

    Just use
	git log -1 --format='Fixes: %h ("%s")'
Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 6 lines · Stephen Rothwell

In commit

1d200e9d6f63 ("block: Fix writeback throttling W=1 compiler warnings")

Fixes tag

Quoted 8 lines
Fixes e34cbd307477 ("blk-wbt: add general throttling mechanism"; v4.10).

has these problem(s):

- Subject has leading but no trailing quotes
- Subject does not match target commit subject

     Just use
	git log -1 --format='Fixes: %h ("%s")'

Hi Stephen,

The above fixes tag follows the recommended format except that it is followed by a kernel version number. Is there a recommended format for embedding the kernel version number in a Fixes: tag? I think that information is useful. I haven't found any recommendations for how to do that in Documentation/process/submitting-patches.rst.

Thanks,

Bart.

#2 lore raw

Hi Bart,

Quoted 10 lines · On Thu, 10 Oct 2019 10:36:36 -0700 Bart Van Assche <[email protected]> wrote:
Quoted 2 lines · Stephen Rothwell
Fixes e34cbd307477 ("blk-wbt: add general throttling mechanism"; v4.10).

The above fixes tag follows the recommended format except that it is followed by a kernel version number. Is there a recommended format for embedding the kernel version number in a Fixes: tag? I think that information is useful. I haven't found any recommendations for how to do that in Documentation/process/submitting-patches.rst.

I have not seen any recommended way to do that, but there is no necessity to embed the version as it can easily be derived:

$ git describe --contains e34cbd307477
v4.10-rc1~153^2~94
Signature · 2 lines
Cheers,
Stephen Rothwell