From 8c01dde67505e8b872ffaa02e25579a693106332 Mon Sep 17 00:00:00 2001 From: SamarV-121 Date: Tue, 10 Aug 2021 14:14:46 +0530 Subject: [PATCH] kernel: Fix compilation after disabling tracing Change-Id: Ieeb06ec47ad0ffd795d85db0de811ba7eaec2998 --- arch/arm64/configs/exynos8895-dream2lte_defconfig | 1 + arch/arm64/configs/exynos8895-dreamlte_defconfig | 1 + arch/arm64/configs/exynos8895-greatlte_defconfig | 1 + drivers/thermal/thermal_core.c | 1 + drivers/trace/exynos-ss.c | 2 ++ 5 files changed, 6 insertions(+) diff --git a/arch/arm64/configs/exynos8895-dream2lte_defconfig b/arch/arm64/configs/exynos8895-dream2lte_defconfig index 757aed2afa07..5b677f98634b 100644 --- a/arch/arm64/configs/exynos8895-dream2lte_defconfig +++ b/arch/arm64/configs/exynos8895-dream2lte_defconfig @@ -5522,3 +5522,4 @@ CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y CONFIG_LIBFDT=y # CONFIG_SG_SPLIT is not set CONFIG_ARCH_HAS_SG_CHAIN=y +CONFIG_EXYNOS_SNAPSHOT_MINIMIZED_MODE=y diff --git a/arch/arm64/configs/exynos8895-dreamlte_defconfig b/arch/arm64/configs/exynos8895-dreamlte_defconfig index 35d8e2161e8b..93b9be405f69 100644 --- a/arch/arm64/configs/exynos8895-dreamlte_defconfig +++ b/arch/arm64/configs/exynos8895-dreamlte_defconfig @@ -5523,3 +5523,4 @@ CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y CONFIG_LIBFDT=y # CONFIG_SG_SPLIT is not set CONFIG_ARCH_HAS_SG_CHAIN=y +CONFIG_EXYNOS_SNAPSHOT_MINIMIZED_MODE=y diff --git a/arch/arm64/configs/exynos8895-greatlte_defconfig b/arch/arm64/configs/exynos8895-greatlte_defconfig index 7acc6c357165..6a78a866c1f3 100644 --- a/arch/arm64/configs/exynos8895-greatlte_defconfig +++ b/arch/arm64/configs/exynos8895-greatlte_defconfig @@ -5523,3 +5523,4 @@ CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y CONFIG_LIBFDT=y # CONFIG_SG_SPLIT is not set CONFIG_ARCH_HAS_SG_CHAIN=y +CONFIG_EXYNOS_SNAPSHOT_MINIMIZED_MODE=y diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 7f64b7e528f2..8654d1845269 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -39,6 +39,7 @@ #include #include #include +#include #define CREATE_TRACE_POINTS #include diff --git a/drivers/trace/exynos-ss.c b/drivers/trace/exynos-ss.c index 6f08642947e8..e3bdfdbf3220 100644 --- a/drivers/trace/exynos-ss.c +++ b/drivers/trace/exynos-ss.c @@ -354,6 +354,7 @@ struct exynos_ss_log { #endif }; +#ifdef CONFIG_TRACING_SUPPORT #define ESS_SAVE_STACK_TRACE_CPU(xxx) \ do { \ struct stack_trace t = { \ @@ -375,6 +376,7 @@ struct exynos_ss_log { }; \ save_stack_trace(&t); \ } while (0) +#endif struct exynos_ss_log_idx { atomic_t task_log_idx[ESS_NR_CPUS]; -- 2.20.1