Skip to content

Commit 762b6f0

Browse files
ldv-altNicholas Bellinger
authored andcommitted
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; Signed-off-by: Dmitry V. Levin <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
1 parent 0ab8ac6 commit 762b6f0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

include/uapi/linux/target_core_user.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,26 +105,26 @@ struct tcmu_cmd_entry {
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,

0 commit comments

Comments
 (0)