diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-09 15:50:38 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-09 15:50:38 +1100 |
commit | e27cc4fba976edde9eb2d53b876788f315c73c87 (patch) | |
tree | 838c812adb7913abb9a3c00fb39d243650f61639 /include | |
parent | 33750c24c42ed0dfa55cd097aee8f35dc497131a (diff) | |
download | skiboot-e27cc4fba976edde9eb2d53b876788f315c73c87.zip skiboot-e27cc4fba976edde9eb2d53b876788f315c73c87.tar.gz skiboot-e27cc4fba976edde9eb2d53b876788f315c73c87.tar.bz2 |
Properly annotate types.h for sparse
This way we don't get hundreds of false warnings from sparse r.e. endian
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/types.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/types.h b/include/types.h index 36dc81d..07a9db6 100644 --- a/include/types.h +++ b/include/types.h @@ -17,11 +17,12 @@ #ifndef __TYPES_H #define __TYPES_H #include <ccan/short_types/short_types.h> +#include <ccan/endian/endian.h> /* These are currently just for clarity, but we could apply sparse. */ -typedef u16 __be16; -typedef u32 __be32; -typedef u64 __be64; +typedef beint16_t __be16; +typedef beint32_t __be32; +typedef beint64_t __be64; #endif /* __TYPES_H */ |