mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: protect header inclusion in __kernel__
The header <nvgpu/linux/atomic.h> in file include/nvgpu/atomic need to be included inside __kernel__ Change-Id: Iac65ec570cdf6ba3bdf0149e4648f9f64cd23b00 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1547537 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a199baede7
commit
081dc658cb
@@ -16,7 +16,9 @@
|
||||
#ifndef __NVGPU_ATOMIC_H__
|
||||
#define __NVGPU_ATOMIC_H__
|
||||
|
||||
#ifdef __KERNEL__
|
||||
#include <nvgpu/linux/atomic.h>
|
||||
#endif
|
||||
|
||||
#define NVGPU_ATOMIC_INIT(i) __nvgpu_atomic_init(i)
|
||||
#define NVGPU_ATOMIC64_INIT(i) __nvgpu_atomic64_init(i)
|
||||
|
||||
Reference in New Issue
Block a user