diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-09-25 18:23:40 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-27 18:07:10 -0400 |
commit | d031d28d4143e4e9d56dc5aac42852279ed3bf7d (patch) | |
tree | 312529b23b9a73b6f76a69e4c7983fab15398cad /drivers/gpu/nvgpu/include | |
parent | 30b571e31c7f8ee26fc58864272bc7c7e083d377 (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.h | 8 |
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; | |||
43 | typedef unsigned int u32; | 43 | typedef unsigned int u32; |
44 | typedef unsigned long long u64; | 44 | typedef unsigned long long u64; |
45 | 45 | ||
46 | typedef char s8; | 46 | typedef signed char s8; |
47 | typedef short s16; | 47 | typedef signed short s16; |
48 | typedef int s32; | 48 | typedef signed int s32; |
49 | typedef long long s64; | 49 | typedef signed long long s64; |
50 | 50 | ||
51 | #define min_t(type, a, b) \ | 51 | #define min_t(type, a, b) \ |
52 | ({ \ | 52 | ({ \ |