kernel: Fix compilation after disabling tracing
authorSamarV-121 <samarvispute121@pm.me>
Tue, 10 Aug 2021 08:44:46 +0000 (14:14 +0530)
committerivanmeler <i_ivan@windowslive.com>
Thu, 7 Apr 2022 07:04:18 +0000 (07:04 +0000)
Change-Id: Ieeb06ec47ad0ffd795d85db0de811ba7eaec2998

arch/arm64/configs/exynos8895-dream2lte_defconfig
arch/arm64/configs/exynos8895-dreamlte_defconfig
arch/arm64/configs/exynos8895-greatlte_defconfig
drivers/thermal/thermal_core.c
drivers/trace/exynos-ss.c

index b6fccb1d1cc6a72f9fb5f4da4f2c04775cfde653..f8f1177408f7ce211fc246bb0aa32f3bb2ea88c8 100644 (file)
@@ -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
index 6ff140cf7beb74d985f1bb60430211ed8002885b..8a5c5a8ceb9a3c985eb36746b5f47ab684108bce 100644 (file)
@@ -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
index 4c0c218ee54cd5216139d7d1df07a1e31af650b5..5089a9d2ab208e715a30816603d49b587394979a 100644 (file)
@@ -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
index 7f64b7e528f2bbe0b126d56c0c5ee0fc5be18057..8654d1845269c6636e1c6693388bb68561bff560 100644 (file)
@@ -39,6 +39,7 @@
 #include <net/netlink.h>
 #include <net/genetlink.h>
 #include <linux/suspend.h>
+#include <linux/cpu.h>
 
 #define CREATE_TRACE_POINTS
 #include <trace/events/thermal.h>
index 6f08642947e8acf00def06a349baa9ea9fe8fcb9..e3bdfdbf3220fc6ee34fd9f87fd98135fb2fa698 100644 (file)
@@ -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];