linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] use __u8 rather than u8 in userspace SIZE defines in hdreg.h
@ 2007-01-28 12:17 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2007-01-28 12:17 UTC (permalink / raw)
  To: linux-ide; +Cc: linux-kernel


[-- Attachment #1.1: Type: text/plain, Size: 186 bytes --]

the hdreg.h exports some SIZE defines to userspace but it utilizes sizeof(u8) 
in its definition ... that's no good so the trivial attached patch changes 
that to sizeof(__u8)
-mike

[-- Attachment #1.2: Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: linux-use-__-types-in-hdreg-header.patch --]
[-- Type: text/x-diff, Size: 710 bytes --]

Use __u8 rather than u8 in SIZE defines exported to userspace.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

--- a/include/linux/hdreg.h
+++ b/include/linux/hdreg.h
@@ -60,13 +60,15 @@
 #define TAG_MASK		0xf8
 #endif /* __KERNEL__ */
 
+#include <linux/types.h>
+
 /*
  * Command Header sizes for IOCTL commands
  */
 
-#define HDIO_DRIVE_CMD_HDR_SIZE		(4 * sizeof(u8))
-#define HDIO_DRIVE_HOB_HDR_SIZE		(8 * sizeof(u8))
-#define HDIO_DRIVE_TASK_HDR_SIZE	(8 * sizeof(u8))
+#define HDIO_DRIVE_CMD_HDR_SIZE		(4 * sizeof(__u8))
+#define HDIO_DRIVE_HOB_HDR_SIZE		(8 * sizeof(__u8))
+#define HDIO_DRIVE_TASK_HDR_SIZE	(8 * sizeof(__u8))
 
 #define IDE_DRIVE_TASK_INVALID		-1
 #define IDE_DRIVE_TASK_NO_DATA		0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-28 12:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-28 12:17 [patch] use __u8 rather than u8 in userspace SIZE defines in hdreg.h Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).