From patchwork Fri Nov 12 16:03:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 70984 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from canuck.infradead.org (canuck.infradead.org [134.117.69.58]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 884A1B7141 for ; Sat, 13 Nov 2010 03:10:14 +1100 (EST) Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PGw6c-0006ri-PO; Fri, 12 Nov 2010 16:04:02 +0000 Received: from nm6.bullet.mail.ac4.yahoo.com ([98.139.52.203]) by canuck.infradead.org with smtp (Exim 4.72 #1 (Red Hat Linux)) id 1PGw6W-0006qt-I0 for linux-mtd@lists.infradead.org; Fri, 12 Nov 2010 16:04:00 +0000 Received: from [98.139.52.196] by nm6.bullet.mail.ac4.yahoo.com with NNFMP; 12 Nov 2010 16:03:54 -0000 Received: from [98.139.52.135] by tm9.bullet.mail.ac4.yahoo.com with NNFMP; 12 Nov 2010 16:03:54 -0000 Received: from [127.0.0.1] by omp1018.mail.ac4.yahoo.com with NNFMP; 12 Nov 2010 16:03:54 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 952490.12409.bm@omp1018.mail.ac4.yahoo.com Received: (qmail 91137 invoked by uid 60001); 12 Nov 2010 16:03:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1289577834; bh=tDy6H1Qu0RfnWyYDHnckFGfuPT0BenILlHPyKtKe6Yc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DVSKxfbgPmy8AhuxX46bX0DvJ/LODGVZPchS/vfO/fhTTbHZ7ToIRRzpuTsu+M56gi2iwP6zh/CFYggQMDOcu1ALUI6TyIUSCWvkB62M24urN+natNYja7fDv6gLMY8ZZwZvjcCngBfkTDsu3D6r/d0keGLekHnAqg9DWhZf8mw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=kJKYhNfcL8PvVPsbaEZ0mXawhTwx3ylHeICbY0OS+U98vgQhBN6SiS//xedx//kc9nEpss8h5QMEmXnJbfQlbDKUU/GrZnqnh9GaZnkysWmD3gAO8snYGvhWFmxdiBNV6+2zrPgZ/QRMqJbTefc22O5dSxgE6+EKSEMwz4GoqT8=; Message-ID: <843351.91050.qm@web51004.mail.re2.yahoo.com> X-YMail-OSG: laMDvWIVM1nn3Ud1Qj5YFZt5jopaQNBM6dp546ktsjqHypx 90JGIm0cKbIHj6pxf11NBnkqgHX05jj.kL7rwXj.Tg428GJMpC7lWhpfZvc0 A3X7aDCJoJO4EhNeUNzRHm0ITw2CxKLTaxWHW00oGT2zzYW8LUbaCOYbnlXn qmRAWT6O5FyfSmISkhWOkTeBeUtH4ys3dXeU3UU0JKcg0LibWXZNc7SZh.0k ZuuJnRKRz1Nm4zRviEXJTsRSfSGU8YAFW.0USlCEVeCPnGj_iKz8_4hV_OKd mA7d4NBybXlxypw9KujtaQZ.UCJIT9vc0oF_noc0j20aesLcejlPUyevBo.W 5rTzPAwpp86M- Received: from [192.88.165.35] by web51004.mail.re2.yahoo.com via HTTP; Fri, 12 Nov 2010 08:03:54 PST X-Mailer: YahooMailClassic/11.4.9 YahooMailWebService/0.8.107.285259 Date: Fri, 12 Nov 2010 08:03:54 -0800 (PST) From: Fabio Estevam Subject: [PATCH] mtd: Fix section mismatch on sst25l To: linux-mtd@lists.infradead.org MIME-Version: 1.0 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20101112_110356_746142_1C69593F X-CRM114-Status: GOOD ( 12.33 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, low trust [98.139.52.203 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is freemail (fabioestevam[at]yahoo.com) -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 RFC_ABUSE_POST Both abuse and postmaster missing on sender domain 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: dwmw2@infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Building the kernel with 'make CONFIG_DEBUG_SECTION_MISMATCH=y´ resulted in: WARNING: vmlinux.o(.data+0x15938): Section mismatch in reference from the variable sst25l_driver to the function .init.text:sst25l_probe() The variable sst25l_driver references the function __init sst25l_probe() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console, Fix the section mismatch. Signed-off-by: Fabio Estevam --- drivers/mtd/devices/sst25l.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index 684247a..925b1a9 100644 --- a/drivers/mtd/devices/sst25l.c +++ b/drivers/mtd/devices/sst25l.c @@ -375,7 +375,7 @@ static struct flash_info *__init sst25l_match_device(struct spi_device *spi) return flash_info; } -static int __init sst25l_probe(struct spi_device *spi) +static int __devinit sst25l_probe(struct spi_device *spi) { struct flash_info *flash_info; struct sst25l_flash *flash;