diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-06-21 19:35:49 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-06-25 15:04:35 -0400 |
commit | 8569be52c2bf28357ab3c045df8113a8bce07350 (patch) | |
tree | f693618d2b0a498788deb08b01a2fb9801ab896b /drivers/gpu | |
parent | a012527dbde6308bc158d17cace96d2a2e9fdcfd (diff) |
gpu: nvgpu: posix: Define __user to nothing in POSIX
This __user field is used to annotate certain varibles in Linux.
So define it in the POSIX headers so that common code can compile
even with these Linux annotations.
JIRA NVGPU-525
Change-Id: I417436ac40ed12f6551da600d8824f9bd7c191af
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1757489
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/posix/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/posix/types.h b/drivers/gpu/nvgpu/include/nvgpu/posix/types.h index 71bac1d0..4b525923 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/posix/types.h +++ b/drivers/gpu/nvgpu/include/nvgpu/posix/types.h | |||
@@ -170,6 +170,7 @@ static inline unsigned long __hweight64(uint64_t x) | |||
170 | #define __must_check | 170 | #define __must_check |
171 | #define __maybe_unused __attribute__((unused)) | 171 | #define __maybe_unused __attribute__((unused)) |
172 | #define __iomem | 172 | #define __iomem |
173 | #define __user | ||
173 | #define unlikely | 174 | #define unlikely |
174 | #define likely | 175 | #define likely |
175 | 176 | ||