|
diff -dur hdparm-5.7/hdparm.c hdparm-5.7-patch/hdparm.c
|
|
--- hdparm-5.7/hdparm.c 2004-09-01 00:34:37.000000000 +0000
|
|
+++ hdparm-5.7-patch/hdparm.c 2004-10-23 20:58:40.707928592 +0000
|
|
@@ -20,6 +20,19 @@
|
|
#include <linux/types.h>
|
|
#include <linux/hdreg.h>
|
|
#include <linux/major.h>
|
|
+
|
|
+#ifdef __CHECKER__
|
|
+#define __bitwise __attribute__((bitwise))
|
|
+#else
|
|
+#define __bitwise
|
|
+#endif
|
|
+#define __le16 __bitwise __u16
|
|
+#define __be16 __bitwise __u16
|
|
+#define __le32 __bitwise __u32
|
|
+#define __be32 __bitwise __u32
|
|
+#define __le64 __bitwise __u64
|
|
+#define __be64 __bitwise __u64
|
|
+
|
|
#include <asm/byteorder.h>
|
|
|
|
#include "hdparm.h"
|