gfs2_edit: Remove duplicate linux_endian.h
PATCH 1/1 gfs2_edit: Remove duplicate linux_endian.h
gfs2/edit/linux_endian.h is an exact duplicate of gfs2/include/linux_endian.h and can be removed as gfs2/include/linux_endian.h is picked up instead.
Signed-off-by Andrew Price <[email protected]>
--- gfs2/edit/linux_endian.h | 81 ---------------------------------------------- 1 files changed, 0 insertions(+), 81 deletions(-) delete mode 100644 gfs2/edit/linux_endian.h
gfs2/edit/linux_endian.h deleted +0 -81
@@ -1,81 +0,0 @@ -/****************************************************************************** -******************************************************************************* -** -** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. -** Copyright (C) 2004 Red Hat, Inc. All rights reserved. -** -** This copyrighted material is made available to anyone wishing to use, -** modify, copy, or redistribute it subject to the terms and conditions -** of the GNU General Public License v.2. -** -******************************************************************************* -******************************************************************************/ - -#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__ */
Signature · 1 line
1.5.4.4