Patchwork [1/3] dsa: Remove unnecessary exports

login
register
mail settings
Submitter Ben Hutchings
Date Nov. 28, 2011, 3:05 a.m.
Message ID <1322449506.7454.34.camel@deadeye>
Download mbox | patch
Permalink /patch/127926/
State Accepted
Delegated to: David Miller
Headers show

Comments

Ben Hutchings - Nov. 28, 2011, 3:05 a.m.
I mistakenly exported functions from slave.c that are only called from
dsa.c, part of the same module.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 net/dsa/slave.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
Lennert Buytenhek - Nov. 28, 2011, 9:13 p.m.
On Mon, Nov 28, 2011 at 03:05:06AM +0000, Ben Hutchings wrote:

> I mistakenly exported functions from slave.c that are only called from
> dsa.c, part of the same module.
> 
> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - Nov. 29, 2011, 6:20 a.m.
From: Ben Hutchings <ben@decadent.org.uk>
Date: Mon, 28 Nov 2011 03:05:06 +0000

> I mistakenly exported functions from slave.c that are only called from
> dsa.c, part of the same module.
> 
> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index c9d52ca..56cf9b8 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -45,7 +45,6 @@  void dsa_slave_mii_bus_init(struct dsa_switch *ds)
 			ds->master_mii_bus->id, ds->pd->sw_addr);
 	ds->slave_mii_bus->parent = &ds->master_mii_bus->dev;
 }
-EXPORT_SYMBOL_GPL(dsa_slave_mii_bus_init);
 

 /* slave device handling ****************************************************/
@@ -403,4 +402,3 @@  dsa_slave_create(struct dsa_switch *ds, struct device *parent,
 
 	return slave_dev;
 }
-EXPORT_SYMBOL_GPL(dsa_slave_create);