From patchwork Wed Mar 21 09:47:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryosuke Saito X-Patchwork-Id: 147954 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1CB0CB6EF1 for ; Wed, 21 Mar 2012 20:49:34 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SAI9r-0000Bi-PO; Wed, 21 Mar 2012 09:48:43 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SAI9p-0000B4-PG for linux-mtd@lists.infradead.org; Wed, 21 Mar 2012 09:48:42 +0000 Received: by pbcun4 with SMTP id un4so777630pbc.36 for ; Wed, 21 Mar 2012 02:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=x22q1WFvUCEdMwmy1vb8B3p7w6zJxtnN7q5eN1LxFmo=; b=Gpzl6yDeGeJ+YtHq0jA1uhfJofpf9N6v9KuQlizARq9OsjTwpoOE/TCFxiNbPnxk2D uv6/qrJII4AnztF7dS27+m11bKAdZbQHJmk5JH8ysLHi/hCDXS4YkKMeQYFHFWoXyS7t q7eXCCBRJ4MdWgWA+rJw2sif9ewkgVZxXFrVs3qOpCcld4on01MXUmWef+twYFd42XFm AdTNJy6z7yCeyRR6+RqGXzG0U+NikO+ThLqJdGZ3jerBZGREhelmbmplRSox1LXH1kEW 0e0ZLKi0pvrPDwl6aqJUhoI4MslgEYHZVnYtBI/Ao1rbnTkljUN6ms41Bmmgh8BNgXiE xiIQ== Received: by 10.68.135.7 with SMTP id po7mr9484485pbb.73.1332323319733; Wed, 21 Mar 2012 02:48:39 -0700 (PDT) Received: from [192.168.1.199] (p924d98.tokyff01.ap.so-net.ne.jp. [59.146.77.152]) by mx.google.com with ESMTPS id x8sm1045703pbr.11.2012.03.21.02.48.38 (version=SSLv3 cipher=OTHER); Wed, 21 Mar 2012 02:48:39 -0700 (PDT) Subject: [PATCH] mtd: phram: fix section mismatch for phram_setup From: Ryosuke Saito To: artem.bityutskiy@linux.intel.com Date: Wed, 21 Mar 2012 18:47:47 +0900 Message-ID: <1332323267.14283.13.camel@HDL00099> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (raitosyo[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -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 Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, h-fache@ti.com X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 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 phram_setup() is only called from init_phram() which is in .init.text, so it must be in the same section to avoid a section mismatch warning. Signed-off-by: Ryosuke Saito --- drivers/mtd/devices/phram.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c index 3d91ace..67823de 100644 --- a/drivers/mtd/devices/phram.c +++ b/drivers/mtd/devices/phram.c @@ -215,7 +215,7 @@ static inline void kill_final_newline(char *str) */ static __initdata char phram_paramline[64+12+12]; -static int phram_setup(const char *val) +static int __init phram_setup(const char *val) { char buf[64+12+12], *str = buf; char *token[3];