Skip to contentSkip to conversation

docs/conf.py: add function attribute '__fix_address' to conf.py

PATCH In review [email protected] 3 participants 8 messages Aug 26, 2022 – Aug 27, 2022 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 docs/conf.py: add function attribute '__fix_address' to conf.py

From: Menglong Dong <[email protected]>

Stephen Rothwell reported htmldocs warning when merging net-next:

Documentation/networking/kapi:26: net/core/skbuff.c:780: WARNING: Error in declarator or parameters Invalid C declaration: Expecting "(" in parameters. [error at 19]
void __fix_address kfree_skb_reason (struct sk_buff *skb, enum skb_drop_reason reason) -------------------^

Add __fix_address keyword to c_id_attributes array in conf.py to fix the warning.

---
v2:
- optimize the commit log, as Bagas Sanjaya suggested.

---
 Documentation/conf.py | 1 +
 1 file changed, 1 insertion(+)
Documentation/conf.py +1 -0
index 934727e23e0e..255384d094bf 100644
@@ -86,6 +86,7 @@ if major >= 3:
             "__used",
             "__weak",
             "noinline",
+            "__fix_address",
 
             # include/linux/memblock.h:
             "__init_memblock",
Signature · 1 line
2.37.2
#1 lore raw
Quoted 11 lines · On Sat, 27 Aug 2022 00:01:50 +0800 [email protected] wrote:

From: Menglong Dong <[email protected]>

Stephen Rothwell reported htmldocs warning when merging net-next:

Documentation/networking/kapi:26: net/core/skbuff.c:780: WARNING: Error in declarator or parameters Invalid C declaration: Expecting "(" in parameters. [error at 19]
void __fix_address kfree_skb_reason (struct sk_buff *skb, enum skb_drop_reason reason) -------------------^

Add __fix_address keyword to c_id_attributes array in conf.py to fix the warning.

You'll need to CC netdev@ for the patch to get into the net-next tree. Since this is a pure Documentation/ patch get_maintainer.pl did not produce netdev@ in the recommended addresses.

Please wait for a review/ack from Jon before reposting, we need his permission to apply this patch.

maintainer
#2 lore raw
Quoted 13 lines · Jakub Kicinski
Quoted 11 lines · On Sat, 27 Aug 2022 00:01:50 +0800 [email protected] wrote:

From: Menglong Dong <[email protected]>

Stephen Rothwell reported htmldocs warning when merging net-next:

Documentation/networking/kapi:26: net/core/skbuff.c:780: WARNING: Error in declarator or parameters Invalid C declaration: Expecting "(" in parameters. [error at 19]
void __fix_address kfree_skb_reason (struct sk_buff *skb, enum skb_drop_reason reason) -------------------^

Add __fix_address keyword to c_id_attributes array in conf.py to fix the warning.

Quoted 6 lines

You'll need to CC netdev@ for the patch to get into the net-next tree. Since this is a pure Documentation/ patch get_maintainer.pl did not produce netdev@ in the recommended addresses.

Please wait for a review/ack from Jon before reposting, we need his permission to apply this patch.

I could also just carry it through docs; I'm about to send a set of fixes Linusward in any case. I wanted to run a couple of tests to be sure, but I don't expect any problems with it...

Thanks,

jon

maintainer Acked-by
#3 lore raw
Quoted 19 lines · Jonathan Corbet
Quoted 17 lines · Jakub Kicinski
Quoted 11 lines · On Sat, 27 Aug 2022 00:01:50 +0800 [email protected] wrote:

From: Menglong Dong <[email protected]>

Stephen Rothwell reported htmldocs warning when merging net-next:

Documentation/networking/kapi:26: net/core/skbuff.c:780: WARNING: Error in declarator or parameters Invalid C declaration: Expecting "(" in parameters. [error at 19]
void __fix_address kfree_skb_reason (struct sk_buff *skb, enum skb_drop_reason reason) -------------------^

Add __fix_address keyword to c_id_attributes array in conf.py to fix the warning.

You'll need to CC netdev@ for the patch to get into the net-next tree. Since this is a pure Documentation/ patch get_maintainer.pl did not produce netdev@ in the recommended addresses.

Quoted 6 lines
Quoted 2 lines

Please wait for a review/ack from Jon before reposting, we need his permission to apply this patch.

I could also just carry it through docs; I'm about to send a set of fixes Linusward in any case. I wanted to run a couple of tests to be sure, but I don't expect any problems with it...

The patch is clearly correct, it can go in via whatever path seems most suitable. Let me know if you'd like me to push it; otherwise:

Thanks,

jon

#4 lore raw
Quoted 8 lines · On Fri, 26 Aug 2022 16:14:45 -0600 Jonathan Corbet wrote:
Quoted 7 lines · Jonathan Corbet
Quoted 6 lines

You'll need to CC netdev@ for the patch to get into the net-next tree. Since this is a pure Documentation/ patch get_maintainer.pl did not produce netdev@ in the recommended addresses.

Please wait for a review/ack from Jon before reposting, we need his permission to apply this patch.

Quoted 8 lines
Quoted 3 lines

I could also just carry it through docs; I'm about to send a set of fixes Linusward in any case. I wanted to run a couple of tests to be sure, but I don't expect any problems with it...

The patch is clearly correct, it can go in via whatever path seems most suitable. Let me know if you'd like me to push it; otherwise:

Oh, if it can make it to Linus via the doc tree before the 6.1 merge window that's even better!

maintainer
#5 lore raw
Quoted 13 lines · Jakub Kicinski
Quoted 12 lines · On Fri, 26 Aug 2022 16:14:45 -0600 Jonathan Corbet wrote:
Quoted 10 lines · Jonathan Corbet
Quoted 6 lines

You'll need to CC netdev@ for the patch to get into the net-next tree. Since this is a pure Documentation/ patch get_maintainer.pl did not produce netdev@ in the recommended addresses.

Please wait for a review/ack from Jon before reposting, we need his permission to apply this patch.

I could also just carry it through docs; I'm about to send a set of fixes Linusward in any case. I wanted to run a couple of tests to be sure, but I don't expect any problems with it...

Quoted 7 lines
Quoted 4 lines

The patch is clearly correct, it can go in via whatever path seems most suitable. Let me know if you'd like me to push it; otherwise:

Oh, if it can make it to Linus via the doc tree before the 6.1 merge window that's even better!

OK, I'll apply it and ship it, probably next week.

Thanks,

jon

#6 lore raw
Quoted 16 lines · Jonathan Corbet
Quoted 13 lines · Jakub Kicinski
Quoted 12 lines · On Fri, 26 Aug 2022 16:14:45 -0600 Jonathan Corbet wrote:
Quoted 10 lines · Jonathan Corbet
Quoted 6 lines

You'll need to CC netdev@ for the patch to get into the net-next tree. Since this is a pure Documentation/ patch get_maintainer.pl did not produce netdev@ in the recommended addresses.

Please wait for a review/ack from Jon before reposting, we need his permission to apply this patch.

I could also just carry it through docs; I'm about to send a set of fixes Linusward in any case. I wanted to run a couple of tests to be sure, but I don't expect any problems with it...

Quoted 8 lines
Quoted 7 lines
Quoted 4 lines

The patch is clearly correct, it can go in via whatever path seems most suitable. Let me know if you'd like me to push it; otherwise:

Oh, if it can make it to Linus via the doc tree before the 6.1 merge window that's even better!

Thanks to both of you! Seems I don't need to repost this patch with netdev@ CCed?

Menglong Dong

Quoted 5 lines

OK, I'll apply it and ship it, probably next week.

Thanks,

jon

maintainer
#7 lore raw
Quoted 2 lines · Menglong Dong

Thanks to both of you! Seems I don't need to repost this patch with netdev@ CCed?

No need, it's all taken care of.

Thanks,

jon