]> asedeno.scripts.mit.edu Git - linux.git/commit
uapi: fix linux/kfd_ioctl.h userspace compilation errors
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 1 Nov 2018 11:03:08 +0000 (14:03 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 20:46:35 +0000 (15:46 -0500)
commitaba118389a6fb2ad7958de0f37b5869852bd38cf
treeec0fab048d3c84554334f6040b3b7c7bec85240e
parent651022382c7f8da46cb4872a545ee1da6d097d2a
uapi: fix linux/kfd_ioctl.h userspace compilation errors

Consistently use types provided by <linux/types.h> via <drm/drm.h>
to fix the following linux/kfd_ioctl.h userspace compilation errors:

/usr/include/linux/kfd_ioctl.h:250:2: error: unknown type name 'uint32_t'
  uint32_t reset_type;
/usr/include/linux/kfd_ioctl.h:251:2: error: unknown type name 'uint32_t'
  uint32_t reset_cause;
/usr/include/linux/kfd_ioctl.h:252:2: error: unknown type name 'uint32_t'
  uint32_t memory_lost;
/usr/include/linux/kfd_ioctl.h:253:2: error: unknown type name 'uint32_t'
  uint32_t gpu_id;

Fixes: 0c119abad7f0d ("drm/amd: Add kfd ioctl defines for hw_exception event")
Cc: <stable@vger.kernel.org> # v4.19
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
include/uapi/linux/kfd_ioctl.h