History

uapi: fix linux/target_core_user.h userspace compilation errors

Consistently use types from linux/types.h to fix the following linux/target_core_user.h userspace compilation errors: /usr/include/linux/target_core_user.h:108:4: error: unknown type name 'uint32_t' uint32_t iov_cnt; /usr/include/linux/target_core_user.h:109:4: error: unknown type name 'uint32_t' uint32_t iov_bidi_cnt; /usr/include/linux/target_core_user.h:110:4: error: unknown type name 'uint32_t' uint32_t iov_dif_cnt; /usr/include/linux/target_core_user.h:111:4: error: unknown type name 'uint64_t' uint64_t cdb_off; /usr/include/linux/target_core_user.h:112:4: error: unknown type name 'uint64_t' uint64_t __pad1; /usr/include/linux/target_core_user.h:113:4: error: unknown type name 'uint64_t' uint64_t __pad2; /usr/include/linux/target_core_user.h:117:4: error: unknown type name 'uint8_t' uint8_t scsi_status; /usr/include/linux/target_core_user.h:118:4: error: unknown type name 'uint8_t' uint8_t __pad1; /usr/include/linux/target_core_user.h:119:4: error: unknown type name 'uint16_t' uint16_t __pad2; /usr/include/linux/target_core_user.h:120:4: error: unknown type name 'uint32_t' uint32_t __pad3;

Dmitry V. Levin committed 9 years ago

Commit 762b6f01 parent 0ab8ac61 file · +11 −11Browse files

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

Unified · Split

include/uapi/linux/target_core_user.h+11−11
@@ -105,26 +105,26 @@ struct tcmu_cmd_entry { · 104 unmodified lines
105105
106106 union {
107107 struct {
108− uint32_t iov_cnt;
109− uint32_t iov_bidi_cnt;
110− uint32_t iov_dif_cnt;
111− uint64_t cdb_off;
112− uint64_t __pad1;
113− uint64_t __pad2;
108+ __u32 iov_cnt;
109+ __u32 iov_bidi_cnt;
110+ __u32 iov_dif_cnt;
111+ __u64 cdb_off;
112+ __u64 __pad1;
113+ __u64 __pad2;
114114 struct iovec iov[0];
115115 } req;
116116 struct {
117− uint8_t scsi_status;
118− uint8_t __pad1;
119− uint16_t __pad2;
120− uint32_t __pad3;
117+ __u8 scsi_status;
118+ __u8 __pad1;
119+ __u16 __pad2;
120+ __u32 __pad3;
121121 char sense_buffer[TCMU_SENSE_BUFFERSIZE];
122122 } rsp;
123123 };
124124
125125 } __packed;
126126
127−#define TCMU_OP_ALIGN_SIZE sizeof(uint64_t)
127+#define TCMU_OP_ALIGN_SIZE sizeof(__u64)
128128
129129 enum tcmu_genl_cmd {
130130 TCMU_CMD_UNSPEC,