]> git.wh0rd.org - patches.git/blame - linux-use-__-types-in-hdreg-header.patch
sync vapier-m
[patches.git] / linux-use-__-types-in-hdreg-header.patch
CommitLineData
5e993f12 1Use __u8 rather than u8 in SIZE defines exported to userspace.
2
3Signed-off-by: Mike Frysinger <vapier@gentoo.org>
4
5--- a/include/linux/hdreg.h
6+++ b/include/linux/hdreg.h
7@@ -60,13 +60,15 @@
8 #define TAG_MASK 0xf8
9 #endif /* __KERNEL__ */
10
11+#include <linux/types.h>
12+
13 /*
14 * Command Header sizes for IOCTL commands
15 */
16
17-#define HDIO_DRIVE_CMD_HDR_SIZE (4 * sizeof(u8))
18-#define HDIO_DRIVE_HOB_HDR_SIZE (8 * sizeof(u8))
19-#define HDIO_DRIVE_TASK_HDR_SIZE (8 * sizeof(u8))
20+#define HDIO_DRIVE_CMD_HDR_SIZE (4 * sizeof(__u8))
21+#define HDIO_DRIVE_HOB_HDR_SIZE (8 * sizeof(__u8))
22+#define HDIO_DRIVE_TASK_HDR_SIZE (8 * sizeof(__u8))
23
24 #define IDE_DRIVE_TASK_INVALID -1
25 #define IDE_DRIVE_TASK_NO_DATA 0