diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/atomic.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
16 | #ifndef __NVGPU_ATOMIC_H__ | 16 | #ifndef __NVGPU_ATOMIC_H__ |
17 | #define __NVGPU_ATOMIC_H__ | 17 | #define __NVGPU_ATOMIC_H__ |
18 | 18 | ||
19 | #ifdef __KERNEL__ | ||
19 | #include <nvgpu/linux/atomic.h> | 20 | #include <nvgpu/linux/atomic.h> |
21 | #endif | ||
20 | 22 | ||
21 | #define NVGPU_ATOMIC_INIT(i) __nvgpu_atomic_init(i) | 23 | #define NVGPU_ATOMIC_INIT(i) __nvgpu_atomic_init(i) |
22 | #define NVGPU_ATOMIC64_INIT(i) __nvgpu_atomic64_init(i) | 24 | #define NVGPU_ATOMIC64_INIT(i) __nvgpu_atomic64_init(i) |