From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1exfee-0002qo-UP for linux-mtd@lists.infradead.org; Sun, 18 Mar 2018 21:15:50 +0000 Date: Sun, 18 Mar 2018 22:15:23 +0100 From: Boris Brezillon To: Masahiro Yamada Cc: linux-mtd@lists.infradead.org, Boris Brezillon , Cyrille Pitchen , linux-kernel@vger.kernel.org, Marek Vasut , Brian Norris , Peter Pan , Richard Weinberger , David Woodhouse , Krzysztof Kozlowski , Tony Lindgren Subject: Re: [PATCH] mtd: nand: remove STANDALONE compile mode of nand_ecc Message-ID: <20180318221523.1b47aefc@bbrezillon> In-Reply-To: <1520600632-24955-1-git-send-email-yamada.masahiro@socionext.com> References: <1520600632-24955-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 9 Mar 2018 22:03:52 +0900 Masahiro Yamada wrote: > 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. > Applied. Thanks, Boris > Signed-off-by: Masahiro Yamada > --- > > drivers/mtd/nand/raw/nand_ecc.c | 20 -------------------- > 1 file changed, 20 deletions(-) > > 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 -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com