From patchwork Mon Nov 16 22:57:48 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 38556 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 6D383101845 for ; Tue, 17 Nov 2009 09:59:17 +1100 (EST) Received: by ozlabs.org (Postfix) id 87F7F10136E; Tue, 17 Nov 2009 09:59:05 +1100 (EST) Delivered-To: linuxppc-dev@ozlabs.org Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by ozlabs.org (Postfix) with ESMTP id C7C2B101309 for ; Tue, 17 Nov 2009 09:59:04 +1100 (EST) Received: from themisto.ext.pengutronix.de ([92.198.50.58] helo=pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.63) (envelope-from ) id 1NAAWk-0006DB-BM; Mon, 16 Nov 2009 23:58:42 +0100 From: Wolfram Sang To: netdev@vger.kernel.org Date: Mon, 16 Nov 2009 23:57:48 +0100 Message-Id: <1258412274-14686-6-git-send-email-w.sang@pengutronix.de> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1258412274-14686-1-git-send-email-w.sang@pengutronix.de> References: <1258412274-14686-1-git-send-email-w.sang@pengutronix.de> X-SA-Exim-Connect-IP: 92.198.50.58 X-SA-Exim-Mail-From: w.sang@pengutronix.de X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on metis.extern.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=4.5 tests=AWL, BAYES_00 shortcircuit=no autolearn=ham version=3.2.4 Subject: [PATCH 05/11] net/can/mscan: fix function annotations X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) X-PTX-Original-Recipient: linuxppc-dev@ozlabs.org Cc: socketcan-core@lists.berlios.de, linuxppc-dev@ozlabs.org, David Miller X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org - use extern where apropriate - don't export symbols Signed-off-by: Wolfram Sang --- drivers/net/can/mscan/mscan.c | 3 --- drivers/net/can/mscan/mscan.h | 2 +- 2 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/net/can/mscan/mscan.c b/drivers/net/can/mscan/mscan.c index ca8b556..76e413e 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 76a8abf..2018000 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.