hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/include/uapi/scsi/scsi_netlink.h
....@@ -4,21 +4,6 @@
44 * Used for the posting of outbound SCSI transport events
55 *
66 * Copyright (C) 2006 James Smart, Emulex Corporation
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
- *
227 */
238 #ifndef SCSI_NETLINK_H
249 #define SCSI_NETLINK_H
....@@ -41,12 +26,12 @@
4126
4227 /* SCSI_TRANSPORT_MSG event message header */
4328 struct scsi_nl_hdr {
44
- uint8_t version;
45
- uint8_t transport;
46
- uint16_t magic;
47
- uint16_t msgtype;
48
- uint16_t msglen;
49
-} __attribute__((aligned(sizeof(uint64_t))));
29
+ __u8 version;
30
+ __u8 transport;
31
+ __u16 magic;
32
+ __u16 msgtype;
33
+ __u16 msglen;
34
+} __attribute__((aligned(sizeof(__u64))));
5035
5136 /* scsi_nl_hdr->version value */
5237 #define SCSI_NL_VERSION 1
....@@ -90,10 +75,10 @@
9075 */
9176 struct scsi_nl_host_vendor_msg {
9277 struct scsi_nl_hdr snlh; /* must be 1st element ! */
93
- uint64_t vendor_id;
94
- uint16_t host_no;
95
- uint16_t vmsg_datalen;
96
-} __attribute__((aligned(sizeof(uint64_t))));
78
+ __u64 vendor_id;
79
+ __u16 host_no;
80
+ __u16 vmsg_datalen;
81
+} __attribute__((aligned(sizeof(__u64))));
9782
9883
9984 /*