mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
624 B

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"