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>
Tue, 29 Mar 2022 16:30:10 +0000 (16:30 +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 757aed2afa07d84d8d351ad48bfabdf2c2187241..5b677f98634b43cd245647fb99e2316ef2e75ab3 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 35d8e2161e8b916a65d30ee8533f8c97a9523d61..93b9be405f69c15dd97f80acad5d694e7426f51e 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 7acc6c35716594e218d32d3e32ce71ebc3d446fa..6a78a866c1f394066307ca63dc3ca36e137a0ff7 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];