[PATCH 17/25] uapi: Fix type used in ioctl parameter structures
Oded Gabbay
oded.gabbay at gmail.com
Mon Feb 12 09:41:01 UTC 2018
On Wed, Feb 7, 2018 at 3:32 AM, Felix Kuehling <Felix.Kuehling at amd.com> wrote:
> Use __u32 and __u64 instead of POSIX types that may not be defined
> in user mode builds.
>
> Signed-off-by: Felix Kuehling <Felix.Kuehling at amd.com>
> ---
> include/uapi/linux/kfd_ioctl.h | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
> index f4cab5b..111d73b 100644
> --- a/include/uapi/linux/kfd_ioctl.h
> +++ b/include/uapi/linux/kfd_ioctl.h
> @@ -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'
> --
> 2.7.4
>
This patch is:
Reviewed-by: Oded Gabbay <oded.gabbay at gmail.com>
More information about the amd-gfx
mailing list