9e13fb6708352759736b7180ea51c1d107546959
[openwrt/staging/mans0n.git] /
1 From cc1bc56fdc76a55bb8fae9a145a2e60bf22fb129 Mon Sep 17 00:00:00 2001
2 From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
3 Date: Tue, 30 Mar 2021 12:12:39 +0100
4 Subject: [PATCH] nvmem: rmem: fix undefined reference to memremap
5
6 Fix below error reporte by kernel test robot
7 rmem.c:(.text+0x14e): undefined reference to memremap
8 s390x-linux-gnu-ld: rmem.c:(.text+0x1b6): undefined reference to memunmap
9
10 Fixes: 5a3fa75a4d9c ("nvmem: Add driver to expose reserved memory as nvmem")
11 Reported-by: kernel test robot <lkp@intel.com>
12 Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
13 Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
14 Link: https://lore.kernel.org/r/20210330111241.19401-9-srinivas.kandagatla@linaro.org
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 ---
17 drivers/nvmem/Kconfig | 1 +
18 1 file changed, 1 insertion(+)
19
20 --- a/drivers/nvmem/Kconfig
21 +++ b/drivers/nvmem/Kconfig
22 @@ -272,6 +272,7 @@ config SPRD_EFUSE
23
24 config NVMEM_RMEM
25 tristate "Reserved Memory Based Driver Support"
26 + depends on HAS_IOMEM
27 help
28 This driver maps reserved memory into an nvmem device. It might be
29 useful to expose information left by firmware in memory.