From patchwork Tue Nov 8 09:07:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2464 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5E1FA3F1E2 for ; Tue, 8 Nov 2022 10:07:29 +0100 (CET) Received: by mail-ed1-f72.google.com with SMTP id b13-20020a056402350d00b00464175c3f1esf10147420edd.11 for ; Tue, 08 Nov 2022 01:07:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667898449; cv=pass; d=google.com; s=arc-20160816; b=o+Bx9TXxjC8WI1rDNAGfrumkqG6u17F43zPNpojy/QCYZGCf9g/2FLcOo/hrdR2jrQ DxyEL4TTubFHEf8uldOF5o0hJnLV2R+u+VRz78RujVO9XnairEAmMkFUDxt7d5AHdc0z r6zyAVEwUiYKRSWs6aMk2zrhdp6XmhTJs1TXCYIa/Ht8q8i0mT68Vw732fX3ssrvcIQQ yZJsYsoHlvNeqNbHXLtaP9DFldbHtzG4dY9fUYXIAixhy+PtUj1NqexB6Z+U5k+s3NVK BDBXp+z1XGWcyVDzPLpM5P2iPn44aryqd66PDgyM6A/i1edBqxnUBfnOua+J+R7upSGG oO7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=AVtOcX2OKoMmmDVE7gU58oFJUwWq/7GUCHP7Qo6DU7U=; b=yj6XjO4fPRvc/M1AQBu5Yk19YXg0BkdKNKy97O4T4sX6BSko/+24g7CMpVfZ42wERJ 5quOX52hHDo96x+9DCU/ip6yvc8e0heQKUIGz2dtbnR95yTxuM6tfz89conM+pWCjxXO ncuwZXwwOeUS9aw0qGxf84V8LaJnrufJfy6PPRfJMMCiyLLwtGwX446vgp16ByF7KCGr GECZdgKogweL0GuvYPZGEcIjNFccFcvKipkqL7g+N1ZCqZTPaoZ2bYg6iI98P/rKqULB eGVOvj6YqX/OQ7QA74VN7QUQPwu6/uloQ7Hi5b1t1vtqtD8jwCifNsd7tKcePDlYFgN1 tChg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JlueBF+6; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=AVtOcX2OKoMmmDVE7gU58oFJUwWq/7GUCHP7Qo6DU7U=; b=LqpR8t8RgEb2ZyuLCPe/LWZpSBPtc6FMGUMZsPMV82HVwMX0HjUAu6a/CpjTfyQXTD u/lKRLKVEngLPhIKgQK1+Mc2TxHeJqLHQjRm++wvv74d5cpMh3qYKSvWPx4eB7nEDppY DMAr00jRpK+CMJZr9BNfuvJXccJlNdmDz2x7E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AVtOcX2OKoMmmDVE7gU58oFJUwWq/7GUCHP7Qo6DU7U=; b=UUTR2rOAPzkW8bvaaIzWFEKn1bPrE6ww3iuMcpnLqde14pFs470R0X6YSriwS4TZZ/ V90BaT8koolHxJM6zKzowWdp8RiD5j6pKLFCyrbGnqWxinm3QHqlhSdeGF9l02BRik89 Dfl680VegDsdAyiHY+fjthSpPl9fsEwBQhgWgc/BVUyhjRGRWQpFy4VoVw00wOs35ZiG bC1GIVyyEW9BZNC2rtLiQc7/LAIMqhJEse3g8DhKFzq27HHmq2RE3gYatdkWPk3X4ZtJ Fc0EttTQEswyTDo/pFnQf2Hh8LsE9nwCMbVTnUOpiQwDuO3erf+TkONcsReBMo4d33tT ClCA== X-Gm-Message-State: ACrzQf1k1sBKpM/jdDtH2E7RRMtGl/WFHfZu2kAJxEV0t0P2Xdwp9Fa9 a3FOPKZ+P+Q4xDhdtfSK46vPhf+a X-Google-Smtp-Source: AMsMyM6++tqYNB6xXA++3l8h/ZxmqMnqsbJJP57wcTUUibT1ax4kcxa6/hwXprROcmG24qA68l/IjA== X-Received: by 2002:a05:6402:2804:b0:439:83c2:8be2 with SMTP id h4-20020a056402280400b0043983c28be2mr55703803ede.292.1667898449151; Tue, 08 Nov 2022 01:07:29 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:6d86:b0:780:f131:b4d9 with SMTP id h6-20020a1709066d8600b00780f131b4d9ls8356013ejt.11.-pod-prod-gmail; Tue, 08 Nov 2022 01:07:28 -0800 (PST) X-Received: by 2002:a17:907:971f:b0:7ad:e232:f115 with SMTP id jg31-20020a170907971f00b007ade232f115mr40122562ejc.754.1667898447864; Tue, 08 Nov 2022 01:07:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667898447; cv=none; d=google.com; s=arc-20160816; b=f2a1I7nHmdanU67NlKkRwSrwq44gMvlvmtrUQwWUEtf3SbuoxkwiNO+nMdyfMuCwBv hHoCIhZrPVowzfWuCihlsEIjr16Qb8viC8QpHhMiI6K6kvK0HLzReBXEZSw3/1t5M7Vm qbfYvs9pxjGleHLE0fyUWoTLXOtj5on6t0sa4ruqbbos1iGwaiA6Fn/gVBg97KY6Ok6x bP8wKlhapu8zLHgk7JCRat0gVw4n1Wz4GLlQ6ZBtGWf1lwXzp6whCgaiRmGDvl4esHMy rH47DDZLbffbZQKswdg8wBBuotbQUbqyDhHdfHha+5MspoVF7xX8VO984ULIaPahF+iz QsrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=lAnaJMVmIKHwSAWW4Rc1SlMbJYWfXs94BDYNup359bw=; b=KWbnBuTp/Xk6Lh4rJi5clXaBLoyuvph8G3pmcwEyRYg5dsn0iHaf0iu6+x/QVqfPdm ZaOPWaKa2Y3/rvFq50IIHySrk74W1jWGxSbgZJYX5HnnPRjYWhgrd4OprK5jgYtE6L0i oxeXty9OyHtbF6EbXdI0A8LG85lkH7QKK0B4kJa/c0uKDF8oj890zdTI22SA/6APgCcF PjmSuy017WHwjkp/ElBZGODCJNkChEd8JwGk1jUkGK9nL6rWVlPfGE0TYKJhUrllqlKt ex2lU3loE42hKV2TcPfxtGz77w02CoTe08IVb2S6a9ayTNU5sX7G9VJOVWVNa9Wmgxr8 28nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JlueBF+6; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id pg24-20020a170907205800b007a0e73c91f7sor3807635ejb.7.2022.11.08.01.07.27 for (Google Transport Security); Tue, 08 Nov 2022 01:07:27 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:906:ee81:b0:77e:829a:76e9 with SMTP id wt1-20020a170906ee8100b0077e829a76e9mr53055829ejb.207.1667898447577; Tue, 08 Nov 2022 01:07:27 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-79-40-103-33.business.telecomitalia.it. [79.40.103.33]) by smtp.gmail.com with ESMTPSA id ku8-20020a170907788800b00783f32d7eaesm4340626ejc.164.2022.11.08.01.07.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Nov 2022 01:07:27 -0800 (PST) From: Dario Binacchi To: u-boot@lists.denx.de Cc: linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, Dario Binacchi , Simon Glass , Stefan Roese Subject: [PATCH] mtd: nand: drop EXPORT_SYMBOL_GPL for nanddev_erase() Date: Tue, 8 Nov 2022 10:07:19 +0100 Message-Id: <20221108090719.3631621-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JlueBF+6; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This function is only used within this module, so it is no longer necessary to use EXPORT_SYMBOL_GPL(). This patch parallels the work done in the following patch: https://lore.kernel.org/linux-mtd/20221018170205.1733958-1-dario.binacchi@amarulasolutions.com Signed-off-by: Dario Binacchi Reviewed-By: Michael Trimarchi --- 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 99c29670c75e..4b9dd6a92694 100644 --- a/drivers/mtd/nand/core.c +++ b/drivers/mtd/nand/core.c @@ -129,7 +129,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) { unsigned int entry; @@ -147,7 +147,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 7774c17ad5d5..aeb38dec2e03 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -691,7 +691,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); /* BBT related functions */