From patchwork Wed Apr 9 06:09:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 337772 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2794414008C for ; Wed, 9 Apr 2014 17:15:34 +1000 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WXliI-0007K1-Tz; Wed, 09 Apr 2014 06:10:23 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WXliH-0001Oh-AH; Wed, 09 Apr 2014 06:10:21 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WXliD-0001OF-DV for linux-mtd@lists.infradead.org; Wed, 09 Apr 2014 06:10:18 +0000 Received: by mail-pa0-f51.google.com with SMTP id kq14so2055814pab.24 for ; Tue, 08 Apr 2014 23:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=bPsBsDmC0NGPy8MaapwFmU4MviKr22DnDiGl54Rt+Zk=; b=gaXBdeTqknawyJ56PUCXNWUtXVxiE4vnWEkHSwpDrDcila5OhGUB6hf5HB3XZkmFk4 WpBeqZ3SuH3beER/FxgthG/n5tMet0cMMLM3qiCRaVAPQkKwFXX3EKo9qV2JhwNwhhog w1rYxUcMSg/+W+WjMNjYtlvxRnttWCuuV4gtY9Qh81DON/LPsask9Y3bE2WvJTT0Tczt 7vBWrecua7gGRYE7d55OA6CkqF5DBq14PV5RWp0A8aFogZTpYeOCGKmK7jDwYBX31aSR pI/52OF/VlGCKpb1C30o6eAWdGjxdPcDzLf/pylm465IrguBIVESuiOiS2sCkQ2e3BDc jaEQ== X-Received: by 10.68.136.41 with SMTP id px9mr9789115pbb.14.1397023793853; Tue, 08 Apr 2014 23:09:53 -0700 (PDT) Received: from localhost.localdomain (cpe-98-154-223-43.socal.res.rr.com. [98.154.223.43]) by mx.google.com with ESMTPSA id qx11sm20668223pab.35.2014.04.08.23.09.52 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 23:09:53 -0700 (PDT) From: Brian Norris To: Subject: [PATCH] mtd: spi-nor: EXPORT symbols which could be used by module drivers Date: Tue, 8 Apr 2014 23:09:41 -0700 Message-Id: <1397023781-1103-1-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 1.8.3.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140409_021017_664949_BF074A0C X-CRM114-Status: GOOD ( 10.93 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (computersforpeace[at]gmail.com) -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: Marek Vasut , Huang Shijie , Brian Norris X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 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" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Fix errors like this: ERROR: "spi_nor_ids" [drivers/mtd/devices/m25p80.ko] undefined! ERROR: "spi_nor_scan" [drivers/mtd/devices/m25p80.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 Signed-off-by: Brian Norris --- Based on l2-mtd.git:spinor drivers/mtd/spi-nor/spi-nor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index f7c9e638623b..2c292f95142e 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -584,6 +584,7 @@ const struct spi_device_id spi_nor_ids[] = { { "cat25128", CAT25_INFO(2048, 8, 64, 2, SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) }, { }, }; +EXPORT_SYMBOL(spi_nor_ids); static const struct spi_device_id *spi_nor_read_id(struct spi_nor *nor) { @@ -1081,6 +1082,7 @@ int spi_nor_scan(struct spi_nor *nor, const struct spi_device_id *id, mtd->eraseregions[i].numblocks); return 0; } +EXPORT_SYMBOL(spi_nor_scan); const struct spi_device_id *spi_nor_match_id(char *name) { @@ -1093,6 +1095,7 @@ const struct spi_device_id *spi_nor_match_id(char *name) } return NULL; } +EXPORT_SYMBOL(spi_nor_match_id); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Huang Shijie ");