From: SamarV-121 Date: Tue, 10 Aug 2021 08:44:46 +0000 (+0530) Subject: kernel: Fix compilation after disabling tracing X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c55aa9df9c68c71e23affadf514e90bb5ba6ebc;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git kernel: Fix compilation after disabling tracing Change-Id: Ieeb06ec47ad0ffd795d85db0de811ba7eaec2998 --- diff --git a/arch/arm64/configs/exynos8895-dream2lte_defconfig b/arch/arm64/configs/exynos8895-dream2lte_defconfig index b6fccb1d1cc6..f8f1177408f7 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 6ff140cf7beb..8a5c5a8ceb9a 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 4c0c218ee54c..5089a9d2ab20 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];