RE: [PATCH net-next v3 03/10] net: fec: add missing header files

From: Wei Fang
Date: Tue Jun 17 2025 - 21:31:57 EST


> On 17.06.2025 16:55:19, Alexander Lobakin wrote:
> > From: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
> > Date: Tue, 17 Jun 2025 15:24:53 +0200
> >
> > > The fec.h isn't self contained. Add missing header files, so that it can be
> > > parsed by language servers without errors.
> > >
> > > Reviewed-by: Wei Fang <wei.fang@xxxxxxx>
> > > Reviewed-by: Frank Li <Frank.Li@xxxxxxx>
> > > Reviewed-by: Andrew Lunn <andrew@xxxxxxx>
> > > Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
> > > ---
> > > drivers/net/ethernet/freescale/fec.h | 2 ++
> > > 1 file changed, 2 insertions(+)
> > >
> > > diff --git a/drivers/net/ethernet/freescale/fec.h
> b/drivers/net/ethernet/freescale/fec.h
> > > index ce1e4fe4d492..4098d439a6ff 100644
> > > --- a/drivers/net/ethernet/freescale/fec.h
> > > +++ b/drivers/net/ethernet/freescale/fec.h
> > > @@ -15,7 +15,9 @@
> > >
> /*********************************************************************
> *******/
> > >
> > > #include <linux/clocksource.h>
> > > +#include <linux/ethtool.h>
> > > #include <linux/net_tstamp.h>
> > > +#include <linux/phy.h>
> > > #include <linux/pm_qos.h>
> > > #include <linux/bpf.h>
> > > #include <linux/ptp_clock_kernel.h>
> >
> > Sort alphabetically while at it? You'd only need to move bpf.h AFAICS.
>
> After sorting, the incremental diff will look like this:
>
> diff --git a/drivers/net/ethernet/freescale/fec.h
> b/drivers/net/ethernet/freescale/fec.h
> index 15334a5cce0f..1fe5e92afeb3 100644
> --- a/drivers/net/ethernet/freescale/fec.h
> +++ b/drivers/net/ethernet/freescale/fec.h
> @@ -14,16 +14,16 @@
> #define FEC_H
>
> /*********************************************************************
> *******/
>
> +#include <dt-bindings/firmware/imx/rsrc.h>
> +#include <linux/bpf.h>
> #include <linux/clocksource.h>
> #include <linux/ethtool.h>
> +#include <linux/firmware/imx/sci.h>
> #include <linux/net_tstamp.h>
> #include <linux/phy.h>
> #include <linux/pm_qos.h>
> -#include <linux/bpf.h>
> #include <linux/ptp_clock_kernel.h>
> #include <linux/timecounter.h>
> -#include <dt-bindings/firmware/imx/rsrc.h>
> -#include <linux/firmware/imx/sci.h>
> #include <net/xdp.h>
>
> #if defined(CONFIG_M523x) || defined(CONFIG_M527x) ||
> defined(CONFIG_M528x) || \
>
> Is that okay? If so, I'll squash it.
>

If you want alphabetical sorting, I think it's better to use another separate
patch, otherwise you will need to re-edit the title and commit message.