From 8569be52c2bf28357ab3c045df8113a8bce07350 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Thu, 21 Jun 2018 16:35:49 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1757489 GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta Reviewed-by: Bharat Nihalani Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/posix/types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers') 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) #define __must_check #define __maybe_unused __attribute__((unused)) #define __iomem +#define __user #define unlikely #define likely -- cgit v1.2.2