Skip to contentSkip to conversation

wifi: ath9k: Fix typo

PATCH Applied Alejandro Colomar 4 participants 14 messages Dec 21, 2025 – Feb 26 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: ath9k: Fix typo

This only worked by chance, because all callers of this macro used the same identifiers that were expected by the macro.

	$ grep -rn ath_for_each_chanctx
	drivers/net/wireless/ath/ath9k/main.c:1576:	ath_for_each_chanctx(sc, ctx)
	drivers/net/wireless/ath/ath9k/main.c:2554:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:165:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:291:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:861:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/debug.c:717:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/ath9k.h:446:#define ath_for_each_chanctx(_sc, _ctx)                               \
Fixes c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")
Cc Rajkumar Manoharan <[email protected]>
Cc John W. Linville <[email protected]>
Cc Toke Høiland-Jørgensen <[email protected]>

---

Hi!

I haven't build-tested the patch. It should obviously work, but please check. I just realized about it while doing something else, and thought I should send a quick fix.

Have a lovely night!
Alex

 drivers/net/wireless/ath/ath9k/ath9k.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath9k/ath9k.h +1 -1
index 6e38aa7351e3..e8635bf81f9d 100644
@@ -443,7 +443,7 @@ ath_node_to_tid(struct ath_node *an, u8 tidno)
 
 #define case_rtn_string(val) case val: return #val
 
-#define ath_for_each_chanctx(_sc, _ctx)                             \
+#define ath_for_each_chanctx(sc, ctx)                               \
 	for (ctx = &sc->chanctx[0];                                 \
 	     ctx <= &sc->chanctx[ARRAY_SIZE(sc->chanctx) - 1];      \
 	     ctx++)

Range-diff against v0:
-: ------------ > 1: 6ab107cf786f wifi: ath9k: Fix typo

Signature · 1 line
2.51.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Alejandro Colomar

This only worked by chance, because all callers of this macro used the same identifiers that were expected by the macro.

	$ grep -rn ath_for_each_chanctx
	drivers/net/wireless/ath/ath9k/main.c:1576:	ath_for_each_chanctx(sc, ctx)
	drivers/net/wireless/ath/ath9k/main.c:2554:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:165:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:291:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:861:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/debug.c:717:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/ath9k.h:446:#define ath_for_each_chanctx(_sc, _ctx)                               \
Quoted 5 lines
Fixes c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")
Cc Rajkumar Manoharan <[email protected]>
Cc John W. Linville <[email protected]>
Cc Toke Høiland-Jørgensen <[email protected]>

Yeah, looks reasonable - thanks!

#2 lore raw
Quoted 14 lines · Toke Høiland-Jørgensen
Quoted 12 lines · Alejandro Colomar

This only worked by chance, because all callers of this macro used the same identifiers that were expected by the macro.

	$ grep -rn ath_for_each_chanctx
	drivers/net/wireless/ath/ath9k/main.c:1576:	ath_for_each_chanctx(sc, ctx)
	drivers/net/wireless/ath/ath9k/main.c:2554:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:165:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:291:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:861:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/debug.c:717:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/ath9k.h:446:#define ath_for_each_chanctx(_sc, _ctx)                               \
Quoted 1 line
Quoted 1 line
Fixes c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")

I'm dropping the Fixes tag since the existing code actually works and hence there is no need to backport to LTS kernels.

Quoted 9 lines
Quoted 4 lines
Cc Rajkumar Manoharan <[email protected]>
Cc John W. Linville <[email protected]>
Cc Toke Høiland-Jørgensen <[email protected]>

Yeah, looks reasonable - thanks!

#3 lore raw

Hi Jeff,

Quoted 15 lines · Jeff Johnson
Quoted 14 lines · Toke Høiland-Jørgensen
Quoted 12 lines · Alejandro Colomar

This only worked by chance, because all callers of this macro used the same identifiers that were expected by the macro.

	$ grep -rn ath_for_each_chanctx
	drivers/net/wireless/ath/ath9k/main.c:1576:	ath_for_each_chanctx(sc, ctx)
	drivers/net/wireless/ath/ath9k/main.c:2554:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:165:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:291:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:861:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/debug.c:717:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/ath9k.h:446:#define ath_for_each_chanctx(_sc, _ctx)                               \
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Fixes c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")

I'm dropping the Fixes tag since the existing code actually works and hence there is no need to backport to LTS kernels.

Sounds reasonable. Alternatively, a line next to it saying

[Do not backport]

would work, I guess.

Greg, I've seen this situation already a few times. A Fixes tag getting removed to avoid triggering a stable backport. But I think keeping the Fixes tag could be useful. Should we have a standard way to document that a patch fixes an old commit without meaning that it should be backported? Maybe something like this?:

	[Do not backport to stable]
	Fixes: ...

In any case, feel free to remove it.

Have a lovely night!
Alex

Quoted 11 lines
Quoted 10 lines
Quoted 5 lines
Cc Rajkumar Manoharan <[email protected]>
Cc John W. Linville <[email protected]>
Cc Toke Høiland-Jørgensen <[email protected]>

Yeah, looks reasonable - thanks!

Signature · 1 line
<https://www.alejandro-colomar.es>
#4 lore raw
Quoted 35 lines · Alejandro Colomar

Hi Jeff,

Quoted 15 lines · Jeff Johnson
Quoted 14 lines · Toke Høiland-Jørgensen
Quoted 12 lines · Alejandro Colomar

This only worked by chance, because all callers of this macro used the same identifiers that were expected by the macro.

	$ grep -rn ath_for_each_chanctx
	drivers/net/wireless/ath/ath9k/main.c:1576:	ath_for_each_chanctx(sc, ctx)
	drivers/net/wireless/ath/ath9k/main.c:2554:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:165:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:291:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:861:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/debug.c:717:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/ath9k.h:446:#define ath_for_each_chanctx(_sc, _ctx)                               \
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Fixes c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")

I'm dropping the Fixes tag since the existing code actually works and hence there is no need to backport to LTS kernels.

Sounds reasonable. Alternatively, a line next to it saying

[Do not backport]

would work, I guess.

Greg, I've seen this situation already a few times. A Fixes tag getting removed to avoid triggering a stable backport. But I think keeping the Fixes tag could be useful. Should we have a standard way to document that a patch fixes an old commit without meaning that it should be backported? Maybe something like this?:

Quoted 4 lines
	[Do not backport to stable]
	Fixes: ...

In any case, feel free to remove it.

Looks like we have this:
There furthermore is a variant of the stable tag you can use to make the stable team’s backporting tools (e.g AUTOSEL or scripts that look for commits containing a ‘Fixes:’ tag) ignore a change:
Cc: <[email protected]> # reason goes here, and must be present

https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1

Do you want to re-spin with that?

/jeff

#5 lore raw

Hi Jeff,

Quoted 47 lines · Jeff Johnson
Quoted 35 lines · Alejandro Colomar

Hi Jeff,

Quoted 15 lines · Jeff Johnson
Quoted 14 lines · Toke Høiland-Jørgensen
Quoted 12 lines · Alejandro Colomar

This only worked by chance, because all callers of this macro used the same identifiers that were expected by the macro.

	$ grep -rn ath_for_each_chanctx
	drivers/net/wireless/ath/ath9k/main.c:1576:	ath_for_each_chanctx(sc, ctx)
	drivers/net/wireless/ath/ath9k/main.c:2554:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:165:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:291:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:861:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/debug.c:717:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/ath9k.h:446:#define ath_for_each_chanctx(_sc, _ctx)                               \
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Fixes c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")

I'm dropping the Fixes tag since the existing code actually works and hence there is no need to backport to LTS kernels.

Sounds reasonable. Alternatively, a line next to it saying

[Do not backport]

would work, I guess.

Greg, I've seen this situation already a few times. A Fixes tag getting removed to avoid triggering a stable backport. But I think keeping the Fixes tag could be useful. Should we have a standard way to document that a patch fixes an old commit without meaning that it should be backported? Maybe something like this?:

Quoted 4 lines
	[Do not backport to stable]
	Fixes: ...

In any case, feel free to remove it.

Looks like we have this:
There furthermore is a variant of the stable tag you can use to make the stable team’s backporting tools (e.g AUTOSEL or scripts that look for commits containing a ‘Fixes:’ tag) ignore a change:
Cc: <[email protected]> # reason goes here, and must be present

Quoted 3 lines

https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1

Do you want to re-spin with that?

Would you mind amending to include the following tag?:

Cc <[email protected]> # the code worked by chance

I don't know where I keep the patch, so I'd have to apply it from the email to resend. Could you amend it yourself?

Have a lovely night!
Alex

Quoted 2 lines

/jeff

Signature · 1 line
<https://www.alejandro-colomar.es>
#6 lore raw
Quoted 52 lines · Alejandro Colomar

Hi Jeff,

Quoted 49 lines · Jeff Johnson
Quoted 35 lines · Alejandro Colomar

Hi Jeff,

Quoted 15 lines · Jeff Johnson
Quoted 14 lines · Toke Høiland-Jørgensen
Quoted 12 lines · Alejandro Colomar

This only worked by chance, because all callers of this macro used the same identifiers that were expected by the macro.

	$ grep -rn ath_for_each_chanctx
	drivers/net/wireless/ath/ath9k/main.c:1576:	ath_for_each_chanctx(sc, ctx)
	drivers/net/wireless/ath/ath9k/main.c:2554:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:165:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:291:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:861:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/debug.c:717:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/ath9k.h:446:#define ath_for_each_chanctx(_sc, _ctx)                               \
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Fixes c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")

I'm dropping the Fixes tag since the existing code actually works and hence there is no need to backport to LTS kernels.

Sounds reasonable. Alternatively, a line next to it saying

[Do not backport]

would work, I guess.

Greg, I've seen this situation already a few times. A Fixes tag getting removed to avoid triggering a stable backport. But I think keeping the Fixes tag could be useful. Should we have a standard way to document that a patch fixes an old commit without meaning that it should be backported? Maybe something like this?:

Quoted 4 lines
	[Do not backport to stable]
	Fixes: ...

In any case, feel free to remove it.

Looks like we have this:
There furthermore is a variant of the stable tag you can use to make the stable team’s backporting tools (e.g AUTOSEL or scripts that look for commits containing a ‘Fixes:’ tag) ignore a change:
Cc: <[email protected]> # reason goes here, and must be present

https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1

Quoted 8 lines
Quoted 1 line

Do you want to re-spin with that?

Would you mind amending to include the following tag?:

Cc <[email protected]> # the code worked by chance

I don't know where I keep the patch, so I'd have to apply it from the email to resend. Could you amend it yourself?

sure, I'll amend the patch in my pending branch

/jeff

#7 lore raw
Quoted 55 lines · Jeff Johnson
Quoted 54 lines · Alejandro Colomar

Hi Jeff,

Quoted 50 lines · Jeff Johnson
Quoted 35 lines · Alejandro Colomar

Hi Jeff,

Quoted 15 lines · Jeff Johnson
Quoted 14 lines · Toke Høiland-Jørgensen
Quoted 12 lines · Alejandro Colomar

This only worked by chance, because all callers of this macro used the same identifiers that were expected by the macro.

	$ grep -rn ath_for_each_chanctx
	drivers/net/wireless/ath/ath9k/main.c:1576:	ath_for_each_chanctx(sc, ctx)
	drivers/net/wireless/ath/ath9k/main.c:2554:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:165:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:291:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:861:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/debug.c:717:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/ath9k.h:446:#define ath_for_each_chanctx(_sc, _ctx)                               \
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Fixes c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")

I'm dropping the Fixes tag since the existing code actually works and hence there is no need to backport to LTS kernels.

Sounds reasonable. Alternatively, a line next to it saying

[Do not backport]

would work, I guess.

Greg, I've seen this situation already a few times. A Fixes tag getting removed to avoid triggering a stable backport. But I think keeping the Fixes tag could be useful. Should we have a standard way to document that a patch fixes an old commit without meaning that it should be backported? Maybe something like this?:

Quoted 4 lines
	[Do not backport to stable]
	Fixes: ...

In any case, feel free to remove it.

Looks like we have this:
There furthermore is a variant of the stable tag you can use to make the stable team’s backporting tools (e.g AUTOSEL or scripts that look for commits containing a ‘Fixes:’ tag) ignore a change:
Cc: <[email protected]> # reason goes here, and must be present

https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1

Do you want to re-spin with that?

Quoted 8 lines
Quoted 6 lines

Would you mind amending to include the following tag?:

Cc <[email protected]> # the code worked by chance

I don't know where I keep the patch, so I'd have to apply it from the email to resend. Could you amend it yourself?

sure, I'll amend the patch in my pending branch

I've also updated the Fixes tag to meet the expected format...

Fixes c4dc0d040e35 ("ath9k: Fetch appropriate operating channel context")
Quoted 2 lines

/jeff

#8 lore raw

Hi Jeff, Greg,

Quoted 4 lines · Jeff Johnson
Quoted 4 lines
Quoted 2 lines

I don't know where I keep the patch, so I'd have to apply it from the email to resend. Could you amend it yourself?

sure, I'll amend the patch in my pending branch

Thanks!

Quoted 2 lines

I've also updated the Fixes tag to meet the expected format...

Fixes c4dc0d040e35 ("ath9k: Fetch appropriate operating channel context")

Greg, I CCed you in the man-pages thread where I discussed adding the commit date to the Fixes tags. I was interested in your opinion, and also think this could be useful in the kernel.

<https://lore.kernel.org/linux-man/3a656e90329f26d743d0904f56ae847951c852c7.1770150003.git.alx@kernel.org/>

Do you have any opinion about this? Should I send a mail to some kernel mailing list to propose its use in the kernel?

The format I used is documented in the Linux man-pages here:
<https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING.d/patches/trailer#n16>

Fixes
Add 'Fixes:' tags as necessary. 'Fixes:' trailer fields should have the following format.

Fixes 12-char-hash ([author-date,] commit-date; "subject")

where the author date is optional, and only included if it's somehow important. The commit date is often more important, as it's sorted, and thus can be used to find (with a binary search) a commit whose hash and subject may have collisions. For example:

Fixes bb509e6fcbae (2020-10-16; "kernel_lockdown.7: New page documenting the Kernel Lockdown feature")

See <CONTRIBUTING.d/git> for how to configure the alias.ref and alias.ref2 git aliases. The commit references can be produced with them.

$ git ref bb509e6fc
bb509e6fcbae (2020-10-16; "kernel_lockdown.7: New page documenting the Kernel Lockdown feature")

and here:
<https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING.d/git#n46>

    alias.ref, alias.ref2
	To produce git commit references, the following git aliases are
	useful.

		$ git config --global alias.ref \
			"show -s --format=tformat:'%C(auto)%h (%cs%x3B \"%s\")%C(reset)'"
		$ git config --global alias.ref2 \
			"show -s --format=tformat:'%C(auto)%h (%as, %cs%x3B \"%s\")%C(reset)'"

    core.abbrev
	Use 12 characters in abbreviated hashes.

		$ git config --global core.abbrev 12

The Fixes tag I used in this particular patch was

Fixes c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")

Have a lovely night!
Alex

Quoted 4 lines
Quoted 3 lines

/jeff

Signature · 1 line
<https://www.alejandro-colomar.es>
#9 lore raw
Quoted 63 lines · Alejandro Colomar

Hi Jeff, Greg,

Quoted 4 lines · Jeff Johnson
Quoted 4 lines
Quoted 2 lines

I don't know where I keep the patch, so I'd have to apply it from the email to resend. Could you amend it yourself?

sure, I'll amend the patch in my pending branch

Thanks!

Quoted 2 lines

I've also updated the Fixes tag to meet the expected format...

Fixes c4dc0d040e35 ("ath9k: Fetch appropriate operating channel context")

Greg, I CCed you in the man-pages thread where I discussed adding the commit date to the Fixes tags. I was interested in your opinion, and also think this could be useful in the kernel.

<https://lore.kernel.org/linux-man/3a656e90329f26d743d0904f56ae847951c852c7.1770150003.git.alx@kernel.org/>

Do you have any opinion about this? Should I send a mail to some kernel mailing list to propose its use in the kernel?

The format I used is documented in the Linux man-pages here:
<https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING.d/patches/trailer#n16>

Fixes
Add 'Fixes:' tags as necessary. 'Fixes:' trailer fields should have the following format.

Fixes 12-char-hash ([author-date,] commit-date; "subject")

where the author date is optional, and only included if it's somehow important. The commit date is often more important, as it's sorted, and thus can be used to find (with a binary search) a commit whose hash and subject may have collisions. For example:

Fixes bb509e6fcbae (2020-10-16; "kernel_lockdown.7: New page documenting the Kernel Lockdown feature")

See <CONTRIBUTING.d/git> for how to configure the alias.ref and alias.ref2 git aliases. The commit references can be produced with them.

$ git ref bb509e6fc
bb509e6fcbae (2020-10-16; "kernel_lockdown.7: New page documenting the Kernel Lockdown feature")

and here:
<https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING.d/git#n46>

    alias.ref, alias.ref2
	To produce git commit references, the following git aliases are
	useful.

		$ git config --global alias.ref \
			"show -s --format=tformat:'%C(auto)%h (%cs%x3B \"%s\")%C(reset)'"
		$ git config --global alias.ref2 \
			"show -s --format=tformat:'%C(auto)%h (%as, %cs%x3B \"%s\")%C(reset)'"

    core.abbrev
	Use 12 characters in abbreviated hashes.

		$ git config --global core.abbrev 12
Quoted 3 lines

The Fixes tag I used in this particular patch was

Fixes c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")

This format doesn't conform to the format described in:
https://www.kernel.org/doc/html/latest/process/submitting-patches.html

And it fails scripts/checkpatch.pl

Review the comments from when a similar change was proposed (including a response from Greg):
https://lore.kernel.org/all/[email protected]/

And referencing a project which you authored as an example of how to do things doesn't give much credibility. Please follow Linux kernel style.

/jeff

#10 lore raw

Hi Jeff,

Quoted 8 lines · Jeff Johnson

This format doesn't conform to the format described in:
https://www.kernel.org/doc/html/latest/process/submitting-patches.html

And it fails scripts/checkpatch.pl

Review the comments from when a similar change was proposed (including a response from Greg):
https://lore.kernel.org/all/[email protected]/

Thanks! I'll reply there.

Quoted 3 lines

And referencing a project which you authored as an example of how to do things doesn't give much credibility. Please follow Linux kernel style.

Sure; for this patch please use the amended one. I was pointing to that for discussing changing the format used in the kernel, globally, not to use it in this patch.

Have a lovely night!
Alex

Quoted 2 lines

/jeff

Signature · 1 line
<https://www.alejandro-colomar.es>
#11 lore raw
In reply to Alejandro Colomar
Quoted 29 lines · Alejandro Colomar

Hi Jeff,

Quoted 15 lines · Jeff Johnson
Quoted 14 lines · Toke Høiland-Jørgensen
Quoted 12 lines · Alejandro Colomar

This only worked by chance, because all callers of this macro used the same identifiers that were expected by the macro.

	$ grep -rn ath_for_each_chanctx
	drivers/net/wireless/ath/ath9k/main.c:1576:	ath_for_each_chanctx(sc, ctx)
	drivers/net/wireless/ath/ath9k/main.c:2554:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:165:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:291:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:861:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/debug.c:717:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/ath9k.h:446:#define ath_for_each_chanctx(_sc, _ctx)                               \
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Fixes c4dc0d040e35 (2014-06-19; "ath9k: Fetch appropriate operating channel context")

I'm dropping the Fixes tag since the existing code actually works and hence there is no need to backport to LTS kernels.

Sounds reasonable. Alternatively, a line next to it saying

[Do not backport]

would work, I guess.

Quoted 8 lines

Greg, I've seen this situation already a few times. A Fixes tag getting removed to avoid triggering a stable backport. But I think keeping the Fixes tag could be useful. Should we have a standard way to document that a patch fixes an old commit without meaning that it should be backported? Maybe something like this?:

	[Do not backport to stable]
	Fixes: ...

As per the in-kernel documentation file
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html

There furthermore is a variant of the stable tag you can use to make the stable team's backporting tools (e.g AUTOSEL or scripts that look for commits containing a 'Fixes:' tag) ignore a change::

Cc <[email protected]> # reason goes here, and must be present

So I think it is documented already :)

thanks,

greg k-h

#12 lore raw

Hi Greg,

Quoted 6 lines · Greg KH
Quoted 2 lines
	[Do not backport to stable]
	Fixes: ...

As per the in-kernel documentation file
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html

Quoted 7 lines

There furthermore is a variant of the stable tag you can use to make the stable team's backporting tools (e.g AUTOSEL or scripts that look for commits containing a 'Fixes:' tag) ignore a change::

Cc <[email protected]> # reason goes here, and must be present

So I think it is documented already :)

Thanks! I'll use that. :)

Cheers,
Alex

Quoted 4 lines

thanks,

greg k-h

Signature · 1 line
<https://www.alejandro-colomar.es>
Applied
#13 lore raw
In reply to Alejandro Colomar
Quoted 12 lines · Alejandro Colomar

This only worked by chance, because all callers of this macro used the same identifiers that were expected by the macro.

	$ grep -rn ath_for_each_chanctx
	drivers/net/wireless/ath/ath9k/main.c:1576:	ath_for_each_chanctx(sc, ctx)
	drivers/net/wireless/ath/ath9k/main.c:2554:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:165:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:291:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/channel.c:861:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/debug.c:717:	ath_for_each_chanctx(sc, ctx) {
	drivers/net/wireless/ath/ath9k/ath9k.h:446:#define ath_for_each_chanctx(_sc, _ctx)                               \
Quoted 1 line

[...]

Applied, thanks!

[1/1] wifi: ath9k: Fix typo

      commit: a8911fbeff8bee4fe3376c5044b64fbf3cceb78e

Best regards,

Signature · 1 line
Jeff Johnson <[email protected]>