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: 2446 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B05D740F4C for ; Tue, 18 Oct 2022 19:02:20 +0200 (CEST) Received: by mail-ej1-f69.google.com with SMTP id hd11-20020a170907968b00b0078df60485fdsf6803340ejc.17 for ; Tue, 18 Oct 2022 10:02:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666112540; cv=pass; d=google.com; s=arc-20160816; b=Ma4wQDJgshCR3YnzOGCAD1ZWj5w6GgaHTOm71/yaw+mgxamJz0fmZ735H18FzqC5aW EK/6zAyJbcDrpotFU/kkVWRvVRMZ4X6rtbiHmGDv5vgjU2eVX0vM2Vk/yLxeANxyjz2U cwHlHJz+Foo4696ZvnXNRJxbntco2cacm+YcW+T2sXJx8my3NZUbGNKm7NvT669tOcX7 FD6nmeAkwMtM+vnjQqtCFTU5FZ4jN3qRiKML5L++aoymLY/uLHd1bCoReoR9kYkm7tnD 7jPGSIfN3xN+NonHcj6/OBPIOBpSQyIkIG/46JG94DxQ5VBxPwp1m/7aoOINDL1I+H2D VCJQ== 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=sHddNb2bjzvyo+gBU2yRERxBZzsiaNj68mPl4oXSmTQ=; b=YbJKhbr9ObXLd3y3NSlDrmtkf++6YuG9XAoQUxfGQqENnzRORrqXyWCelKIRZGq4pN zBQdueJzEzTGmO9jZMXM36bSoy4fDgkW/LXiayJto1R22uwi7J1bA6o41tk9lQwy83BG ummlJzrwhSlIy+4CGRGMXQ3xy51r1ArU25zy0RESXbDdhkQt/JwtB1JL00v2v5U6BiZr tmKO/HHs8yLUBrMwa2FfjIKVbwmmIsVuNnH+qAaFP9zxYjHXL4i47QRME85zdcCNnHMA rofN96NvIQbfzocwFLmalsIaVgbop+1w3nX0phAvS2gaXnsHCSHj+o1+68fctCF5HAvh IuJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NO9Rpc7g; 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=sHddNb2bjzvyo+gBU2yRERxBZzsiaNj68mPl4oXSmTQ=; b=eAkMKr2Q/IRvnurKadFvtKxoY7jfhPbVlDAGNnG4RhAUQdbpB21jYQdYqr8WsrPEDt K9xA/dGgbcvq+7NLBYKrm4OldoDwngXV/o2dPu13P403GjyAJvPaahbf86KNZX0aZvLT YCUfxPvXKzqQhfINNgS88MaXB9kCJkOa5KHig= 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=sHddNb2bjzvyo+gBU2yRERxBZzsiaNj68mPl4oXSmTQ=; b=Zhz3yFNzk0t0JiZQkTL551WiuHoUPxXmleb4Ss+kqMdHgaKi7S0DuKicqn7D7UV74o D7XdmrH46eSSH768U1Lep0VqxYafj/0YvacrMkEeRFGR1Z3RWqghDKfMMLNoGMlIkew1 rwuvpbHHwdZ+CTgr2wgS8/9InSnQ5YqJK29/UJtsMMRQK1PA85N2Cn62KgGBUrh01vju FJsgakgiYSjFXavvn7tgxajKXOoc7qMKIohAAGb0Bz6lqNstT458SR4t8ikW5hcp/yiP VUdJFKxk8AtwmApZqCD1XJswscLn0vAdWCsRKxq73igWGy855yWI9eAzSlbS7Q/nUuuz HXRg== X-Gm-Message-State: ACrzQf00VXB2S+8axn6BmCaooKScE1XQ8kHuRrd30NE5Rh3l5SI9c5GA ygUd7MLE1De8lqBdzneY/oG+3Yoi X-Google-Smtp-Source: AMsMyM4EOYe4KHmoOYKSc1SCnUZYoFA8DnCG1YUdPnKR+sEZYHDZt+ySYiUbgufZ5mE4BCPSR3AIHQ== X-Received: by 2002:a17:907:d07:b0:72e:ec79:ad0f with SMTP id gn7-20020a1709070d0700b0072eec79ad0fmr3343184ejc.296.1666112540181; Tue, 18 Oct 2022 10:02:20 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:430c:b0:457:99eb:cba9 with SMTP id m12-20020a056402430c00b0045799ebcba9ls2926536edc.0.-pod-prod-gmail; Tue, 18 Oct 2022 10:02:19 -0700 (PDT) X-Received: by 2002:a05:6402:298d:b0:451:5fc5:d423 with SMTP id eq13-20020a056402298d00b004515fc5d423mr3482443edb.102.1666112538868; Tue, 18 Oct 2022 10:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666112538; cv=none; d=google.com; s=arc-20160816; b=hq/Nom81z36f4t7F8/Y06X/avy9VC8hYBR6S7ja7/5h5DMtE8eGFxHpi3a228/b/c7 NrZ571Ou3p/y8Lk1Z8AT4pc2aEpcU72u+rnLGZfc7ueMTs3krndhz/8+K1JiMytzfj8s /4yMtKIu9dC8xlyhovGVjXFh5TeA4fHPwOReunqsjjjRFzM71a2mXyoFcxu3ESqjsngL zQNdLtyZthNo6Mc2MCM2FWpD7E9D6X7vLGCxi6Y5uP3OnoP+ijcabTXux3eG81MnBlsy HiC4tQHxoQhe4p7rQ8484XpyMD5wX5e+D6cqThlDpyyn1GLoAZPFn8TWBXf40B67D51z nZKA== 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=EvNFUcsg6CZf4Twcacgk4/TpKqaK+NR+PSADwLx1Qqk=; b=A5Ibn7yrIEJtFqiI9hlOe8ApUcRI1BISth/R8tnDV+CWdKNF5hwipMYDLTKeojZ4vu WahFvx3D88hIsUuE+AZyOz4fiPwE3kqDtPCQWDEkjIl1NIA2xCnRIAsei8gXLNqjYSrI ikSwhFYwiN4alMjxG/x+pSVys/wUQvE+xJVDPs6eMrJiDrsF7/75v8NiynCeEAiIAi94 WUTBCPFNMqjgcek0DngZgqSTkSEvQxU3KGFn9yRIIR3S3EemNR/hkFNW3bEjSHrUfWI7 25qhSLLQU9HFGsQlHDvFeGUYlUDbx7mlFkd1MITx2pg/RCf0pMSc0hqlsl3VrlW1kid6 wpLw== 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 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 y5-20020a170906558500b0078d44f86b15sor5773141ejp.31.2022.10.18.10.02.18 for (Google Transport Security); Tue, 18 Oct 2022 10:02:18 -0700 (PDT) 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: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-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NO9Rpc7g; 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(). 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 */