* [PATCH 1/1 v2 net-next] net: fec: fix the build as module
@ 2013-03-22 1:19 Frank Li
2013-03-22 2:36 ` Fabio Estevam
0 siblings, 1 reply; 4+ messages in thread
From: Frank Li @ 2013-03-22 1:19 UTC (permalink / raw)
To: linux-arm-kernel
Since commit ff43da86c69 (NET: FEC: dynamtic check DMA desc buff type) the
following build error happens when CONFIG_FEC=m
ERROR: "fec_ptp_init" [drivers/net/ethernet/freescale/fec.ko] undefined!
ERROR: "fec_ptp_ioctl" [drivers/net/ethernet/freescale/fec.ko] undefined!
ERROR: "fec_ptp_start_cyclecounter" [drivers/net/ethernet/freescale/fec.ko] undefined!
rename fec.c to fec_main.c
Build fec.o and fec_ptp.o into one fec.ko
Reported-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
Signed-off-by: Frank Li <Frank.Li@freescale.com>
---
Change from V1 to V2
1. Use -M option to create patch
drivers/net/ethernet/freescale/Makefile | 3 ++-
.../net/ethernet/freescale/{fec.c => fec_main.c} | 0
2 files changed, 2 insertions(+), 1 deletions(-)
rename drivers/net/ethernet/freescale/{fec.c => fec_main.c} (100%)
diff --git a/drivers/net/ethernet/freescale/Makefile b/drivers/net/ethernet/freescale/Makefile
index b7d58fe..549ce13 100644
--- a/drivers/net/ethernet/freescale/Makefile
+++ b/drivers/net/ethernet/freescale/Makefile
@@ -2,7 +2,8 @@
# Makefile for the Freescale network device drivers.
#
-obj-$(CONFIG_FEC) += fec.o fec_ptp.o
+obj-$(CONFIG_FEC) += fec.o
+fec-objs :=fec_main.o fec_ptp.o
obj-$(CONFIG_FEC_MPC52xx) += fec_mpc52xx.o
ifeq ($(CONFIG_FEC_MPC52xx_MDIO),y)
obj-$(CONFIG_FEC_MPC52xx) += fec_mpc52xx_phy.o
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec_main.c
similarity index 100%
rename from drivers/net/ethernet/freescale/fec.c
rename to drivers/net/ethernet/freescale/fec_main.c
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 1/1 v2 net-next] net: fec: fix the build as module
2013-03-22 1:19 [PATCH 1/1 v2 net-next] net: fec: fix the build as module Frank Li
@ 2013-03-22 2:36 ` Fabio Estevam
2013-03-22 2:39 ` Frank Li
0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2013-03-22 2:36 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Mar 21, 2013 at 10:19 PM, Frank Li <Frank.Li@freescale.com> wrote:
> Since commit ff43da86c69 (NET: FEC: dynamtic check DMA desc buff type) the
> following build error happens when CONFIG_FEC=m
>
> ERROR: "fec_ptp_init" [drivers/net/ethernet/freescale/fec.ko] undefined!
> ERROR: "fec_ptp_ioctl" [drivers/net/ethernet/freescale/fec.ko] undefined!
> ERROR: "fec_ptp_start_cyclecounter" [drivers/net/ethernet/freescale/fec.ko] undefined!
This error does not not happen in 'net-next' anymore.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1 v2 net-next] net: fec: fix the build as module
2013-03-22 2:36 ` Fabio Estevam
@ 2013-03-22 2:39 ` Frank Li
2013-03-23 18:12 ` Fabio Estevam
0 siblings, 1 reply; 4+ messages in thread
From: Frank Li @ 2013-03-22 2:39 UTC (permalink / raw)
To: linux-arm-kernel
>
> This error does not not happen in 'net-next' anymore.
what's your suggestion? change commit message or request apply to 3.9
best regards
Frank Li
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1 v2 net-next] net: fec: fix the build as module
2013-03-22 2:39 ` Frank Li
@ 2013-03-23 18:12 ` Fabio Estevam
0 siblings, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2013-03-23 18:12 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Mar 21, 2013 at 11:39 PM, Frank Li <lznuaa@gmail.com> wrote:
>>
>> This error does not not happen in 'net-next' anymore.
>
> what's your suggestion? change commit message or request apply to 3.9
Your motivation now is to generate a single kernel module instead of
two for the fec, rather than fixing the the build error.
So you need to adjust the Subject and commit log.
I am not sure if we really need to rename fec.c though.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-03-23 18:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-22 1:19 [PATCH 1/1 v2 net-next] net: fec: fix the build as module Frank Li
2013-03-22 2:36 ` Fabio Estevam
2013-03-22 2:39 ` Frank Li
2013-03-23 18:12 ` Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).