* [PATCH] LoongArch: Remove unused arch/loongarch/crypto directory
@ 2026-05-17 3:14 Ethan Nelson-Moore
2026-05-22 12:35 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Ethan Nelson-Moore @ 2026-05-17 3:14 UTC (permalink / raw)
To: loongarch, linux-crypto
Cc: Ethan Nelson-Moore, Huacai Chen, WANG Xuerui, Herbert Xu,
David S. Miller
All LoongArch crypto code was moved to arch/loongarch/lib in
commit 72f51a4f4b07 ("loongarch/crc32: expose CRC32 functions through
lib"). However, arch/loongarch/crypto still contains stub Kconfig and
Makefile files. Remove these unnecessary files.
Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
---
arch/loongarch/Makefile | 2 --
arch/loongarch/crypto/Kconfig | 5 -----
arch/loongarch/crypto/Makefile | 4 ----
crypto/Kconfig | 3 ---
4 files changed, 14 deletions(-)
delete mode 100644 arch/loongarch/crypto/Kconfig
delete mode 100644 arch/loongarch/crypto/Makefile
diff --git a/arch/loongarch/Makefile b/arch/loongarch/Makefile
index 54fcfa1eac1f..4b22f95aaafb 100644
--- a/arch/loongarch/Makefile
+++ b/arch/loongarch/Makefile
@@ -197,8 +197,6 @@ endif
libs-y += arch/loongarch/lib/
libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
-drivers-y += arch/loongarch/crypto/
-
# suspend and hibernation support
drivers-$(CONFIG_PM) += arch/loongarch/power/
diff --git a/arch/loongarch/crypto/Kconfig b/arch/loongarch/crypto/Kconfig
deleted file mode 100644
index a0270b3e5b30..000000000000
--- a/arch/loongarch/crypto/Kconfig
+++ /dev/null
@@ -1,5 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-
-menu "Accelerated Cryptographic Algorithms for CPU (loongarch)"
-
-endmenu
diff --git a/arch/loongarch/crypto/Makefile b/arch/loongarch/crypto/Makefile
deleted file mode 100644
index ba83755dde2b..000000000000
--- a/arch/loongarch/crypto/Makefile
+++ /dev/null
@@ -1,4 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-#
-# Makefile for LoongArch crypto files..
-#
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 103d1f58cb7c..62221507f2b9 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -1361,9 +1361,6 @@ endif
if ARM64
source "arch/arm64/crypto/Kconfig"
endif
-if LOONGARCH
-source "arch/loongarch/crypto/Kconfig"
-endif
if MIPS
source "arch/mips/crypto/Kconfig"
endif
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] LoongArch: Remove unused arch/loongarch/crypto directory
2026-05-17 3:14 [PATCH] LoongArch: Remove unused arch/loongarch/crypto directory Ethan Nelson-Moore
@ 2026-05-22 12:35 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2026-05-22 12:35 UTC (permalink / raw)
To: Ethan Nelson-Moore
Cc: loongarch, linux-crypto, Huacai Chen, WANG Xuerui,
David S. Miller
On Sat, May 16, 2026 at 08:14:26PM -0700, Ethan Nelson-Moore wrote:
> All LoongArch crypto code was moved to arch/loongarch/lib in
> commit 72f51a4f4b07 ("loongarch/crc32: expose CRC32 functions through
> lib"). However, arch/loongarch/crypto still contains stub Kconfig and
> Makefile files. Remove these unnecessary files.
>
> Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
> ---
> arch/loongarch/Makefile | 2 --
> arch/loongarch/crypto/Kconfig | 5 -----
> arch/loongarch/crypto/Makefile | 4 ----
> crypto/Kconfig | 3 ---
> 4 files changed, 14 deletions(-)
> delete mode 100644 arch/loongarch/crypto/Kconfig
> delete mode 100644 arch/loongarch/crypto/Makefile
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-22 12:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-17 3:14 [PATCH] LoongArch: Remove unused arch/loongarch/crypto directory Ethan Nelson-Moore
2026-05-22 12:35 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox