[PATCH] ext4: move halfmd4 into hash.c directly

Jason A. Donenfeld
2016-12-22T16:47:09Z

fs/ext4/hash.c | 69 +++++++++++++++++++++++++++++++++++++++++++++-
include/linux/cryptohash.h | 2 --
lib/halfmd4.c | 67 --------------------------------------------
3 files changed, 68 insertions(+), 70 deletions(-)
delete mode 100644 lib/halfmd4.c

diff --git a/fs/ext4/hash.c b/fs/ext4/hash.c
index e026aa941fd5..4d743d8f72fd 100644
--- a/fs/ext4/hash.c
+++ b/fs/ext4/hash.c
@@ -10,7 +10,8 @@
*/

#include <linux/fs.h>
-#include <linux/cryptohash.h>
+#include <linux/compiler.h>
+#include <linux/bitops.h>
#include "ext4.h"

#define DELTA 0x9E3779B9
@@ -32,6 +33,72 @@ static void TEA_transform(__u32 buf[4], __u32 const in[])