ibm emac: delete module references; phy.c only supported as built-in
Subsystems (2)
PATCH 1/1 ibm emac: delete module references; phy.c only supported as built-in
The Makefile has it as "ibm_emac-y := mal.o core.o phy.o" so there is no way this can be built modular, so remove all references to module support.
drivers/net/ethernet/ibm/emac/phy.c +3 -3
@@ -11,13 +11,15 @@* Copyright 2007 Benjamin Herrenschmidt, IBM Corp. * <[email protected]> * +* Originally listed as MODULE_LICENSE("GPL") in the code, but that +* was removed, since this code is only supported as non-modular. +* * Based on the arch/ppc version of the driver: * * (c) 2003, Benjamin Herrenscmidt ([email protected]) * (c) 2004-2005, Eugene Surovegin <[email protected]> * */ -#include <linux/module.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/netdevice.h>
@@ -537,5 +539,3 @@ int emac_mii_phy_probe(struct mii_phy *phy, int address)return 0 ; } - -MODULE_LICENSE ("GPL" );
Signature · 1 line
1.7.9.1
Quoted 3 lines · Paul Gortmaker
The
Makefilehas it as "ibm_emac-y := mal.o core.o phy.o" so there is no way this can be built modular, so remove all references to module support.
No, that's nonsense. You need to look at whether ibm_emac.o can be added to obj-m (which it can).
Ben.
Quoted 29 lines
Signed-off-by Paul Gortmaker <[email protected]>drivers/net/ethernet/ibm/emac/phy.c +3
-3@@ -11,13 +11,15 @@* Copyright 2007 Benjamin Herrenschmidt, IBM Corp. * <[email protected]> * +* Originally listed as MODULE_LICENSE("GPL") in the code, but that +* was removed, since this code is only supported as non-modular. +* * Based on the arch/ppc version of the driver: * * (c) 2003, Benjamin Herrenscmidt ([email protected]) * (c) 2004-2005, Eugene Surovegin <[email protected]> * */ -#include <linux/module.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/netdevice.h> @@ -537,5 +539,3 @@ int emac_mii_phy_probe(struct mii_phy *phy, int address)return 0 ; } - -MODULE_LICENSE ("GPL" );
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
David Miller
maintainerFrom: Paul Gortmaker <[email protected]>
Date: Mon, 27 Feb 2012 14:47:04 -0500
Quoted 3 lines
The
Makefilehas it as "ibm_emac-y := mal.o core.o phy.o" so there is no way this can be built modular, so remove all references to module support.
That doesn't mean it's only buildable statically.
"ibm_emacs-y :=" is merely a way to tell make what objects go into ibm_emac.{o,ko}
IBM_EMAC is tristate
Quoted 7 lines · [Re: [PATCH net-next] ibm emac: delete module references; phy.c only supported…
From: Paul Gortmaker <[email protected]>
Date: Mon, 27 Feb 2012 14:47:04 -0500Quoted 3 lines
The
Makefilehas it as "ibm_emac-y := mal.o core.o phy.o" so there is no way this can be built modular, so remove all references to module support.
Quoted 5 lines
That doesn't mean it's only buildable statically.
"ibm_emacs-y :=" is merely a way to tell make what objects go into ibm_emac.{o,ko}
IBM_EMACis tristate
Argh, yes. Sorry for the noise. Since phy.c doesn't call any modular functionality directly, the patch "worked" and I didn't catch the error in my reasoning.
Paul.