From 081dc658cba1982deaeee8e5745d54826b04db38 Mon Sep 17 00:00:00 2001 From: Debarshi Dutta Date: Tue, 29 Aug 2017 12:38:53 +0530 Subject: gpu: nvgpu: protect header inclusion in __kernel__ The header in file include/nvgpu/atomic need to be included inside __kernel__ Change-Id: Iac65ec570cdf6ba3bdf0149e4648f9f64cd23b00 Signed-off-by: Debarshi Dutta Reviewed-on: https://git-master.nvidia.com/r/1547537 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/include/nvgpu/atomic.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/include/nvgpu/atomic.h b/drivers/gpu/nvgpu/include/nvgpu/atomic.h index 393a9d35..019a8a20 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/atomic.h +++ b/drivers/gpu/nvgpu/include/nvgpu/atomic.h @@ -16,7 +16,9 @@ #ifndef __NVGPU_ATOMIC_H__ #define __NVGPU_ATOMIC_H__ +#ifdef __KERNEL__ #include +#endif #define NVGPU_ATOMIC_INIT(i) __nvgpu_atomic_init(i) #define NVGPU_ATOMIC64_INIT(i) __nvgpu_atomic64_init(i) -- cgit v1.2.2