Skip to content

Commit 436d165

Browse files
vapierLinus Torvalds
authored andcommitted
[PATCH] use __u8 rather than u8 in userspace SIZE defines in hdreg.h
Use __u8 rather than u8 in SIZE defines exported to userspace. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 34e9a63 commit 436d165

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎include/linux/hdreg.h‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,15 @@
6060
#define TAG_MASK 0xf8
6161
#endif /* __KERNEL__ */
6262

63+
#include <linux/types.h>
64+
6365
/*
6466
* Command Header sizes for IOCTL commands
6567
*/
6668

67-
#define HDIO_DRIVE_CMD_HDR_SIZE (4 * sizeof(u8))
68-
#define HDIO_DRIVE_HOB_HDR_SIZE (8 * sizeof(u8))
69-
#define HDIO_DRIVE_TASK_HDR_SIZE (8 * sizeof(u8))
69+
#define HDIO_DRIVE_CMD_HDR_SIZE (4 * sizeof(__u8))
70+
#define HDIO_DRIVE_HOB_HDR_SIZE (8 * sizeof(__u8))
71+
#define HDIO_DRIVE_TASK_HDR_SIZE (8 * sizeof(__u8))
7072

7173
#define IDE_DRIVE_TASK_INVALID -1
7274
#define IDE_DRIVE_TASK_NO_DATA 0

0 commit comments

Comments
 (0)