mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Reduce warnings by 29%
git-svn-id: svn://coreboot.org/openbios/openbios-devel@273 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -97,7 +97,7 @@ ino2offset (xfs_ino_t ino)
|
||||
return ino & XFS_INO_MASK(XFS_INO_OFFSET_BITS);
|
||||
}
|
||||
|
||||
static inline __const__ __uint16_t
|
||||
static inline __uint16_t
|
||||
le16 (__uint16_t x)
|
||||
{
|
||||
#ifdef __i386__
|
||||
@@ -110,7 +110,7 @@ le16 (__uint16_t x)
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline __const__ __uint32_t
|
||||
static inline __uint32_t
|
||||
le32 (__uint32_t x)
|
||||
{
|
||||
#ifdef __i386__
|
||||
@@ -130,7 +130,7 @@ le32 (__uint32_t x)
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline __const__ __uint64_t
|
||||
static inline __uint64_t
|
||||
le64 (__uint64_t x)
|
||||
{
|
||||
__uint32_t h = x >> 32;
|
||||
@@ -195,7 +195,7 @@ fsb2daddr (xfs_fsblock_t fsbno)
|
||||
}
|
||||
|
||||
#undef offsetof
|
||||
#define offsetof(t,m) ((int)&(((t *)0)->m))
|
||||
#define offsetof(t,m) ((long)&(((t *)0)->m))
|
||||
|
||||
static inline int
|
||||
btroot_maxrecs (void)
|
||||
|
||||
Reference in New Issue
Block a user