All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel-doc: support DECLARE_PHY_INTERFACE_MASK()
@ 2021-10-30  2:08 Randy Dunlap
  2022-04-13 11:09 ` Russell King (Oracle)
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2021-10-30  2:08 UTC (permalink / raw)
  To: linux-kernel; +Cc: Randy Dunlap, Stephen Rothwell, Russell King, linux-doc

Support the DECLARE_PHY_INTERFACE_MASK() macro that is used to declare
a bitmap by converting the macro to DECLARE_BITMAP(), as has been done
for the __ETHTOOL_DECLARE_LINK_MODE_MASK() macro.

This fixes a 'make htmldocs' warning:

include/linux/phylink.h:82: warning: Function parameter or member 'DECLARE_PHY_INTERFACE_MASK(supported_interfaces' not described in 'phylink_config'

that was introduced by commit
  38c310eb46f5 ("net: phylink: add MAC phy_interface_t bitmap")

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Russell King (Oracle) <linux@armlinux.org.uk>
Cc: linux-doc@vger.kernel.org
To: Jonathan Corbet <corbet@lwn.net>
---
 scripts/kernel-doc |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20211029.orig/scripts/kernel-doc
+++ linux-next-20211029/scripts/kernel-doc
@@ -1256,6 +1256,7 @@ sub dump_struct($$) {
 	my $args = qr{([^,)]+)};
 	# replace DECLARE_BITMAP
 	$members =~ s/__ETHTOOL_DECLARE_LINK_MODE_MASK\s*\(([^\)]+)\)/DECLARE_BITMAP($1, __ETHTOOL_LINK_MODE_MASK_NBITS)/gos;
+	$members =~ s/DECLARE_PHY_INTERFACE_MASK\s*\(([^\)]+)\)/DECLARE_BITMAP($1, PHY_INTERFACE_MODE_MAX)/gos;
 	$members =~ s/DECLARE_BITMAP\s*\($args,\s*$args\)/unsigned long $1\[BITS_TO_LONGS($2)\]/gos;
 	# replace DECLARE_HASHTABLE
 	$members =~ s/DECLARE_HASHTABLE\s*\($args,\s*$args\)/unsigned long $1\[1 << (($2) - 1)\]/gos;

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

* Re: [PATCH] kernel-doc: support DECLARE_PHY_INTERFACE_MASK()
  2021-10-30  2:08 [PATCH] kernel-doc: support DECLARE_PHY_INTERFACE_MASK() Randy Dunlap
@ 2022-04-13 11:09 ` Russell King (Oracle)
  2022-04-13 15:19   ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Russell King (Oracle) @ 2022-04-13 11:09 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-kernel, Stephen Rothwell, linux-doc

On Fri, Oct 29, 2021 at 07:08:13PM -0700, Randy Dunlap wrote:
> Support the DECLARE_PHY_INTERFACE_MASK() macro that is used to declare
> a bitmap by converting the macro to DECLARE_BITMAP(), as has been done
> for the __ETHTOOL_DECLARE_LINK_MODE_MASK() macro.
> 
> This fixes a 'make htmldocs' warning:
> 
> include/linux/phylink.h:82: warning: Function parameter or member 'DECLARE_PHY_INTERFACE_MASK(supported_interfaces' not described in 'phylink_config'
> 
> that was introduced by commit
>   38c310eb46f5 ("net: phylink: add MAC phy_interface_t bitmap")
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Cc: Russell King (Oracle) <linux@armlinux.org.uk>

Thanks Randy, sorry I missed this patch.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

What is the intention for merging this patch? Will Jon merge it?
Your tags said To: Jon but you don't seem to have included him in
the email.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

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

* Re: [PATCH] kernel-doc: support DECLARE_PHY_INTERFACE_MASK()
  2022-04-13 11:09 ` Russell King (Oracle)
@ 2022-04-13 15:19   ` Randy Dunlap
  2022-04-14  1:29     ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2022-04-13 15:19 UTC (permalink / raw)
  To: Russell King (Oracle); +Cc: linux-kernel, Stephen Rothwell, linux-doc



On 4/13/22 04:09, Russell King (Oracle) wrote:
> On Fri, Oct 29, 2021 at 07:08:13PM -0700, Randy Dunlap wrote:
>> Support the DECLARE_PHY_INTERFACE_MASK() macro that is used to declare
>> a bitmap by converting the macro to DECLARE_BITMAP(), as has been done
>> for the __ETHTOOL_DECLARE_LINK_MODE_MASK() macro.
>>
>> This fixes a 'make htmldocs' warning:
>>
>> include/linux/phylink.h:82: warning: Function parameter or member 'DECLARE_PHY_INTERFACE_MASK(supported_interfaces' not described in 'phylink_config'
>>
>> that was introduced by commit
>>   38c310eb46f5 ("net: phylink: add MAC phy_interface_t bitmap")
>>
>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
>> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
>> Cc: Russell King (Oracle) <linux@armlinux.org.uk>
> 
> Thanks Randy, sorry I missed this patch.
> 
> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
> 
> What is the intention for merging this patch? Will Jon merge it?
> Your tags said To: Jon but you don't seem to have included him in
> the email.

Hm, I didn't notice that.
Guess I'll resend it with your R-b.

thanks.

-- 
~Randy

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

* Re: [PATCH] kernel-doc: support DECLARE_PHY_INTERFACE_MASK()
  2022-04-13 15:19   ` Randy Dunlap
@ 2022-04-14  1:29     ` Randy Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2022-04-14  1:29 UTC (permalink / raw)
  To: Russell King (Oracle); +Cc: linux-kernel, Stephen Rothwell, linux-doc



On 4/13/22 08:19, Randy Dunlap wrote:
> 
> 
> On 4/13/22 04:09, Russell King (Oracle) wrote:
>> On Fri, Oct 29, 2021 at 07:08:13PM -0700, Randy Dunlap wrote:
>>> Support the DECLARE_PHY_INTERFACE_MASK() macro that is used to declare
>>> a bitmap by converting the macro to DECLARE_BITMAP(), as has been done
>>> for the __ETHTOOL_DECLARE_LINK_MODE_MASK() macro.
>>>
>>> This fixes a 'make htmldocs' warning:
>>>
>>> include/linux/phylink.h:82: warning: Function parameter or member 'DECLARE_PHY_INTERFACE_MASK(supported_interfaces' not described in 'phylink_config'
>>>
>>> that was introduced by commit
>>>   38c310eb46f5 ("net: phylink: add MAC phy_interface_t bitmap")
>>>
>>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
>>> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
>>> Cc: Russell King (Oracle) <linux@armlinux.org.uk>
>>
>> Thanks Randy, sorry I missed this patch.
>>
>> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
>>
>> What is the intention for merging this patch? Will Jon merge it?
>> Your tags said To: Jon but you don't seem to have included him in
>> the email.
> 
> Hm, I didn't notice that.
> Guess I'll resend it with your R-b.

No need to resend it. It's already merged into mainline.

-- 
~Randy

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

end of thread, other threads:[~2022-04-14  1:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-30  2:08 [PATCH] kernel-doc: support DECLARE_PHY_INTERFACE_MASK() Randy Dunlap
2022-04-13 11:09 ` Russell King (Oracle)
2022-04-13 15:19   ` Randy Dunlap
2022-04-14  1:29     ` Randy Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.