Skip to content

Commit

Permalink
uapi: fix linux/kfd_ioctl.h userspace compilation errors
Browse files Browse the repository at this point in the history
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: 0c119ab ("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>
  • Loading branch information
Dmitry V. Levin authored and Alex Deucher committed Nov 5, 2018
1 parent 6510223 commit aba1183
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
@@ -255,10 +255,10 @@ struct kfd_hsa_memory_exception_data {

/* hw exception data */
struct kfd_hsa_hw_exception_data {
uint32_t reset_type;
uint32_t reset_cause;
uint32_t memory_lost;
uint32_t gpu_id;
__u32 reset_type;
__u32 reset_cause;
__u32 memory_lost;
__u32 gpu_id;
};

/* Event data */

0 comments on commit aba1183

Please sign in to comment.