All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-wired-lan] [PATCH] ice: fix build issue if CONFIG_1588_PTP_CLOCk=m
@ 2021-07-29 15:56 G, GurucharanX
  2021-07-29 22:13 ` Keller, Jacob E
  0 siblings, 1 reply; 4+ messages in thread
From: G, GurucharanX @ 2021-07-29 15:56 UTC (permalink / raw)
  To: intel-wired-lan


> -----Original Message-----
> From: Jacob Keller <jacob.e.keller@intel.com>
> To: Intel Wired LAN <intel-wired-lan@lists.osuosl.org>
> Subject: [Intel-wired-lan] [PATCH] ice: fix build issue if
> 	CONFIG_1588_PTP_CLOCk=m
> Message-ID: <20210709210726.224848-1-jacob.e.keller@intel.com>
> 
> If the CONFIG_1588_PTP_CLOCK symbol is set to m, then the driver will
> not compile ice_ptp.o and ice_ptp_hw.o because it adds them to ice-m
> instead of ice-y, and nothing includes ice-m into the final kernel
> objects.
> 
> Fix this by using the ':m=y' so that we always compile the files and
> link them to ice.o when CONFIG_1588_PTP_CLOCK is a module or a builtin.
> 
> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
> ---
> This fixes the compilation errors that have appeared from lkp on Tony's
> dev-queue. The lkp complains about other patches, but the root cause is this
> issue. If we apply this, it should fix all of the lkp issues I've seen so
> far.
> 
>  drivers/net/ethernet/intel/ice/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Tested-by: Gurucharan  G <Gurucharanx.g@intel.com> (A Contingent Worker at Intel)

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

* [Intel-wired-lan] [PATCH] ice: fix build issue if CONFIG_1588_PTP_CLOCk=m
  2021-07-29 15:56 [Intel-wired-lan] [PATCH] ice: fix build issue if CONFIG_1588_PTP_CLOCk=m G, GurucharanX
@ 2021-07-29 22:13 ` Keller, Jacob E
  0 siblings, 0 replies; 4+ messages in thread
From: Keller, Jacob E @ 2021-07-29 22:13 UTC (permalink / raw)
  To: intel-wired-lan



> -----Original Message-----
> From: G, GurucharanX <gurucharanx.g@intel.com>
> Sent: Thursday, July 29, 2021 8:57 AM
> To: intel-wired-lan at osuosl.org; intel-wired-lan at lists.osuosl.org; Keller, Jacob E
> <jacob.e.keller@intel.com>
> Subject: RE: [Intel-wired-lan] [PATCH] ice: fix build issue if
> CONFIG_1588_PTP_CLOCk=m
> 
> 
> > -----Original Message-----
> > From: Jacob Keller <jacob.e.keller@intel.com>
> > To: Intel Wired LAN <intel-wired-lan@lists.osuosl.org>
> > Subject: [Intel-wired-lan] [PATCH] ice: fix build issue if
> > 	CONFIG_1588_PTP_CLOCk=m
> > Message-ID: <20210709210726.224848-1-jacob.e.keller@intel.com>
> >
> > If the CONFIG_1588_PTP_CLOCK symbol is set to m, then the driver will
> > not compile ice_ptp.o and ice_ptp_hw.o because it adds them to ice-m
> > instead of ice-y, and nothing includes ice-m into the final kernel
> > objects.
> >
> > Fix this by using the ':m=y' so that we always compile the files and
> > link them to ice.o when CONFIG_1588_PTP_CLOCK is a module or a builtin.
> >
> > Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
> > ---
> > This fixes the compilation errors that have appeared from lkp on Tony's
> > dev-queue. The lkp complains about other patches, but the root cause is this
> > issue. If we apply this, it should fix all of the lkp issues I've seen so
> > far.
> >
> >  drivers/net/ethernet/intel/ice/Makefile | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> 
> Tested-by: Gurucharan  G <Gurucharanx.g@intel.com> (A Contingent Worker at
> Intel)

FWIW, this should probably be superseded with a v2 of Arnd's fix to modify the Kbuild instead.

Thanks,
Jake

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

* [Intel-wired-lan] [PATCH] ice: fix build issue if CONFIG_1588_PTP_CLOCk=m
       [not found] ` <BN6PR11MB392347CF9B7ACBB94ABDA9168CEC9@BN6PR11MB3923.namprd11.prod.outlook.com>
@ 2021-07-30  9:34   ` G, GurucharanX
  0 siblings, 0 replies; 4+ messages in thread
From: G, GurucharanX @ 2021-07-30  9:34 UTC (permalink / raw)
  To: intel-wired-lan

> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
> Jacob Keller
> Sent: Saturday, July 10, 2021 2:37 AM
> To: Intel Wired LAN <intel-wired-lan@lists.osuosl.org>
> Subject: [Intel-wired-lan] [PATCH] ice: fix build issue if
> CONFIG_1588_PTP_CLOCk=m
> 
> If the CONFIG_1588_PTP_CLOCK symbol is set to m, then the driver will not
> compile ice_ptp.o and ice_ptp_hw.o because it adds them to ice-m instead
> of ice-y, and nothing includes ice-m into the final kernel objects.
> 
> Fix this by using the ':m=y' so that we always compile the files and link them
> to ice.o when CONFIG_1588_PTP_CLOCK is a module or a builtin.
> 
> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
> ---
> This fixes the compilation errors that have appeared from lkp on Tony's dev-
> queue. The lkp complains about other patches, but the root cause is this
> issue. If we apply this, it should fix all of the lkp issues I've seen so far.
> 
>  drivers/net/ethernet/intel/ice/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Tested-by: Gurucharan  G <Gurucharanx.g@intel.com> (A Contingent Worker at Intel)

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

* [Intel-wired-lan] [PATCH] ice: fix build issue if CONFIG_1588_PTP_CLOCk=m
@ 2021-07-09 21:07 Jacob Keller
       [not found] ` <BN6PR11MB392347CF9B7ACBB94ABDA9168CEC9@BN6PR11MB3923.namprd11.prod.outlook.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Jacob Keller @ 2021-07-09 21:07 UTC (permalink / raw)
  To: intel-wired-lan

If the CONFIG_1588_PTP_CLOCK symbol is set to m, then the driver will
not compile ice_ptp.o and ice_ptp_hw.o because it adds them to ice-m
instead of ice-y, and nothing includes ice-m into the final kernel
objects.

Fix this by using the ':m=y' so that we always compile the files and
link them to ice.o when CONFIG_1588_PTP_CLOCK is a module or a builtin.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
---
This fixes the compilation errors that have appeared from lkp on Tony's
dev-queue. The lkp complains about other patches, but the root cause is this
issue. If we apply this, it should fix all of the lkp issues I've seen so
far.

 drivers/net/ethernet/intel/ice/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/ice/Makefile b/drivers/net/ethernet/intel/ice/Makefile
index 1866be50095d..928572dfb3c2 100644
--- a/drivers/net/ethernet/intel/ice/Makefile
+++ b/drivers/net/ethernet/intel/ice/Makefile
@@ -30,7 +30,7 @@ ice-y := ice_main.o	\
 	 ice_repr.o
 ice-$(CONFIG_PCI_IOV) += ice_virtchnl_allowlist.o
 ice-$(CONFIG_PCI_IOV) += ice_virtchnl_pf.o ice_sriov.o ice_virtchnl_fdir.o
-ice-$(CONFIG_PTP_1588_CLOCK) += ice_ptp.o ice_ptp_hw.o
+ice-$(CONFIG_PTP_1588_CLOCK:m=y) += ice_ptp.o ice_ptp_hw.o
 ice-$(CONFIG_DCB) += ice_dcb.o ice_dcb_nl.o ice_dcb_lib.o
 ice-$(CONFIG_RFS_ACCEL) += ice_arfs.o
 ice-$(CONFIG_XDP_SOCKETS) += ice_xsk.o
-- 
2.31.1.331.gb0c09ab8796f


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

end of thread, other threads:[~2021-07-30  9:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-29 15:56 [Intel-wired-lan] [PATCH] ice: fix build issue if CONFIG_1588_PTP_CLOCk=m G, GurucharanX
2021-07-29 22:13 ` Keller, Jacob E
  -- strict thread matches above, loose matches on Subject: below --
2021-07-09 21:07 Jacob Keller
     [not found] ` <BN6PR11MB392347CF9B7ACBB94ABDA9168CEC9@BN6PR11MB3923.namprd11.prod.outlook.com>
2021-07-30  9:34   ` G, GurucharanX

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.