uapi: Fix type used in ioctl parameter structures
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 7 Feb 2018 01:32:46 +0000 (20:32 -0500)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 7 Feb 2018 01:32:46 +0000 (20:32 -0500)
Use __u32 and __u64 instead of POSIX types that may not be defined
in user mode builds.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
include/uapi/linux/kfd_ioctl.h

index f4cab5b3ba9aaf3c78c7004665363aef89aa8d3b..111d73ba2d96fc71f8f0b499b6bbc787094415b6 100644 (file)
@@ -263,10 +263,10 @@ struct kfd_ioctl_get_tile_config_args {
 };
 
 struct kfd_ioctl_set_trap_handler_args {
-       uint64_t tba_addr;              /* to KFD */
-       uint64_t tma_addr;              /* to KFD */
-       uint32_t gpu_id;                /* to KFD */
-       uint32_t pad;
+       __u64 tba_addr;         /* to KFD */
+       __u64 tma_addr;         /* to KFD */
+       __u32 gpu_id;           /* to KFD */
+       __u32 pad;
 };
 
 #define AMDKFD_IOCTL_BASE 'K'