From patchwork Fri Mar 9 13:03:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 131101 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp970219lja; Fri, 9 Mar 2018 05:04:51 -0800 (PST) X-Google-Smtp-Source: AG47ELtX6whEHdnEQyb4nnLEQolcSr+Zo4F1a/JxYqCaIurQfQcozlLPSPPS/yYH9UMrUL4lzjTG X-Received: by 10.101.97.139 with SMTP id c11mr23974255pgv.449.1520600691081; Fri, 09 Mar 2018 05:04:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520600691; cv=none; d=google.com; s=arc-20160816; b=l6APHDpfXNxY4vtFSFS69743sRAWiaEuPmh9QGSoT4Qm6toe4N7cyGuyTPZZXL63In aMNS14AlDrhF/YekMcwCEkdU2H0LP9ZVF2OF51A3EQYL7atg+C6B9TKeRB0LVRvjl3/g sFDRQDk0eN41ifgtR6hQyrTDjmfjVlU2kXgznv34US1t5SUSaDJgtuoJSZTVFV5mhz8W P46LZGE2dFMSJMwh5VYA8djtnUAiMf8K9GyVfNHQbJ8nqCLMHothZiaLedmTSMS+L26C DHkEHaV9RmUgDlWJkB7QYXtvJjXc6XFDYq2lQVTtZDqhlobU/LCcxSowb0mSEaIPn36E diKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-filter:dkim-signature:arc-authentication-results; bh=gcz/zU4WdQb9ldd3ylEYagCRPy2zFxuslVYqd86kTJI=; b=R7KG2Fs3bNBWWkSXIBfTVjS1CxKRT+ZkoukZBwmANVrY6tRrOrgBUY4EZnKwfNhfO/ YWMMgeMScUOVZHWLRaeYMNBm9qHFAkwYJ6v8qEJpaejBsyV8DojXqLgFteJuFJ/LsUrs hBvnrFNjSoc2Mt/BjxHahekeCh1n09npPuOMxlJ0QQfRlnIrQtSto7S7Q8nOd/aLTweD gWgeRkenQM+B8hM999EMieDTivz1eON7TYh1T2O+sPhdewIIuLHqD3fqf980LEEmmsph ogp197JXITKs7qWIDfkrCw1rmgxOLR/95DZWJXGjmamjZh5ESp9v+W7BAkq27eb7dmTG 2KlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=sxz9nchX; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=skdq2XWb; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id z1si865922pff.120.2018.03.09.05.04.50 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Mar 2018 05:04:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=sxz9nchX; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=skdq2XWb; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=gcz/zU4WdQb9ldd3ylEYagCRPy2zFxuslVYqd86kTJI=; b=sxz 9nchXDo7BVTonNW4bonsOqE2vWlzxoDBInEICeRou2kCzAVTkjrA7x/R39dfKcneEJZjB7JHKDek3 22BxhcEJwErCvnWEb2h3qj/1NT+6CAxlRtCcWkEFAimAN2pxd1sCayYvHxJIdppLQqH3OGCS5yo+U 0lRiqlCKG4/Ik7CewcCom5bodwUyAcAmWTG+0aAzcHHuQC5Mvc1FKFBoXgzWX3Ii0m958hrb1FjR/ jWS5cOwnPR0JRTkd6ruy+3oXkibI5UEyECIldngY23JO4XEsT3QmfUiZM1d0wQeZ/Rbs9p8wdIhFM ZdpfUWDDTrkUL/cEBafWkAOf8xKZB1Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1euHhK-0005kB-93; Fri, 09 Mar 2018 13:04:34 +0000 Received: from conuserg-10.nifty.com ([210.131.2.77]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euHhF-0005h2-BH for linux-mtd@lists.infradead.org; Fri, 09 Mar 2018 13:04:31 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id w29D40EA010886; Fri, 9 Mar 2018 22:04:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w29D40EA010886 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1520600643; bh=jZ2+8pSTRrzBt7fCD0OmYoo6yAmSCESJSF5e6I0J2fA=; h=From:To:Cc:Subject:Date:From; b=skdq2XWbMAylJijj3mg6EI8kzFDrqdsTlmmj1a6g9rNNQhqBB03Zo9pCuwkgXKAuh b6QVeUkUQnbxSlUvFdwURS3bbRUpAC1dCTKK12LC2Tu307lluCBOJT/45gb61+1Mnk d8zJzyFHegNk0LJ9q/fy7u2O4BS+7w1cDIIv/iw4+XnyMinT0cI0WAebtMH5MCnbId 6I28Fu9LQXyIxmw752zwbOI1DROuUda5UdAytxYwB2O+1HMAS+dl6W99GFr/7M/fW9 7ar/WZdgS39rW+8hsgeF+kiLunaOMlefimht66Qut/pObrEYL3syEi2u4559s0UJCH DQP4GJQtA8NOg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org, Boris Brezillon Subject: [PATCH] mtd: nand: remove STANDALONE compile mode of nand_ecc Date: Fri, 9 Mar 2018 22:03:52 +0900 Message-Id: <1520600632-24955-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180309_050429_946779_F1332426 X-CRM114-Status: GOOD ( 10.02 ) X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [210.131.2.77 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , Tony Lindgren , Richard Weinberger , Boris Brezillon , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Masahiro Yamada , Cyrille Pitchen , Brian Norris , David Woodhouse , Peter Pan MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This file can not be built independently any more. We would have to bring in more to resolve mtd_to_nand(mtd)->ecc.size, for example. It is difficult to notice a breakage since nobody compiles this mode. It is not worth fixing or maintaining in my opinion. Remove. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/nand_ecc.c | 20 -------------------- 1 file changed, 20 deletions(-) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/nand/raw/nand_ecc.c b/drivers/mtd/nand/raw/nand_ecc.c index 3630f0f..8e132ed 100644 --- a/drivers/mtd/nand/raw/nand_ecc.c +++ b/drivers/mtd/nand/raw/nand_ecc.c @@ -28,15 +28,6 @@ * */ -/* - * The STANDALONE macro is useful when running the code outside the kernel - * e.g. when running the code in a testbed or a benchmark program. - * When STANDALONE is used, the module related macros are commented out - * as well as the linux include files. - * Instead a private definition of mtd_info is given to satisfy the compiler - * (the code does not use mtd_info, so the code does not care) - */ -#ifndef STANDALONE #include #include #include @@ -44,17 +35,6 @@ #include #include #include -#else -#include -struct mtd_info; -#define EXPORT_SYMBOL(x) /* x */ - -#define MODULE_LICENSE(x) /* x */ -#define MODULE_AUTHOR(x) /* x */ -#define MODULE_DESCRIPTION(x) /* x */ - -#define pr_err printf -#endif /* * invparity is a 256 byte table that contains the odd parity