From: Wolfram Sang Date: Mon, 16 Nov 2009 12:57:48 +0000 (+0000) Subject: net/can/mscan: fix function annotations X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1712fe59415faf23a36c38dbacf18efd4ffe94e0;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git net/can/mscan: fix function annotations - use extern where apropriate - don't export symbols Signed-off-by: Wolfram Sang Signed-off-by: David S. Miller --- diff --git a/drivers/net/can/mscan/mscan.c b/drivers/net/can/mscan/mscan.c index ca8b55685ad9..76e413e7fdb1 100644 --- a/drivers/net/can/mscan/mscan.c +++ b/drivers/net/can/mscan/mscan.c @@ -611,7 +611,6 @@ int register_mscandev(struct net_device *dev, int clock_src) return register_candev(dev); } -EXPORT_SYMBOL_GPL(register_mscandev); void unregister_mscandev(struct net_device *dev) { @@ -621,7 +620,6 @@ void unregister_mscandev(struct net_device *dev) clrbits8(®s->canctl1, MSCAN_CANE); unregister_candev(dev); } -EXPORT_SYMBOL_GPL(unregister_mscandev); struct net_device *alloc_mscandev(void) { @@ -651,7 +649,6 @@ struct net_device *alloc_mscandev(void) return dev; } -EXPORT_SYMBOL_GPL(alloc_mscandev); MODULE_AUTHOR("Andrey Volkov "); MODULE_LICENSE("GPL v2"); diff --git a/drivers/net/can/mscan/mscan.h b/drivers/net/can/mscan/mscan.h index 76a8abf1c347..20180007fe3d 100644 --- a/drivers/net/can/mscan/mscan.h +++ b/drivers/net/can/mscan/mscan.h @@ -279,7 +279,7 @@ struct mscan_priv { struct napi_struct napi; }; -struct net_device *alloc_mscandev(void); +extern struct net_device *alloc_mscandev(void); /* * clock_src: * 1 = The MSCAN clock source is the onchip Bus Clock.