]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libfrog: move crc32c.h to libfrog/
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Sep 2019 19:37:07 +0000 (15:37 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 9 Sep 2019 19:37:07 +0000 (15:37 -0400)
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>
io/crc32cselftest.c
libfrog/Makefile
libfrog/crc32c.h [moved from include/crc32c.h with 68% similarity]
libfrog/crc32cselftest.h [moved from include/crc32cselftest.h with 99% similarity]
libxfs/libxfs_priv.h

index 28201384d3c5973bca70982f152c5c27ffbfc036..f8f757f6a7112e54d1d14cb073cce5efd28b5f53 100644 (file)
@@ -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(
index 5506c96f957c698b95e6dce172d8b3413c93fccc..715589c7a5fde6149bc4c4db95a385639faa231f 100644 (file)
@@ -32,6 +32,8 @@ avl64.h \
 bulkstat.h \
 bitmap.h \
 convert.h \
+crc32c.h \
+crc32cselftest.h \
 crc32defs.h \
 crc32table.h \
 fsgeom.h \
similarity index 68%
rename from include/crc32c.h
rename to libfrog/crc32c.h
index b4d8aa05f541dc7fcb577178bef28c8b9214342a..22d25932fc7171e2fbc67238af31cd942ed847e8 100644 (file)
@@ -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__ */
similarity index 99%
rename from include/crc32cselftest.h
rename to libfrog/crc32cselftest.h
index 11da676beee4ea691eeb52adab19722d606feda4..08284153c36cb4abfd4c91b3bb5a8fcb014cc313 100644 (file)
@@ -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__ */
index ec4d7d3b3de8f2e48c66c0d5de75567d6f60bfc0..96d74bfa3798af97c9058b583c9e19b4ebf7b2f2 100644 (file)
@@ -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;