Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: sparc - move opcodes.h into asm directory

Since arch/sparc/crypto/opcodes.h is now needed outside the
arch/sparc/crypto/ directory, move it into arch/sparc/include/asm/ so
that it can be included as <asm/opcodes.h>.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Eric Biggers and committed by
Herbert Xu
77735920 b9eac03e

+18 -33
+1 -2
arch/sparc/crypto/aes_asm.S
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #include <linux/linkage.h> 3 + #include <asm/opcodes.h> 3 4 #include <asm/visasm.h> 4 - 5 - #include "opcodes.h" 6 5 7 6 #define ENCRYPT_TWO_ROUNDS(KEY_BASE, I0, I1, T0, T1) \ 8 7 AES_EROUND01(KEY_BASE + 0, I0, I1, T0) \
+1 -2
arch/sparc/crypto/aes_glue.c
··· 27 27 #include <crypto/internal/skcipher.h> 28 28 29 29 #include <asm/fpumacro.h> 30 + #include <asm/opcodes.h> 30 31 #include <asm/pstate.h> 31 32 #include <asm/elf.h> 32 - 33 - #include "opcodes.h" 34 33 35 34 struct aes_ops { 36 35 void (*encrypt)(const u64 *key, const u32 *input, u32 *output);
+1 -2
arch/sparc/crypto/camellia_asm.S
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #include <linux/linkage.h> 3 + #include <asm/opcodes.h> 3 4 #include <asm/visasm.h> 4 - 5 - #include "opcodes.h" 6 5 7 6 #define CAMELLIA_6ROUNDS(KEY_BASE, I0, I1) \ 8 7 CAMELLIA_F(KEY_BASE + 0, I1, I0, I1) \
+1 -2
arch/sparc/crypto/camellia_glue.c
··· 15 15 #include <crypto/internal/skcipher.h> 16 16 17 17 #include <asm/fpumacro.h> 18 + #include <asm/opcodes.h> 18 19 #include <asm/pstate.h> 19 20 #include <asm/elf.h> 20 - 21 - #include "opcodes.h" 22 21 23 22 #define CAMELLIA_MIN_KEY_SIZE 16 24 23 #define CAMELLIA_MAX_KEY_SIZE 32
+1 -2
arch/sparc/crypto/des_asm.S
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #include <linux/linkage.h> 3 + #include <asm/opcodes.h> 3 4 #include <asm/visasm.h> 4 - 5 - #include "opcodes.h" 6 5 7 6 .align 32 8 7 ENTRY(des_sparc64_key_expand)
+1 -2
arch/sparc/crypto/des_glue.c
··· 16 16 #include <crypto/internal/skcipher.h> 17 17 18 18 #include <asm/fpumacro.h> 19 + #include <asm/opcodes.h> 19 20 #include <asm/pstate.h> 20 21 #include <asm/elf.h> 21 - 22 - #include "opcodes.h" 23 22 24 23 struct des_sparc64_ctx { 25 24 u64 encrypt_expkey[DES_EXPKEY_WORDS / 2];
+1 -2
arch/sparc/crypto/md5_asm.S
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #include <linux/linkage.h> 3 + #include <asm/opcodes.h> 3 4 #include <asm/visasm.h> 4 - 5 - #include "opcodes.h" 6 5 7 6 ENTRY(md5_sparc64_transform) 8 7 /* %o0 = digest, %o1 = data, %o2 = rounds */
+1 -2
arch/sparc/crypto/md5_glue.c
··· 15 15 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 16 16 17 17 #include <asm/elf.h> 18 + #include <asm/opcodes.h> 18 19 #include <asm/pstate.h> 19 20 #include <crypto/internal/hash.h> 20 21 #include <crypto/md5.h> ··· 24 23 #include <linux/module.h> 25 24 #include <linux/string.h> 26 25 #include <linux/unaligned.h> 27 - 28 - #include "opcodes.h" 29 26 30 27 struct sparc_md5_state { 31 28 __le32 hash[MD5_HASH_WORDS];
+3 -3
arch/sparc/crypto/opcodes.h arch/sparc/include/asm/opcodes.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 - #ifndef _OPCODES_H 3 - #define _OPCODES_H 2 + #ifndef _SPARC_ASM_OPCODES_H 3 + #define _SPARC_ASM_OPCODES_H 4 4 5 5 #define SPARC_CR_OPCODE_PRIORITY 300 6 6 ··· 97 97 #define MOVXTOD_G7_F62 \ 98 98 .word 0xbfb02307; 99 99 100 - #endif /* _OPCODES_H */ 100 + #endif /* _SPARC_ASM_OPCODES_H */
+1 -2
arch/sparc/crypto/sha1_asm.S
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #include <linux/linkage.h> 3 + #include <asm/opcodes.h> 3 4 #include <asm/visasm.h> 4 - 5 - #include "opcodes.h" 6 5 7 6 ENTRY(sha1_sparc64_transform) 8 7 /* %o0 = digest, %o1 = data, %o2 = rounds */
+1 -2
arch/sparc/crypto/sha1_glue.c
··· 12 12 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 13 13 14 14 #include <asm/elf.h> 15 + #include <asm/opcodes.h> 15 16 #include <asm/pstate.h> 16 17 #include <crypto/internal/hash.h> 17 18 #include <crypto/sha1.h> 18 19 #include <crypto/sha1_base.h> 19 20 #include <linux/kernel.h> 20 21 #include <linux/module.h> 21 - 22 - #include "opcodes.h" 23 22 24 23 asmlinkage void sha1_sparc64_transform(struct sha1_state *digest, 25 24 const u8 *data, int rounds);
+1 -2
arch/sparc/crypto/sha256_asm.S
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #include <linux/linkage.h> 3 + #include <asm/opcodes.h> 3 4 #include <asm/visasm.h> 4 - 5 - #include "opcodes.h" 6 5 7 6 ENTRY(sha256_sparc64_transform) 8 7 /* %o0 = digest, %o1 = data, %o2 = rounds */
+1 -2
arch/sparc/crypto/sha256_glue.c
··· 12 12 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 13 13 14 14 #include <asm/elf.h> 15 + #include <asm/opcodes.h> 15 16 #include <asm/pstate.h> 16 17 #include <crypto/internal/hash.h> 17 18 #include <crypto/sha2.h> 18 19 #include <crypto/sha256_base.h> 19 20 #include <linux/kernel.h> 20 21 #include <linux/module.h> 21 - 22 - #include "opcodes.h" 23 22 24 23 asmlinkage void sha256_sparc64_transform(u32 *digest, const char *data, 25 24 unsigned int rounds);
+1 -2
arch/sparc/crypto/sha512_asm.S
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #include <linux/linkage.h> 3 + #include <asm/opcodes.h> 3 4 #include <asm/visasm.h> 4 - 5 - #include "opcodes.h" 6 5 7 6 ENTRY(sha512_sparc64_transform) 8 7 /* %o0 = digest, %o1 = data, %o2 = rounds */
+1 -2
arch/sparc/crypto/sha512_glue.c
··· 11 11 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 12 12 13 13 #include <asm/elf.h> 14 + #include <asm/opcodes.h> 14 15 #include <asm/pstate.h> 15 16 #include <crypto/internal/hash.h> 16 17 #include <crypto/sha2.h> 17 18 #include <crypto/sha512_base.h> 18 19 #include <linux/kernel.h> 19 20 #include <linux/module.h> 20 - 21 - #include "opcodes.h" 22 21 23 22 asmlinkage void sha512_sparc64_transform(u64 *digest, const char *data, 24 23 unsigned int rounds);
+1 -2
arch/sparc/lib/crc32c_asm.S
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 #include <linux/linkage.h> 3 + #include <asm/opcodes.h> 3 4 #include <asm/visasm.h> 4 5 #include <asm/asi.h> 5 - 6 - #include "../crypto/opcodes.h" 7 6 8 7 ENTRY(crc32c_sparc64) 9 8 /* %o0=crc32p, %o1=data_ptr, %o2=len */