Subject: Re: [PATCH net-next v2 4/5] net: phy: Makefile: Add makefile support for ptp in Microchip phys

From: Jakub Kicinski <[email-masked]>
Date: Mon, 11 Nov 2024 10:07:39 -0800

On Mon, 11 Nov 2024 18:28:32 +0530 Divya Koppera wrote:
> Add makefile support for ptp library.
> 
> Signed-off-by: Divya Koppera <[email-masked]>
> ---
> v1 -> v2
> - No changes
> ---
>  drivers/net/phy/Makefile | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile
> index 90f886844381..58a4a2953930 100644
> --- a/drivers/net/phy/Makefile
> +++ b/drivers/net/phy/Makefile
> @@ -80,6 +80,7 @@ obj-$(CONFIG_MESON_GXL_PHY)	+= meson-gxl.o
>  obj-$(CONFIG_MICREL_KS8995MA)	+= spi_ks8995.o
>  obj-$(CONFIG_MICREL_PHY)	+= micrel.o
>  obj-$(CONFIG_MICROCHIP_PHY)	+= microchip.o
> +obj-$(CONFIG_MICROCHIP_PHYPTP) += microchip_ptp.o
>  obj-$(CONFIG_MICROCHIP_T1_PHY)	+= microchip_t1.o
>  obj-$(CONFIG_MICROCHIP_T1S_PHY) += microchip_t1s.o
>  obj-$(CONFIG_MICROSEMI_PHY)	+= mscc/

sparse complains:

drivers/net/phy/microchip_ptp.c:615:30: warning: cast from restricted __be16