]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mips: cavium-octeon: Move octeon-crypto.h into asm directory
authorEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:03:13 +0000 (09:03 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:26:19 +0000 (09:26 -0700)
Since arch/mips/cavium-octeon/crypto/octeon-crypto.h is now needed
outside of its directory, move it to
arch/mips/include/asm/octeon/crypto.h so that it can be included as
<asm/octeon/crypto.h>.

Acked-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250630160320.2888-10-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
arch/mips/cavium-octeon/crypto/octeon-crypto.c
arch/mips/cavium-octeon/crypto/octeon-md5.c
arch/mips/cavium-octeon/crypto/octeon-sha1.c
arch/mips/cavium-octeon/crypto/octeon-sha256.c
arch/mips/cavium-octeon/crypto/octeon-sha512.c
arch/mips/include/asm/octeon/crypto.h [moved from arch/mips/cavium-octeon/crypto/octeon-crypto.h with 100% similarity]

index cfb4a146cf1786a73a28a781f26b363757164968..0ff8559391f5b702648cd4c0bcfb57abff4af739 100644 (file)
@@ -7,12 +7,11 @@
  */
 
 #include <asm/cop2.h>
+#include <asm/octeon/crypto.h>
 #include <linux/export.h>
 #include <linux/interrupt.h>
 #include <linux/sched/task_stack.h>
 
-#include "octeon-crypto.h"
-
 /**
  * Enable access to Octeon's COP2 crypto hardware for kernel use. Wrap any
  * crypto operations in calls to octeon_crypto_enable/disable in order to make
index fbc84eb7fedf5422fee7271a2a7e4a0d70cce15d..a8ce831e2cebd9175975c77ff287167d4f763e24 100644 (file)
@@ -19,6 +19,7 @@
  * any later version.
  */
 
+#include <asm/octeon/crypto.h>
 #include <asm/octeon/octeon.h>
 #include <crypto/internal/hash.h>
 #include <crypto/md5.h>
@@ -27,8 +28,6 @@
 #include <linux/string.h>
 #include <linux/unaligned.h>
 
-#include "octeon-crypto.h"
-
 struct octeon_md5_state {
        __le32 hash[MD5_HASH_WORDS];
        u64 byte_count;
index e70f21a473daffb0299f96e39699e1e6951ed901..e4a369a7764fb4092981f4d5354b25c52fce309e 100644 (file)
@@ -13,6 +13,7 @@
  * Copyright (c) Jean-Francois Dive <jef@linuxbe.org>
  */
 
+#include <asm/octeon/crypto.h>
 #include <asm/octeon/octeon.h>
 #include <crypto/internal/hash.h>
 #include <crypto/sha1.h>
@@ -21,8 +22,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 
-#include "octeon-crypto.h"
-
 /*
  * We pass everything as 64-bit. OCTEON can handle misaligned data.
  */
index f93faaf1f4af6eeb7e26caffe580998ecd75f95e..c20038239cb6b78d0f72417871e530f253cc1e4e 100644 (file)
  * SHA224 Support Copyright 2007 Intel Corporation <jonathan.lynch@intel.com>
  */
 
+#include <asm/octeon/crypto.h>
 #include <asm/octeon/octeon.h>
 #include <crypto/internal/sha2.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 
-#include "octeon-crypto.h"
-
 /*
  * We pass everything as 64-bit. OCTEON can handle misaligned data.
  */
index 215311053db3c30c29f281bff39ddc43696f75b5..53de74f642db08bca1021738764350129e48df5f 100644 (file)
@@ -13,6 +13,7 @@
  * Copyright (c) 2003 Kyle McMartin <kyle@debian.org>
  */
 
+#include <asm/octeon/crypto.h>
 #include <asm/octeon/octeon.h>
 #include <crypto/internal/hash.h>
 #include <crypto/sha2.h>
@@ -20,8 +21,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 
-#include "octeon-crypto.h"
-
 /*
  * We pass everything as 64-bit. OCTEON can handle misaligned data.
  */