aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-09-09 15:37:07 -0400
committerEric Sandeen <sandeen@redhat.com>2019-09-09 15:37:07 -0400
commit63153a95f24093af13812eccb5aa357d02552adc (patch)
tree0f0c727831d2685e1b4e05f00546d5a76ee90239
parent56598728de8d10ac53e57e28aa61f75c6cdcd366 (diff)
downloadxfsprogs-dev-63153a95f24093af13812eccb5aa357d02552adc.tar.gz
libfrog: move crc32c.h to libfrog/
Move this header to libfrog since the code is there already. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r--io/crc32cselftest.c4
-rw-r--r--libfrog/Makefile2
-rw-r--r--libfrog/crc32c.h (renamed from include/crc32c.h)6
-rw-r--r--libfrog/crc32cselftest.h (renamed from include/crc32cselftest.h)6
-rw-r--r--libxfs/libxfs_priv.h2
5 files changed, 11 insertions, 9 deletions
diff --git a/io/crc32cselftest.c b/io/crc32cselftest.c
index 28201384d3..f8f757f6a7 100644
--- a/io/crc32cselftest.c
+++ b/io/crc32cselftest.c
@@ -8,8 +8,8 @@
#include "command.h"
#include "init.h"
#include "io.h"
-#include "crc32c.h"
-#include "crc32cselftest.h"
+#include "libfrog/crc32c.h"
+#include "libfrog/crc32cselftest.h"
static int
crc32cselftest_f(
diff --git a/libfrog/Makefile b/libfrog/Makefile
index 5506c96f95..715589c7a5 100644
--- a/libfrog/Makefile
+++ b/libfrog/Makefile
@@ -32,6 +32,8 @@ avl64.h \
bulkstat.h \
bitmap.h \
convert.h \
+crc32c.h \
+crc32cselftest.h \
crc32defs.h \
crc32table.h \
fsgeom.h \
diff --git a/include/crc32c.h b/libfrog/crc32c.h
index b4d8aa05f5..22d25932fc 100644
--- a/include/crc32c.h
+++ b/libfrog/crc32c.h
@@ -3,9 +3,9 @@
* Copyright (c) 2000-2005 Silicon Graphics, Inc.
* All Rights Reserved.
*/
-#ifndef LIBFROG_CRC32C_H_
-#define LIBFROG_CRC32C_H_
+#ifndef __LIBFROG_CRC32C_H__
+#define __LIBFROG_CRC32C_H__
extern uint32_t crc32c_le(uint32_t crc, unsigned char const *p, size_t len);
-#endif /* LIBFROG_CRC32C_H_ */
+#endif /* __LIBFROG_CRC32C_H__ */
diff --git a/include/crc32cselftest.h b/libfrog/crc32cselftest.h
index 11da676bee..08284153c3 100644
--- a/include/crc32cselftest.h
+++ b/libfrog/crc32cselftest.h
@@ -31,8 +31,8 @@
/* This is just the crc32 self test bits from crc32.c. */
-#ifndef _LIBFROG_CRC32CSELFTEST_H_
-#define _LIBFROG_CRC32CSELFTEST_H_
+#ifndef __LIBFROG_CRC32CSELFTEST_H__
+#define __LIBFROG_CRC32CSELFTEST_H__
/* 4096 random bytes */
static uint8_t __attribute__((__aligned__(8))) test_buf[] =
@@ -703,4 +703,4 @@ crc32c_test(void)
return errors;
}
-#endif /* _LIBFROG_CRC32CSELFTEST_H_ */
+#endif /* __LIBFROG_CRC32CSELFTEST_H__ */
diff --git a/libxfs/libxfs_priv.h b/libxfs/libxfs_priv.h
index ec4d7d3b3d..96d74bfa37 100644
--- a/libxfs/libxfs_priv.h
+++ b/libxfs/libxfs_priv.h
@@ -53,7 +53,7 @@
#include "xfs_arch.h"
#include "xfs_fs.h"
-#include "crc32c.h"
+#include "libfrog/crc32c.h"
/* Zones used in libxfs allocations that aren't in shared header files */
extern kmem_zone_t *xfs_buf_item_zone;