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.

48 lines
1.3 KiB

  1. --- ./include/linux/byteorder/little_endian.h.orig 2004-11-21 18:54:27.344956208 +0100
  2. +++ ./include/linux/byteorder/little_endian.h 2004-11-21 18:54:36.247602800 +0100
  3. @@ -8,6 +8,21 @@
  4. #define __LITTLE_ENDIAN_BITFIELD
  5. #endif
  6. +#ifndef __KERNEL__
  7. +/* fix for inclusion from userspace... :( */
  8. +#ifdef __CHECKER__
  9. +#define __bitwise __attribute__((bitwise))
  10. +#else
  11. +#define __bitwise
  12. +#endif
  13. +#define __le16 __bitwise __u16
  14. +#define __be16 __bitwise __u16
  15. +#define __le32 __bitwise __u32
  16. +#define __be32 __bitwise __u32
  17. +#define __le64 __bitwise __u64
  18. +#define __be64 __bitwise __u64
  19. +#endif
  20. +
  21. #include <linux/types.h>
  22. #include <linux/byteorder/swab.h>
  23. --- ./include/linux/byteorder/big_endian.h.orig 2004-11-24 15:49:41.099573896 +0100
  24. +++ ./include/linux/byteorder/big_endian.h 2004-11-24 15:50:46.048700128 +0100
  25. @@ -8,6 +8,21 @@
  26. #define __BIG_ENDIAN_BITFIELD
  27. #endif
  28. +#ifndef __KERNEL__
  29. +/* fix for inclusion from userspace... :( */
  30. +#ifdef __CHECKER__
  31. +#define __bitwise __attribute__((bitwise))
  32. +#else
  33. +#define __bitwise
  34. +#endif
  35. +#define __le16 __bitwise __u16
  36. +#define __be16 __bitwise __u16
  37. +#define __le32 __bitwise __u32
  38. +#define __be32 __bitwise __u32
  39. +#define __le64 __bitwise __u64
  40. +#define __be64 __bitwise __u64
  41. +#endif
  42. +
  43. #include <linux/types.h>
  44. #include <linux/byteorder/swab.h>