From patchwork Tue Nov 25 00:54:52 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitri Vorobiev X-Patchwork-Id: 11720 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5A843DDDF0 for ; Tue, 2 Dec 2008 18:03:26 +1100 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1L7PFt-0007G9-FM; Tue, 02 Dec 2008 07:01:09 +0000 Received: from smtp.movial.fi ([62.236.91.34]) by bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux)) id 1L4n75-000643-RQ for linux-mtd@lists.infradead.org; Tue, 25 Nov 2008 01:53:16 +0000 Received: from localhost (mailscanner.hel.movial.fi [172.17.81.9]) by smtp.movial.fi (Postfix) with ESMTP id AFDA5C816A; Tue, 25 Nov 2008 02:55:12 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at movial.fi Received: from smtp.movial.fi ([62.236.91.34]) by localhost (mailscanner.hel.movial.fi [172.17.81.9]) (amavisd-new, port 10026) with ESMTP id 9Lz8El5x+oyP; Tue, 25 Nov 2008 02:55:12 +0200 (EET) Received: from sd048.hel.movial.fi (sd048.hel.movial.fi [172.17.49.48]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.movial.fi (Postfix) with ESMTP id 30913C8051; Tue, 25 Nov 2008 02:55:12 +0200 (EET) Received: by sd048.hel.movial.fi (Postfix, from userid 30120) id F0080110033; Tue, 25 Nov 2008 02:55:11 +0200 (EET) From: Dmitri Vorobiev To: dwmw2@infradead.org Subject: [PATCH 01/20] [MTD] Make lart_flash_init, lart_flash_exit static Date: Tue, 25 Nov 2008 02:54:52 +0200 Message-Id: <1227574511-23879-2-git-send-email-dmitri.vorobiev@movial.fi> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <1227574511-23879-1-git-send-email-dmitri.vorobiev@movial.fi> References: <1227574511-23879-1-git-send-email-dmitri.vorobiev@movial.fi> X-Bad-Reply: References and In-Reply-To but no 'Re:' in Subject. X-Spam-Score: -1.0 (-) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (-1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [62.236.91.34 listed in list.dnswl.org] X-Mailman-Approved-At: Tue, 02 Dec 2008 02:01:01 -0500 Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Dmitri Vorobiev X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The symbols lart_flash_init, lart_flash_exit are needlessly defined global in drivers/mtd/devices/lart.c, so make them static. Signed-off-by: Dmitri Vorobiev --- drivers/mtd/devices/lart.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/devices/lart.c b/drivers/mtd/devices/lart.c index f4bda4c..578de1c 100644 --- a/drivers/mtd/devices/lart.c +++ b/drivers/mtd/devices/lart.c @@ -619,7 +619,7 @@ static struct mtd_partition lart_partitions[] = { }; #endif -int __init lart_flash_init (void) +static int __init lart_flash_init (void) { int result; memset (&mtd,0,sizeof (mtd)); @@ -690,7 +690,7 @@ int __init lart_flash_init (void) return (result); } -void __exit lart_flash_exit (void) +static void __exit lart_flash_exit (void) { #ifndef HAVE_PARTITIONS del_mtd_device (&mtd); @@ -705,5 +705,3 @@ module_exit (lart_flash_exit); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Abraham vd Merwe "); MODULE_DESCRIPTION("MTD driver for Intel 28F160F3 on LART board"); - -