linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mtd: nand: remove STANDALONE compile mode of nand_ecc
@ 2018-03-09 13:03 Masahiro Yamada
  2018-03-18 21:15 ` Boris Brezillon
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2018-03-09 13:03 UTC (permalink / raw)
  To: linux-mtd, Boris Brezillon
  Cc: Masahiro Yamada, Cyrille Pitchen, linux-kernel, Marek Vasut,
	Brian Norris, Peter Pan, Richard Weinberger, David Woodhouse,
	Boris Brezillon, Krzysztof Kozlowski, Tony Lindgren

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 <yamada.masahiro@socionext.com>
---

 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 <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
@@ -44,17 +35,6 @@
 #include <linux/mtd/rawnand.h>
 #include <linux/mtd/nand_ecc.h>
 #include <asm/byteorder.h>
-#else
-#include <stdint.h>
-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
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mtd: nand: remove STANDALONE compile mode of nand_ecc
  2018-03-09 13:03 [PATCH] mtd: nand: remove STANDALONE compile mode of nand_ecc Masahiro Yamada
@ 2018-03-18 21:15 ` Boris Brezillon
  0 siblings, 0 replies; 2+ messages in thread
From: Boris Brezillon @ 2018-03-18 21:15 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: linux-mtd, Boris Brezillon, Cyrille Pitchen, linux-kernel,
	Marek Vasut, Brian Norris, Peter Pan, Richard Weinberger,
	David Woodhouse, Krzysztof Kozlowski, Tony Lindgren

On Fri,  9 Mar 2018 22:03:52 +0900
Masahiro Yamada <yamada.masahiro@socionext.com> 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 <yamada.masahiro@socionext.com>
> ---
> 
>  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 <linux/types.h>
>  #include <linux/kernel.h>
>  #include <linux/module.h>
> @@ -44,17 +35,6 @@
>  #include <linux/mtd/rawnand.h>
>  #include <linux/mtd/nand_ecc.h>
>  #include <asm/byteorder.h>
> -#else
> -#include <stdint.h>
> -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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-18 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-09 13:03 [PATCH] mtd: nand: remove STANDALONE compile mode of nand_ecc Masahiro Yamada
2018-03-18 21:15 ` Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).