This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch master
in repository gfs2-utils.
commit f6d245be7b10d513e9a2ceb568c5c5c60324a660
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Tue Apr 20 17:32:08 2021 +0100
Remove gfs2/include/linux_endian.h
Archaeology time. This header is a remnant of the integrated cluster.git
days and only tunegfs2 ever used it. The useful byte swapping functions
in it were added to libgfs2.h a long time ago so it is unneeded.
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/include/Makefile.am | 1 -
gfs2/include/linux_endian.h | 68 ---------------------------------------------
gfs2/tune/super.c | 1 -
3 files changed, 70 deletions(-)
diff --git a/gfs2/include/Makefile.am b/gfs2/include/Makefile.am
index f9486288..c581e1db 100644
--- a/gfs2/include/Makefile.am
+++ b/gfs2/include/Makefile.am
@@ -3,7 +3,6 @@ MAINTAINERCLEANFILES = Makefile.in
noinst_HEADERS = \
osi_list.h \
osi_tree.h \
- linux_endian.h \
linux/gfs2_ondisk.h \
linux/types.h \
logging.h
diff --git a/gfs2/include/linux_endian.h b/gfs2/include/linux_endian.h
deleted file mode 100644
index 43089d2f..00000000
--- a/gfs2/include/linux_endian.h
+++ /dev/null
@@ -1,68 +0,0 @@
-#ifndef __LINUX_ENDIAN_DOT_H__
-#define __LINUX_ENDIAN_DOT_H__
-
-
-#include <endian.h>
-#include <byteswap.h>
-
-
-/* I'm not sure which versions of alpha glibc/gcc are broken,
- so fix all of them. */
-#ifdef __alpha__
-#undef bswap_64
-static __inline__ unsigned long bswap_64(unsigned long x)
-{
- unsigned int h = x >> 32;
- unsigned int l = x;
-
- h = bswap_32(h);
- l = bswap_32(l);
-
- return ((unsigned long)l << 32) | h;
-}
-#endif /* __alpha__ */
-
-
-#if __BYTE_ORDER == __BIG_ENDIAN
-
-#define be16_to_cpu(x) (x)
-#define be32_to_cpu(x) (x)
-#define be64_to_cpu(x) (x)
-
-#define cpu_to_be16(x) (x)
-#define cpu_to_be32(x) (x)
-#define cpu_to_be64(x) (x)
-
-#define le16_to_cpu(x) (bswap_16((x)))
-#define le32_to_cpu(x) (bswap_32((x)))
-#define le64_to_cpu(x) (bswap_64((x)))
-
-#define cpu_to_le16(x) (bswap_16((x)))
-#define cpu_to_le32(x) (bswap_32((x)))
-#define cpu_to_le64(x) (bswap_64((x)))
-
-#endif /* __BYTE_ORDER == __BIG_ENDIAN */
-
-
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-
-#define be16_to_cpu(x) (bswap_16((x)))
-#define be32_to_cpu(x) (bswap_32((x)))
-#define be64_to_cpu(x) (bswap_64((x)))
-
-#define cpu_to_be16(x) (bswap_16((x)))
-#define cpu_to_be32(x) (bswap_32((x)))
-#define cpu_to_be64(x) (bswap_64((x)))
-
-#define le16_to_cpu(x) (x)
-#define le32_to_cpu(x) (x)
-#define le64_to_cpu(x) (x)
-
-#define cpu_to_le16(x) (x)
-#define cpu_to_le32(x) (x)
-#define cpu_to_le64(x) (x)
-
-#endif /* __BYTE_ORDER == __LITTLE_ENDIAN */
-
-
-#endif /* __LINUX_ENDIAN_DOT_H__ */
diff --git a/gfs2/tune/super.c b/gfs2/tune/super.c
index 9e6578fb..3290a791 100644
--- a/gfs2/tune/super.c
+++ b/gfs2/tune/super.c
@@ -10,7 +10,6 @@
#include <string.h>
#include <libintl.h>
#define _(String) gettext(String)
-#include <linux_endian.h>
#include <libgfs2.h>
#include <uuid.h>
#include "tunegfs2.h"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date