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

  1. diff -dur hdparm-5.7/hdparm.c hdparm-5.7-patch/hdparm.c
  2. --- hdparm-5.7/hdparm.c 2004-09-01 00:34:37.000000000 +0000
  3. +++ hdparm-5.7-patch/hdparm.c 2004-10-23 20:58:40.707928592 +0000
  4. @@ -20,6 +20,19 @@
  5. #include <linux/types.h>
  6. #include <linux/hdreg.h>
  7. #include <linux/major.h>
  8. +
  9. +#ifdef __CHECKER__
  10. +#define __bitwise __attribute__((bitwise))
  11. +#else
  12. +#define __bitwise
  13. +#endif
  14. +#define __le16 __bitwise __u16
  15. +#define __be16 __bitwise __u16
  16. +#define __le32 __bitwise __u32
  17. +#define __be32 __bitwise __u32
  18. +#define __le64 __bitwise __u64
  19. +#define __be64 __bitwise __u64
  20. +
  21. #include <asm/byteorder.h>
  22. #include "hdparm.h"