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:
pgpAqkRauQAGC.pgp
Description: PGP signature
Use __u8 rather than u8 in SIZE defines exported to userspace. Signed-off-by: Mike Frysinger <[email protected]> --- 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
- Prev by Date: [PATCH 3/7] barrier: a scalable synchonisation barrier
- Next by Date: [PATCH 8/7] fs: free_write_pipe() fix
- Previous by thread: [PATCH 0/7] breaking the global file_list_lock
- Next by thread: [patch] use __u32 rather than u32 in userspace ioctls in usbdevice_fs.h
- Index(es):