mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] nvmem: rmem: fix undefined reference to memremap
@ 2021-03-15 10:44 Srinivas Kandagatla
  2021-03-15 10:46 ` Nicolas Saenz Julienne
  0 siblings, 1 reply; 2+ messages in thread
From: Srinivas Kandagatla @ 2021-03-15 10:44 UTC (permalink / raw)
  To: srini, srinivas.kandagatla
  Cc: nsaenzjulienne, linux-kernel, kernel test robot

Fix below error reporte by kernel test robot
rmem.c:(.text+0x14e): undefined reference to memremap
s390x-linux-gnu-ld: rmem.c:(.text+0x1b6): undefined reference to memunmap

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
 drivers/nvmem/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
index 642ddc699fd1..dd2019006838 100644
--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -272,6 +272,7 @@ config SPRD_EFUSE
 
 config NVMEM_RMEM
 	tristate "Reserved Memory Based Driver Support"
+	depends on HAS_IOMEM
 	help
 	  This driver maps reserved memory into an nvmem device. It might be
 	  useful to expose information left by firmware in memory.
-- 
2.21.0


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

* Re: [PATCH] nvmem: rmem: fix undefined reference to memremap
  2021-03-15 10:44 [PATCH] nvmem: rmem: fix undefined reference to memremap Srinivas Kandagatla
@ 2021-03-15 10:46 ` Nicolas Saenz Julienne
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Saenz Julienne @ 2021-03-15 10:46 UTC (permalink / raw)
  To: Srinivas Kandagatla, srini; +Cc: linux-kernel, kernel test robot

[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

On Mon, 2021-03-15 at 10:44 +0000, Srinivas Kandagatla wrote:
> Fix below error reporte by kernel test robot
> rmem.c:(.text+0x14e): undefined reference to memremap
> s390x-linux-gnu-ld: rmem.c:(.text+0x1b6): undefined reference to memunmap
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---

Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>

Thanks!

>  drivers/nvmem/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
> index 642ddc699fd1..dd2019006838 100644
> --- a/drivers/nvmem/Kconfig
> +++ b/drivers/nvmem/Kconfig
> @@ -272,6 +272,7 @@ config SPRD_EFUSE
>  
> 
>  config NVMEM_RMEM
>  	tristate "Reserved Memory Based Driver Support"
> +	depends on HAS_IOMEM
>  	help
>  	  This driver maps reserved memory into an nvmem device. It might be
>  	  useful to expose information left by firmware in memory.



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2021-03-15 10:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 10:44 [PATCH] nvmem: rmem: fix undefined reference to memremap Srinivas Kandagatla
2021-03-15 10:46 ` Nicolas Saenz Julienne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®