From 69c301a99201d6945fb3bd4df821aedf6d590d46 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Fri, 3 Nov 2017 07:10:59 -0700 Subject: gpu: nvgpu: protect stacktrace.h include with config struct stack_trace is protected with config GK20A_CHANNEL_REFCOUNT_TRACKING and hence protect linux/stacktrace.h header include in gk20a/channel_gk20a.h with same config Jira NVGPU-259 Change-Id: I365a4faa7eb071dd559e9b27fe03377dede7484d Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1592603 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h index cdf75a9a..762daea9 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h @@ -27,9 +27,7 @@ /* TODO: To be removed when work_struct update_fn_work is moved out of common code */ #include -#include #include - #include #include #include @@ -165,6 +163,9 @@ enum channel_gk20a_ref_action_type { }; #if GK20A_CHANNEL_REFCOUNT_TRACKING + +#include + struct channel_gk20a_ref_action { enum channel_gk20a_ref_action_type type; s64 timestamp_ms; -- cgit v1.2.2