Re: [PATCH net-next v4 1/2] net: phy: move DECLARE_PHY_INTERFACE_MASK_ZERO to core
From: Jakub Kicinski
Date: Mon Nov 16 2026 - 21:30:21 EST
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.