diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-11-03 10:10:59 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-06 14:19:57 -0500 |
commit | 69c301a99201d6945fb3bd4df821aedf6d590d46 (patch) | |
tree | 43380ae8eca99263ee28c50731f2dca9671455b9 /drivers/gpu/nvgpu/gk20a | |
parent | 4a3c14000ec96ed56a69c32f46af765d7312d860 (diff) |
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 <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1592603
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ | |||
27 | /* TODO: To be removed when work_struct update_fn_work is moved out of common code */ | 27 | /* TODO: To be removed when work_struct update_fn_work is moved out of common code */ |
28 | #include <linux/workqueue.h> | 28 | #include <linux/workqueue.h> |
29 | 29 | ||
30 | #include <linux/stacktrace.h> | ||
31 | #include <nvgpu/list.h> | 30 | #include <nvgpu/list.h> |
32 | |||
33 | #include <nvgpu/lock.h> | 31 | #include <nvgpu/lock.h> |
34 | #include <nvgpu/timers.h> | 32 | #include <nvgpu/timers.h> |
35 | #include <nvgpu/cond.h> | 33 | #include <nvgpu/cond.h> |
@@ -165,6 +163,9 @@ enum channel_gk20a_ref_action_type { | |||
165 | }; | 163 | }; |
166 | 164 | ||
167 | #if GK20A_CHANNEL_REFCOUNT_TRACKING | 165 | #if GK20A_CHANNEL_REFCOUNT_TRACKING |
166 | |||
167 | #include <linux/stacktrace.h> | ||
168 | |||
168 | struct channel_gk20a_ref_action { | 169 | struct channel_gk20a_ref_action { |
169 | enum channel_gk20a_ref_action_type type; | 170 | enum channel_gk20a_ref_action_type type; |
170 | s64 timestamp_ms; | 171 | s64 timestamp_ms; |