History

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: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 */

Dmitry V. Levin committed 9 years ago

Commit b4d08521 parent c393e9b1 file · +11 −11Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/kfd_ioctl.h+11−11
@@ -233,29 +233,29 @@ struct kfd_ioctl_wait_events_args { · 232 unmodified lines
233233 };
234234
235235 struct kfd_ioctl_set_scratch_backing_va_args {
236− uint64_t va_addr; /* to KFD */
237− uint32_t gpu_id; /* to KFD */
238− uint32_t pad;
236+ __u64 va_addr; /* to KFD */
237+ __u32 gpu_id; /* to KFD */
238+ __u32 pad;
239239 };
240240
241241 struct kfd_ioctl_get_tile_config_args {
242242 /* to KFD: pointer to tile array */
243− uint64_t tile_config_ptr;
243+ __u64 tile_config_ptr;
244244 /* to KFD: pointer to macro tile array */
245− uint64_t macro_tile_config_ptr;
245+ __u64 macro_tile_config_ptr;
246246 /* to KFD: array size allocated by user mode
247247 * from KFD: array size filled by kernel
248248 */
249− uint32_t num_tile_configs;
249+ __u32 num_tile_configs;
250250 /* to KFD: array size allocated by user mode
251251 * from KFD: array size filled by kernel
252252 */
253− uint32_t num_macro_tile_configs;
253+ __u32 num_macro_tile_configs;
254254
255− uint32_t gpu_id; /* to KFD */
256− uint32_t gb_addr_config; /* from KFD */
257− uint32_t num_banks; /* from KFD */
258− uint32_t num_ranks; /* from KFD */
255+ __u32 gpu_id; /* to KFD */
256+ __u32 gb_addr_config; /* from KFD */
257+ __u32 num_banks; /* from KFD */
258+ __u32 num_ranks; /* from KFD */
259259 /* struct size can be extended later if needed
260260 * without breaking ABI compatibility
261261 */