Ivan T. Ivanov 18aa25
From: Krzysztof Kozlowski <krzk@kernel.org>
Ivan T. Ivanov 18aa25
Date: Thu, 10 Sep 2020 17:41:49 +0200
Ivan T. Ivanov 18aa25
Subject: ARM: samsung: fix PM debug build with DEBUG_LL but !MMU
Ivan T. Ivanov 18aa25
MIME-Version: 1.0
Ivan T. Ivanov 18aa25
Content-Type: text/plain; charset=UTF-8
Ivan T. Ivanov 18aa25
Content-Transfer-Encoding: 8bit
Ivan T. Ivanov 18aa25
Git-commit: 7be0d19c751b02db778ca95e3274d5ea7f31891c
Ivan T. Ivanov 18aa25
Patch-mainline: v5.10-rc1
Ivan T. Ivanov 18aa25
References: git-fixes
Ivan T. Ivanov 18aa25
Ivan T. Ivanov 18aa25
Selecting CONFIG_SAMSUNG_PM_DEBUG (depending on CONFIG_DEBUG_LL) but
Ivan T. Ivanov 18aa25
without CONFIG_MMU leads to build errors:
Ivan T. Ivanov 18aa25
Ivan T. Ivanov 18aa25
  arch/arm/plat-samsung/pm-debug.c: In function ‘s3c_pm_uart_base’:
Ivan T. Ivanov 18aa25
  arch/arm/plat-samsung/pm-debug.c:57:2: error:
Ivan T. Ivanov 18aa25
    implicit declaration of function ‘debug_ll_addr’ [-Werror=implicit-function-declaration]
Ivan T. Ivanov 18aa25
Ivan T. Ivanov 18aa25
Fixes: 99b2fc2b8b40 ("ARM: SAMSUNG: Use debug_ll_addr() to get UART base address")
Ivan T. Ivanov 18aa25
Reported-by: kernel test robot <lkp@intel.com>
Ivan T. Ivanov 18aa25
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Ivan T. Ivanov 18aa25
Cc: <stable@vger.kernel.org>
Ivan T. Ivanov 18aa25
Link: https://lore.kernel.org/r/20200910154150.3318-1-krzk@kernel.org
Ivan T. Ivanov 18aa25
Ivan T. Ivanov 18aa25
Acked-by: Ivan T. Ivanov <iivanov@suse.de>
Ivan T. Ivanov 18aa25
---
Ivan T. Ivanov 18aa25
 arch/arm/plat-samsung/Kconfig |    1 +
Ivan T. Ivanov 18aa25
 1 file changed, 1 insertion(+)
Ivan T. Ivanov 18aa25
Ivan T. Ivanov 18aa25
--- a/arch/arm/plat-samsung/Kconfig
Ivan T. Ivanov 18aa25
+++ b/arch/arm/plat-samsung/Kconfig
Ivan T. Ivanov 18aa25
@@ -241,6 +241,7 @@ config SAMSUNG_PM_DEBUG
Ivan T. Ivanov 18aa25
 	depends on PM && DEBUG_KERNEL
Ivan T. Ivanov 18aa25
 	depends on PLAT_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210
Ivan T. Ivanov 18aa25
 	depends on DEBUG_EXYNOS_UART || DEBUG_S3C24XX_UART || DEBUG_S3C2410_UART
Ivan T. Ivanov 18aa25
+	depends on DEBUG_LL && MMU
Ivan T. Ivanov 18aa25
 	help
Ivan T. Ivanov 18aa25
 	  Say Y here if you want verbose debugging from the PM Suspend and
Ivan T. Ivanov 18aa25
 	  Resume code. See <file:Documentation/arm/samsung-s3c24xx/suspend.rst>