From patchwork Tue Oct 18 17:02:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4263 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2064990wrs; Tue, 18 Oct 2022 10:06:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5JARSELjJ+p3QlxPrnrDgxBEOgla2ABbEv25oB33hbXxSM2TbXBkhZIsIOIuqYRVHh4HnI X-Received: by 2002:a65:674e:0:b0:43c:3b91:236e with SMTP id c14-20020a65674e000000b0043c3b91236emr3493933pgu.510.1666112807691; Tue, 18 Oct 2022 10:06:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666112807; cv=none; d=google.com; s=arc-20160816; b=0mceJngZKdFl0WBNg+iz5ZjBNA5cyz7yqYczm0zaEccsIdGZC1gjidnaqg7vab2RlF W5m2457Jqvzsc3NHN0RLn0bFifLGm/fsNe7UKLsl6wQP4wujbf5GWbmRdgRYHSQ2vYrU 6Pq6uZcSZweozj0lvkbKKgoc8174bDjyC1tyNFb2GVirpao01mLq0VmOGomgwsGezfSh Jsgu9U+FiI3wN3k0BfJTftxpDHED9wt+fkY1q6iW0Pck+Xg/cOb8U2OtLiYedPTn4D72 n8gkmcacuWt3kgq8AFvFcnNwuXPPJHPW+Yaaexj8h9xSm0CoEVus4CAn/1y5IAg1TWNQ v48g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EvNFUcsg6CZf4Twcacgk4/TpKqaK+NR+PSADwLx1Qqk=; b=L3DazThHKR4En7w9MZjzaam3LlH3AnvArd9WHvOKHbncUS7viZ62l3AoBoWaXdvJSw mmG03RQVEUYgU7NZP4ayMK5c35+8Mr4nV78Znpi4Ld4x7cSYakyF7k5xgnxZM29kjuFs G7o8V7tslrWGJbqGgywP5z5zSK3T0T4+f9Oj+ZfRG+Vxs5A5qsdolMQ4FE/Z8Toz4qGI MU3jAST3g04kZH/B9sE3OcRb8A8mCH2m+dDYdHfYC5yVPF2RqnQW7dFQL7M8rJNfswAn LsmwOLqcFq30eDRrrg9pzCe2j4/iqYKpiebSUs5isShKMMfzqAp+t6PyVUIfhQrf89Xi sCDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NO9Rpc7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 195-20020a6302cc000000b0045aca9758cfsi14881726pgc.759.2022.10.18.10.06.32; Tue, 18 Oct 2022 10:06:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NO9Rpc7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229525AbiJRRCX (ORCPT + 99 others); Tue, 18 Oct 2022 13:02:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbiJRRCV (ORCPT ); Tue, 18 Oct 2022 13:02:21 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49675EE095 for ; Tue, 18 Oct 2022 10:02:20 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id k2so33856337ejr.2 for ; Tue, 18 Oct 2022 10:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EvNFUcsg6CZf4Twcacgk4/TpKqaK+NR+PSADwLx1Qqk=; b=NO9Rpc7gw8DAzJvh3gLWr8+d5iG6WcxapUthrhBuntkU2o5NzO/8iuTamVLA9MXUef 51252nvKL7xcVLOqjbS2w9Bb5VeQL9KTFGmb91bdUa2ErDtAZA9HN2935cd3DrnCuS8n 8AWDbR2NL5Uz1HOBQnVoP5KJ3aVbsnfFKLVWk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EvNFUcsg6CZf4Twcacgk4/TpKqaK+NR+PSADwLx1Qqk=; b=mdprqCnktLZbcdUb2T3CP2gkK/snwmBmvnStvvihEG0cR36kN0xMAMdH4xYJI5lSCk HnpHaIwfrEAoI3rkfn0+WT00xrlWfkXEqgMSgImRRtt3eZg8w+ytv4PFRSRho68RmedY pv3Wzg7Uy2cqHzjQ+no2YSwoSOESOMTNyXUFmpMNgcTwg60Emnjnb4HXqNS/lOW1Dap0 lqBQNIZoGb8RizvwLeo8o4VU1CRNRMxks++PoH2Uh6ei7kEiAAypdNRAajjAdsBp7No7 qq2DbFpsh1OhKlwW0hwKV3q7cONHXy4Bwk1QQOc8eXS4DbZvHpXWrvVbTuNneMErvpkx ZxHA== X-Gm-Message-State: ACrzQf1k7XEdGTpTUy+4eiZMyJNEEcOJ+7m83hA+3lrcC3qnU0ayWPjJ t9kfTMSwB+wJNzqiRU8Jy18fXL/zFW7UYQ== X-Received: by 2002:a17:907:3ea4:b0:78e:25e2:c33b with SMTP id hs36-20020a1709073ea400b0078e25e2c33bmr3113366ejc.603.1666112538617; Tue, 18 Oct 2022 10:02:18 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-244-101-110.retail.telecomitalia.it. [95.244.101.110]) by smtp.gmail.com with ESMTPSA id d7-20020aa7d687000000b004580296bb0bsm9172616edr.83.2022.10.18.10.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 10:02:17 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Amarula patchwork , Dario Binacchi , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org Subject: [PATCH] mtd: nand: drop EXPORT_SYMBOL_GPL for nanddev_erase() Date: Tue, 18 Oct 2022 19:02:05 +0200 Message-Id: <20221018170205.1733958-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747045903690272788?= X-GMAIL-MSGID: =?utf-8?q?1747045903690272788?= This function is only used within this module, so it is no longer necessary to use EXPORT_SYMBOL_GPL(). Signed-off-by: Dario Binacchi --- drivers/mtd/nand/core.c | 3 +-- include/linux/mtd/nand.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd/nand/core.c b/drivers/mtd/nand/core.c index dbd7b06524b3..7737b1a4a177 100644 --- a/drivers/mtd/nand/core.c +++ b/drivers/mtd/nand/core.c @@ -126,7 +126,7 @@ EXPORT_SYMBOL_GPL(nanddev_isreserved); * * Return: 0 in case of success, a negative error code otherwise. */ -int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) +static int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) { if (nanddev_isbad(nand, pos) || nanddev_isreserved(nand, pos)) { pr_warn("attempt to erase a bad/reserved block @%llx\n", @@ -136,7 +136,6 @@ int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos) return nand->ops->erase(nand, pos); } -EXPORT_SYMBOL_GPL(nanddev_erase); /** * nanddev_mtd_erase() - Generic mtd->_erase() implementation for NAND devices diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index c3693bb87b4c..b2996dc987ff 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -999,7 +999,6 @@ static inline bool nanddev_io_iter_end(struct nand_device *nand, bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos); bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos); -int nanddev_erase(struct nand_device *nand, const struct nand_pos *pos); int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos); /* ECC related functions */