From 3a73bc1b37c88d8611712838ac42838aff828d40 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 6 Jun 2019 11:56:13 +0200 Subject: [PATCH] btrfs-progs: move sha256 from tests to crypto/ The SHA256 is going to be used in the future, so this makes it a second user and we also have the appropriate directory now. Signed-off-by: David Sterba --- Makefile | 2 +- {tests => crypto}/sha-private.h | 0 {tests => crypto}/sha.h | 0 {tests => crypto}/sha224-256.c | 0 tests/fssum.c | 2 +- 5 files changed, 2 insertions(+), 2 deletions(-) rename {tests => crypto}/sha-private.h (100%) rename {tests => crypto}/sha.h (100%) rename {tests => crypto}/sha224-256.c (100%) diff --git a/Makefile b/Makefile index b92ca24b..fd99fb5c 100644 --- a/Makefile +++ b/Makefile @@ -642,7 +642,7 @@ library-test.static: library-test.c $(libs_static) @echo " [TEST CLEAN] $@" $(Q)$(RM) -rf -- $(TMPD) -fssum: tests/fssum.c tests/sha224-256.c +fssum: tests/fssum.c crypto/sha224-256.c @echo " [LD] $@" $(Q)$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) diff --git a/tests/sha-private.h b/crypto/sha-private.h similarity index 100% rename from tests/sha-private.h rename to crypto/sha-private.h diff --git a/tests/sha.h b/crypto/sha.h similarity index 100% rename from tests/sha.h rename to crypto/sha.h diff --git a/tests/sha224-256.c b/crypto/sha224-256.c similarity index 100% rename from tests/sha224-256.c rename to crypto/sha224-256.c diff --git a/tests/fssum.c b/tests/fssum.c index b26de2c9..f3b95018 100644 --- a/tests/fssum.c +++ b/tests/fssum.c @@ -29,7 +29,7 @@ #include #include #include -#include "tests/sha.h" +#include "crypto/sha.h" #define CS_SIZE 32 #define CHUNKS 128