Skip to content

Commit

Permalink
uapi: Fix type used in ioctl parameter structures
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felix Kuehling authored and Oded Gabbay committed Feb 7, 2018
1 parent 2610343 commit a110244
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/uapi/linux/kfd_ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit a110244

Please sign in to comment.