Patch "uapi: fix linux/kfd_ioctl.h userspace compilation errors" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
uapi: fix linux/kfd_ioctl.h userspace compilation errors
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
uapi-fix-linux-kfd_ioctl.h-userspace-compilation-errors.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Feb 1 13:45:42 CET 2018
From: "Dmitry V. Levin" <[email protected]>
Date: Mon, 13 Nov 2017 03:35:27 +0300
Subject: uapi: fix linux/kfd_ioctl.h userspace compilation errors
From: "Dmitry V. Levin" <[email protected]>
[ Upstream commit b4d085201d86af69cbda2214c6dafc0be240ef9f ]
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:236:2: error: unknown type name 'uint64_t'
uint64_t va_addr; /* to KFD *//usr/include/linux/kfd_ioctl.h:237:2: error: unknown type name 'uint32_t'
uint32_t gpu_id; /* to KFD *//usr/include/linux/kfd_ioctl.h:238:2: error: unknown type name 'uint32_t'
uint32_t pad;/usr/include/linux/kfd_ioctl.h:243:2: error: unknown type name 'uint64_t'
uint64_t tile_config_ptr;/usr/include/linux/kfd_ioctl.h:245:2: error: unknown type name 'uint64_t'
uint64_t macro_tile_config_ptr;/usr/include/linux/kfd_ioctl.h:249:2: error: unknown type name 'uint32_t'
uint32_t num_tile_configs;/usr/include/linux/kfd_ioctl.h:253:2: error: unknown type name 'uint32_t'
uint32_t num_macro_tile_configs;/usr/include/linux/kfd_ioctl.h:255:2: error: unknown type name 'uint32_t'
uint32_t gpu_id; /* to KFD *//usr/include/linux/kfd_ioctl.h:256:2: error: unknown type name 'uint32_t'
uint32_t gb_addr_config; /* from KFD *//usr/include/linux/kfd_ioctl.h:257:2: error: unknown type name 'uint32_t'
uint32_t num_banks; /* from KFD *//usr/include/linux/kfd_ioctl.h:258:2: error: unknown type name 'uint32_t'
uint32_t num_ranks; /* from KFD */
--- include/uapi/linux/kfd_ioctl.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)
include/uapi/linux/kfd_ioctl.h +11 -11
@@ -233,29 +233,29 @@ struct kfd_ioctl_wait_events_args { };struct kfd_ioctl_set_scratch_backing_va_args { -uint64_t va_addr;/* to KFD */ -uint32_t gpu_id;/* to KFD */ -uint32_t pad; +__u64 va_addr;/* to KFD */ +__u32 gpu_id;/* to KFD */ +__u32 pad; };struct kfd_ioctl_get_tile_config_args {/* to KFD: pointer to tile array */ -uint64_t tile_config_ptr; +__u64 tile_config_ptr;/* to KFD: pointer to macro tile array */ -uint64_t macro_tile_config_ptr; +__u64 macro_tile_config_ptr;/* to KFD: array size allocated by user mode * from KFD: array size filled by kernel */ -uint32_t num_tile_configs; +__u32 num_tile_configs;/* to KFD: array size allocated by user mode * from KFD: array size filled by kernel */ -uint32_t num_macro_tile_configs; +__u32 num_macro_tile_configs; -uint32_t gpu_id;/* to KFD */ -uint32_t gb_addr_config;/* from KFD */ -uint32_t num_banks;/* from KFD */ -uint32_t num_ranks;/* from KFD */ +__u32 gpu_id;/* to KFD */ +__u32 gb_addr_config;/* from KFD */ +__u32 num_banks;/* from KFD */ +__u32 num_ranks;/* from KFD */ /* struct size can be extended later if needed * without breaking ABI compatibility */
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/uapi-fix-linux-kfd_ioctl.h-userspace-compilation-errors.patch