linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] docs/conf.py: add function attribute '__fix_address' to conf.py
@ 2022-08-26  6:19 menglong8.dong
  2022-08-26  9:39 ` Bagas Sanjaya
  0 siblings, 1 reply; 4+ messages in thread
From: menglong8.dong @ 2022-08-26  6:19 UTC (permalink / raw)
  To: kuba, sfr; +Cc: corbet, linux-doc, linux-kernel, Menglong Dong

From: Menglong Dong <imagedong@tencent.com>

Stephen Rothwell report that the function attribute '__fix_address'
causes a warning when create html docs with the command:

  make htmldocs

Therefor, add this attribute to c_id_attributes in Documentation/conf.py
to clean this warning.

BTW, I'm not able to reproduce this warning (both ubuntu and centos are
tested). I will appreciate it if anyone can have a test for this
commit.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Menglong Dong <imagedong@tencent.com>
---
 Documentation/conf.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/conf.py b/Documentation/conf.py
index 934727e23e0e..255384d094bf 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -86,6 +86,7 @@ if major >= 3:
             "__used",
             "__weak",
             "noinline",
+            "__fix_address",
 
             # include/linux/memblock.h:
             "__init_memblock",
-- 
2.37.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] docs/conf.py: add function attribute '__fix_address' to conf.py
  2022-08-26  6:19 [PATCH net-next] docs/conf.py: add function attribute '__fix_address' to conf.py menglong8.dong
@ 2022-08-26  9:39 ` Bagas Sanjaya
  2022-08-26 12:47   ` Bagas Sanjaya
  0 siblings, 1 reply; 4+ messages in thread
From: Bagas Sanjaya @ 2022-08-26  9:39 UTC (permalink / raw)
  To: menglong8.dong; +Cc: kuba, sfr, corbet, linux-doc, linux-kernel, Menglong Dong

[-- Attachment #1: Type: text/plain, Size: 1693 bytes --]

On Fri, Aug 26, 2022 at 02:19:14PM +0800, menglong8.dong@gmail.com wrote:
> From: Menglong Dong <imagedong@tencent.com>
> 
> Stephen Rothwell report that the function attribute '__fix_address'
> causes a warning when create html docs with the command:
> 
>   make htmldocs
> 
> Therefor, add this attribute to c_id_attributes in Documentation/conf.py
> to clean this warning.
> 
> BTW, I'm not able to reproduce this warning (both ubuntu and centos are
> tested). I will appreciate it if anyone can have a test for this
> commit.
> 
Hi,

The patch description can be improved, like:
"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."

So next time when you spot documentation warnings like above, specify the
exact warning in the patch description. This will help reviewers what warning
the patch is fixing.

> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Menglong Dong <imagedong@tencent.com>

Also, don't forget to add Link tag, like:
Link: https://lore.kernel.org/linux-next/20220825154105.534d78ab@canb.auug.org.au/

Otherwise, the warning disappeared on my htmldocs build, thanks.

Tested-by: Bagas Sanjaya <bagasdotme@gmail.com>
Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] docs/conf.py: add function attribute '__fix_address' to conf.py
  2022-08-26  9:39 ` Bagas Sanjaya
@ 2022-08-26 12:47   ` Bagas Sanjaya
  2022-08-26 15:46     ` Menglong Dong
  0 siblings, 1 reply; 4+ messages in thread
From: Bagas Sanjaya @ 2022-08-26 12:47 UTC (permalink / raw)
  To: menglong8.dong; +Cc: kuba, sfr, corbet, linux-doc, linux-kernel, Menglong Dong

On 8/26/22 16:39, Bagas Sanjaya wrote:
> On Fri, Aug 26, 2022 at 02:19:14PM +0800, menglong8.dong@gmail.com wrote:
>> From: Menglong Dong <imagedong@tencent.com>
>>
>> Stephen Rothwell report that the function attribute '__fix_address'
>> causes a warning when create html docs with the command:
>>
>>   make htmldocs
>>
>> Therefor, add this attribute to c_id_attributes in Documentation/conf.py
>> to clean this warning.
>>
>> BTW, I'm not able to reproduce this warning (both ubuntu and centos are
>> tested). I will appreciate it if anyone can have a test for this
>> commit.
>>
> Hi,
> 
> The patch description can be improved, like:
> "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."
> 
> So next time when you spot documentation warnings like above, specify the
> exact warning in the patch description. This will help reviewers what warning
> the patch is fixing.
> 
>> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
>> Signed-off-by: Menglong Dong <imagedong@tencent.com>
> 
> Also, don't forget to add Link tag, like:
> Link: https://lore.kernel.org/linux-next/20220825154105.534d78ab@canb.auug.org.au/
> 
> Otherwise, the warning disappeared on my htmldocs build, thanks.
> 
> Tested-by: Bagas Sanjaya <bagasdotme@gmail.com>
> Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>
> 

Oops, ignore my Reviewed-by above (not LGTM until my comments above
are addressed).

-- 
An old man doll... just what I always wanted! - Clara

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH net-next] docs/conf.py: add function attribute '__fix_address' to conf.py
  2022-08-26 12:47   ` Bagas Sanjaya
@ 2022-08-26 15:46     ` Menglong Dong
  0 siblings, 0 replies; 4+ messages in thread
From: Menglong Dong @ 2022-08-26 15:46 UTC (permalink / raw)
  To: Bagas Sanjaya; +Cc: kuba, sfr, corbet, linux-doc, linux-kernel, Menglong Dong

On Fri, Aug 26, 2022 at 8:47 PM Bagas Sanjaya <bagasdotme@gmail.com> wrote:
>
> On 8/26/22 16:39, Bagas Sanjaya wrote:
> > On Fri, Aug 26, 2022 at 02:19:14PM +0800, menglong8.dong@gmail.com wrote:
> >> From: Menglong Dong <imagedong@tencent.com>
> >>
> >> Stephen Rothwell report that the function attribute '__fix_address'
> >> causes a warning when create html docs with the command:
> >>
> >>   make htmldocs
> >>
> >> Therefor, add this attribute to c_id_attributes in Documentation/conf.py
> >> to clean this warning.
> >>
> >> BTW, I'm not able to reproduce this warning (both ubuntu and centos are
> >> tested). I will appreciate it if anyone can have a test for this
> >> commit.
> >>
> > Hi,
> >
> > The patch description can be improved, like:
> > "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."
> >
> > So next time when you spot documentation warnings like above, specify the
> > exact warning in the patch description. This will help reviewers what warning
> > the patch is fixing.
> >
> >> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> >> Signed-off-by: Menglong Dong <imagedong@tencent.com>
> >
> > Also, don't forget to add Link tag, like:
> > Link: https://lore.kernel.org/linux-next/20220825154105.534d78ab@canb.auug.org.au/
> >
> > Otherwise, the warning disappeared on my htmldocs build, thanks.
> >
> > Tested-by: Bagas Sanjaya <bagasdotme@gmail.com>
> > Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>
> >
>
> Oops, ignore my Reviewed-by above (not LGTM until my comments above
> are addressed).

Thanks for your advice and the testing. I'll send a V2 with your
comments addressed, and with your Reviewed-by and Tested-by
tags.

Menglong Dong

>
> --
> An old man doll... just what I always wanted! - Clara

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-26 15:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-26  6:19 [PATCH net-next] docs/conf.py: add function attribute '__fix_address' to conf.py menglong8.dong
2022-08-26  9:39 ` Bagas Sanjaya
2022-08-26 12:47   ` Bagas Sanjaya
2022-08-26 15:46     ` Menglong Dong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).