Skip to content

Commit 0065f76

Browse files
committed
headers: Remove __le16/__le32/__le64
These types should no longer be used; use ceph_le16/32/64 instead. Also removes the cmake check whether those types are provided by kernel headers (likewise for the __be types, which already were not used anywhere). Signed-off-by: Ulrich Weigand <[email protected]>
1 parent 8f67fec commit 0065f76

File tree

3 files changed

+0
-33
lines changed

3 files changed

+0
-33
lines changed

cmake/modules/CephChecks.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ CHECK_INCLUDE_FILES("valgrind/helgrind.h" HAVE_VALGRIND_HELGRIND_H)
5555

5656
include(CheckTypeSize)
5757
set(CMAKE_EXTRA_INCLUDE_FILES "linux/types.h")
58-
CHECK_TYPE_SIZE(__be16 __BE16)
59-
CHECK_TYPE_SIZE(__be32 __BE32)
60-
CHECK_TYPE_SIZE(__be64 __BE64)
61-
CHECK_TYPE_SIZE(__le16 __LE16)
62-
CHECK_TYPE_SIZE(__le32 __LE32)
63-
CHECK_TYPE_SIZE(__le64 __LE64)
6458
CHECK_TYPE_SIZE(__u8 __U8)
6559
CHECK_TYPE_SIZE(__u16 __U16)
6660
CHECK_TYPE_SIZE(__u32 __U32)

src/include/config-h.in.cmake

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,6 @@
3939
/* Define to 1 if you have the <execinfo.h> header file. */
4040
#cmakedefine HAVE_EXECINFO_H 1
4141

42-
/* Define to 1 if the system has the type `__be16'. */
43-
#cmakedefine HAVE___BE16 1
44-
45-
/* Define to 1 if the system has the type `__be32'. */
46-
#cmakedefine HAVE___BE32 1
47-
48-
/* Define to 1 if the system has the type `__be64'. */
49-
#cmakedefine HAVE___BE64 1
50-
51-
/* Define to 1 if the system has the type `__le16'. */
52-
#cmakedefine HAVE___LE16 1
53-
54-
/* Define to 1 if the system has the type `__le32'. */
55-
#cmakedefine HAVE___LE32 1
56-
57-
/* Define to 1 if the system has the type `__le64'. */
58-
#cmakedefine HAVE___LE64 1
59-
6042
/* Define to 1 if the system has the type `__s16'. */
6143
#cmakedefine HAVE___S16 1
6244

src/include/int_types.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ typedef int64_t __s64;
4141
#endif
4242
#endif /* LINUX_TYPES_H */
4343

44-
#define __bitwise__
45-
46-
typedef __u16 __bitwise__ __le16;
47-
typedef __u16 __bitwise__ __be16;
48-
typedef __u32 __bitwise__ __le32;
49-
typedef __u32 __bitwise__ __be32;
50-
typedef __u64 __bitwise__ __le64;
51-
typedef __u64 __bitwise__ __be64;
52-
5344
#ifndef BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
5445
#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
5546
#endif

0 commit comments

Comments
 (0)