[PATCH net-next v4 1/2] net: phy: move DECLARE_PHY_INTERFACE_MASK_ZERO to core

Jakub Kicinski kuba at kernel.org
Mon Nov 16 18:30:12 PST 2026


On Wed, 11 Nov 2026 00:05:53 +0800 Coia Prant wrote:
> --- a/include/linux/phy.h
> +++ b/include/linux/phy.h
> @@ -159,6 +159,9 @@ typedef enum {
>  #define DECLARE_PHY_INTERFACE_MASK(name) \
>  	DECLARE_BITMAP(name, PHY_INTERFACE_MODE_MAX)
>  
> +#define DECLARE_PHY_INTERFACE_MASK_ZERO(name) \
> +	DECLARE_PHY_INTERFACE_MASK(name) = { 0, }

I wonder who suggested this, hiding the init inside the macro seems 
a bit subjective. I see no such defines today. We'll need an Andrew 
ack for sure.

Please try to add lore links to previous versions of the patchset
in the cover letter.



More information about the Linux-rockchip mailing list