summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2018-09-25 18:23:40 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-27 18:07:10 -0400
commitd031d28d4143e4e9d56dc5aac42852279ed3bf7d (patch)
tree312529b23b9a73b6f76a69e4c7983fab15398cad /drivers/gpu/nvgpu/include
parent30b571e31c7f8ee26fc58864272bc7c7e083d377 (diff)
gpu: nvgpu: posix: Explicitly use signed types
Explicitly use signed types in the sXX typedefs. C implementations are apparently free to use either signed or unsigned as the default for types like char. JIRA NVGPU-1234 Change-Id: I0a37025b42d0ecb42ca90f29d3c3b70cf8cc807d Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1846179 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: Philip Elcan <pelcan@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/posix/types.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/posix/types.h b/drivers/gpu/nvgpu/include/nvgpu/posix/types.h
index 97686eec..12078b94 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/posix/types.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/posix/types.h
@@ -43,10 +43,10 @@ typedef unsigned short u16;
43typedef unsigned int u32; 43typedef unsigned int u32;
44typedef unsigned long long u64; 44typedef unsigned long long u64;
45 45
46typedef char s8; 46typedef signed char s8;
47typedef short s16; 47typedef signed short s16;
48typedef int s32; 48typedef signed int s32;
49typedef long long s64; 49typedef signed long long s64;
50 50
51#define min_t(type, a, b) \ 51#define min_t(type, a, b) \
52 ({ \ 52 ({ \