public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@bootlin.com>
To: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: linux-mtd@lists.infradead.org,
	Boris Brezillon <boris.brezillon@free-electrons.com>,
	Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>,
	linux-kernel@vger.kernel.org, Marek Vasut <marek.vasut@gmail.com>,
	Brian Norris <computersforpeace@gmail.com>,
	Peter Pan <peterpandong@micron.com>,
	Richard Weinberger <richard@nod.at>,
	David Woodhouse <dwmw2@infradead.org>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH] mtd: nand: remove STANDALONE compile mode of nand_ecc
Date: Sun, 18 Mar 2018 22:15:23 +0100	[thread overview]
Message-ID: <20180318221523.1b47aefc@bbrezillon> (raw)
In-Reply-To: <1520600632-24955-1-git-send-email-yamada.masahiro@socionext.com>

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

      reply	other threads:[~2018-03-18 21:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180318221523.1b47aefc@bbrezillon \
    --to=boris.brezillon@bootlin.com \
    --cc=boris.brezillon@free-electrons.com \
    --cc=computersforpeace@gmail.com \
    --cc=cyrille.pitchen@wedev4u.fr \
    --cc=dwmw2@infradead.org \
    --cc=krzk@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=marek.vasut@gmail.com \
    --cc=peterpandong@micron.com \
    --cc=richard@nod.at \
    --cc=tony@atomide.com \
    --cc=yamada.masahiro@socionext.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox