Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3430122pxb; Mon, 30 Aug 2021 01:48:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwesfyFnweFQ/0lwfNOca9df/v8q1x0Bl90EcPvPcTf73/0sExyi2BrbVQRq96tb0dnfcc8 X-Received: by 2002:a17:906:9a04:: with SMTP id ai4mr24754781ejc.453.1630313334173; Mon, 30 Aug 2021 01:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630313334; cv=none; d=google.com; s=arc-20160816; b=QlmlxwM46QlMV2oVAypE/fQgme77z9AHjp8gCU0wA7urrho7ucL6GJtqhbXdFoCXVS 1QRSpLGOzmPYn4cFnii3K+EWAXtZxDhnvpmjhEZK1bcUepwNU+ibHAS5cWJwmWHSJ6Ry w7eJnnqldczJQ4U5G91DfuRbekTrkhR6uLxIYh9xsWtJX2LvKiZ522KiOOYsqlsvREJa 6MxdK1fepMzK1ih0iB8qoGaHbPPULJkefzpfdTLfGwM7N9tPciA2znab+qWWsE/E6Ws9 A8G7z+h/AgEKs2KHx4zgW6CsBolTiF6E22LKh7Kp1iispDZZt0pI3/pCCs8SkFPiDvaD ps8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=SkYkdqfA4DHkbtQnE68Myv1PuL2lsqn5jJKRrxWE0NI=; b=lla28PbIjcdV253U5GtPhITFU7Cxtjj1HZi6IUJs4R7U3lIu18Bwwt6W42mfZx6G3+ 3E/dQaA3okeGZ93eXJkMaK2gn39oqik6SFaY26HvDs9hnNPyMfKsNMtOuSvoKeuLxnIP EAU+6hfeLT8UKlnjbDti9UngdOq/2jCJPBElHI8nY61o5PenEcE0DY6Fde/wojUvKfCe lLIc8oy3ILtftB0/TeGn7/oBFjaoYBld5VzcpOkcn2tXOGjYmZi/Yxs4iYCsmJf0/iWp 0xfz5soxJmBrJjhIQvB2IF9FGOlFEb0msC9c4YJqfnep7YLnWbR2wMC6JBydxeCBLYg2 dVPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si13866086eje.713.2021.08.30.01.48.29; Mon, 30 Aug 2021 01:48:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234824AbhH3Ip5 (ORCPT + 99 others); Mon, 30 Aug 2021 04:45:57 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:18986 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235013AbhH3Ipv (ORCPT ); Mon, 30 Aug 2021 04:45:51 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4GykLP5rC9zbkb9; Mon, 30 Aug 2021 16:41:01 +0800 (CST) Received: from dggpemm500016.china.huawei.com (7.185.36.25) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 30 Aug 2021 16:44:55 +0800 Received: from huawei.com (10.67.174.117) by dggpemm500016.china.huawei.com (7.185.36.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Mon, 30 Aug 2021 16:44:55 +0800 From: "GONG, Ruiqi" To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra CC: , , Yi Yang , Wang Weiyang , Xiu Jianfeng Subject: [PATCH] mtd: Remove obsolete macros only used by the old nand_ecclayout struct Date: Mon, 30 Aug 2021 16:33:56 +0800 Message-ID: <20210830083356.31702-1-gongruiqi1@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.117] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500016.china.huawei.com (7.185.36.25) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All uses of MTD_MAX_{OOBFREE,ECCPOS}_ENTRIES_LARGE have been removed as commit ef5eeea6e911 ("mtd: nand: brcm: switch to mtd_ooblayout_ops") and commit aab616e31d1c ("mtd: kill the nand_ecclayout struct") replaced struct nand_ecclayout by the new mtd_ooblayout_ops interface. Remove these two macros therefore. Reported-by: Yi Yang Signed-off-by: GONG, Ruiqi --- include/linux/mtd/mtd.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 88227044fc86..f5e7dfc2e4e9 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -72,8 +72,6 @@ struct mtd_oob_ops { uint8_t *oobbuf; }; -#define MTD_MAX_OOBFREE_ENTRIES_LARGE 32 -#define MTD_MAX_ECCPOS_ENTRIES_LARGE 640 /** * struct mtd_oob_region - oob region definition * @offset: region offset -- 2.17.1