From: Sascha Hauer <s.hauer@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] fixup! mtd: nand: move to drivers/mtd/nand/raw/
Date: Thu, 25 Apr 2024 09:41:56 +0200 [thread overview]
Message-ID: <ZioJRHUYQyo3x3bm@pengutronix.de> (raw)
In-Reply-To: <20240424064156.3609113-1-a.fatoum@pengutronix.de>
On Wed, Apr 24, 2024 at 08:41:56AM +0200, Ahmad Fatoum wrote:
> mtd: nand: align IS_ENABLED(symbol) for header stub with Makefile
>
> drivers/mtd/nand/Makefile builds nand-bb.o when CONFIG_MTD_NAND_CORE
> is defined. We need to use the same symbol in the header to avoid
> breakage when CONFIG_MTD_RAW_NAND is deselected.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> include/nand.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Sascha
>
> diff --git a/include/nand.h b/include/nand.h
> index 84f5a9671410..4fb52e9f82d5 100644
> --- a/include/nand.h
> +++ b/include/nand.h
> @@ -4,7 +4,7 @@
>
> struct nand_bb;
>
> -#ifdef CONFIG_MTD_RAW_NAND
> +#ifdef CONFIG_MTD_NAND_CORE
> int dev_add_bb_dev(const char *filename, const char *name);
> int dev_remove_bb_dev(const char *name);
> struct cdev *mtd_add_bb(struct mtd_info *mtd, const char *name);
> --
> 2.39.2
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2024-04-25 7:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-24 6:41 Ahmad Fatoum
2024-04-25 7:41 ` Sascha Hauer [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=ZioJRHUYQyo3x3bm@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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