All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mtd: nand: ecc: mxic: Fix compile test issue
@ 2022-03-14 15:23 Miquel Raynal
  2022-03-15  9:53 ` Miquel Raynal
  0 siblings, 1 reply; 2+ messages in thread
From: Miquel Raynal @ 2022-03-14 15:23 UTC (permalink / raw)
  To: Richard Weinberger, Vignesh Raghavendra, Tudor Ambarus,
	Pratyush Yadav, Michael Walle, linux-mtd
  Cc: Miquel Raynal, kernel test robot

Avoid random build errors with architectures which do not select
HAS_IOMEM by depending on it in Kconfig.

This fixes the following warning:

/home/mraynal/0day/gcc-11.2.0-nolibc/s390-linux/bin/s390-linux-ld:
drivers/mtd/nand/ecc-mxic.o: in function `mxic_ecc_probe':
ecc-mxic.c:(.text+0x2244): undefined reference to `devm_platform_ioremap_resource'

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 drivers/mtd/nand/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 8431292ff49d..9b249826ef93 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -48,6 +48,7 @@ config MTD_NAND_ECC_SW_BCH
 
 config MTD_NAND_ECC_MXIC
 	bool "Macronix external hardware ECC engine"
+	depends on HAS_IOMEM
 	select MTD_NAND_ECC
 	help
 	  This enables support for the hardware ECC engine from Macronix.
-- 
2.27.0


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH] mtd: nand: ecc: mxic: Fix compile test issue
  2022-03-14 15:23 [PATCH] mtd: nand: ecc: mxic: Fix compile test issue Miquel Raynal
@ 2022-03-15  9:53 ` Miquel Raynal
  0 siblings, 0 replies; 2+ messages in thread
From: Miquel Raynal @ 2022-03-15  9:53 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Tudor Ambarus, Pratyush Yadav, Michael Walle, linux-mtd
  Cc: kernel test robot

On Mon, 2022-03-14 at 15:23:36 UTC, Miquel Raynal wrote:
> Avoid random build errors with architectures which do not select
> HAS_IOMEM by depending on it in Kconfig.
> 
> This fixes the following warning:
> 
> /home/mraynal/0day/gcc-11.2.0-nolibc/s390-linux/bin/s390-linux-ld:
> drivers/mtd/nand/ecc-mxic.o: in function `mxic_ecc_probe':
> ecc-mxic.c:(.text+0x2244): undefined reference to `devm_platform_ioremap_resource'
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next.

Miquel

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

end of thread, other threads:[~2022-03-15  9:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-14 15:23 [PATCH] mtd: nand: ecc: mxic: Fix compile test issue Miquel Raynal
2022-03-15  9:53 ` Miquel Raynal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.