* [PATCH] arm64: Kconfig: remove unnecessary selection of CRC32
@ 2025-04-14 17:40 Eric Biggers
2025-04-18 13:24 ` Ard Biesheuvel
2025-04-29 20:27 ` Will Deacon
0 siblings, 2 replies; 3+ messages in thread
From: Eric Biggers @ 2025-04-14 17:40 UTC (permalink / raw)
To: linux-arm-kernel, Catalin Marinas, Will Deacon
Cc: linux-crypto, linux-kernel, Ard Biesheuvel
From: Eric Biggers <ebiggers@google.com>
The selection of CRC32 by ARM64 was added by commit 7481cddf29ed
("arm64/lib: add accelerated crc32 routines") as a workaround for the
fact that, at the time, the CRC32 library functions used weak symbols to
allow architecture-specific overrides. That only worked when CRC32 was
built-in, and thus ARM64 was made to just force CRC32 to built-in.
Now that the CRC32 library no longer uses weak symbols, that no longer
applies. And the selection does not fulfill a user dependency either;
those all have their own selections from other options. Therefore, the
selection of CRC32 by ARM64 is no longer necessary. Remove it.
Note that this does not necessarily result in CRC32 no longer being set
to y, as it still tends to get selected by something else anyway.
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
Please consider taking this through the arm64 tree. But if it doesn't
get picked up there, I'll take it through the crc tree.
arch/arm64/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index a182295e6f08..14073b0094c1 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -132,11 +132,10 @@ config ARM64
select BUILDTIME_TABLE_SORT
select CLONE_BACKWARDS
select COMMON_CLK
select CPU_PM if (SUSPEND || CPU_IDLE)
select CPUMASK_OFFSTACK if NR_CPUS > 256
- select CRC32
select DCACHE_WORD_ACCESS
select DYNAMIC_FTRACE if FUNCTION_TRACER
select DMA_BOUNCE_UNALIGNED_KMALLOC
select DMA_DIRECT_REMAP
select EDAC_SUPPORT
base-commit: 8ffd015db85fea3e15a77027fda6c02ced4d2444
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: Kconfig: remove unnecessary selection of CRC32
2025-04-14 17:40 [PATCH] arm64: Kconfig: remove unnecessary selection of CRC32 Eric Biggers
@ 2025-04-18 13:24 ` Ard Biesheuvel
2025-04-29 20:27 ` Will Deacon
1 sibling, 0 replies; 3+ messages in thread
From: Ard Biesheuvel @ 2025-04-18 13:24 UTC (permalink / raw)
To: Eric Biggers
Cc: linux-arm-kernel, Catalin Marinas, Will Deacon, linux-crypto,
linux-kernel
On Mon, 14 Apr 2025 at 19:41, Eric Biggers <ebiggers@kernel.org> wrote:
>
> From: Eric Biggers <ebiggers@google.com>
>
> The selection of CRC32 by ARM64 was added by commit 7481cddf29ed
> ("arm64/lib: add accelerated crc32 routines") as a workaround for the
> fact that, at the time, the CRC32 library functions used weak symbols to
> allow architecture-specific overrides. That only worked when CRC32 was
> built-in, and thus ARM64 was made to just force CRC32 to built-in.
>
> Now that the CRC32 library no longer uses weak symbols, that no longer
> applies. And the selection does not fulfill a user dependency either;
> those all have their own selections from other options. Therefore, the
> selection of CRC32 by ARM64 is no longer necessary. Remove it.
>
> Note that this does not necessarily result in CRC32 no longer being set
> to y, as it still tends to get selected by something else anyway.
>
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
>
> Please consider taking this through the arm64 tree. But if it doesn't
> get picked up there, I'll take it through the crc tree.
>
> arch/arm64/Kconfig | 1 -
> 1 file changed, 1 deletion(-)
>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index a182295e6f08..14073b0094c1 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -132,11 +132,10 @@ config ARM64
> select BUILDTIME_TABLE_SORT
> select CLONE_BACKWARDS
> select COMMON_CLK
> select CPU_PM if (SUSPEND || CPU_IDLE)
> select CPUMASK_OFFSTACK if NR_CPUS > 256
> - select CRC32
> select DCACHE_WORD_ACCESS
> select DYNAMIC_FTRACE if FUNCTION_TRACER
> select DMA_BOUNCE_UNALIGNED_KMALLOC
> select DMA_DIRECT_REMAP
> select EDAC_SUPPORT
>
> base-commit: 8ffd015db85fea3e15a77027fda6c02ced4d2444
> --
> 2.49.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: Kconfig: remove unnecessary selection of CRC32
2025-04-14 17:40 [PATCH] arm64: Kconfig: remove unnecessary selection of CRC32 Eric Biggers
2025-04-18 13:24 ` Ard Biesheuvel
@ 2025-04-29 20:27 ` Will Deacon
1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2025-04-29 20:27 UTC (permalink / raw)
To: linux-arm-kernel, Catalin Marinas, Eric Biggers
Cc: kernel-team, Will Deacon, linux-crypto, linux-kernel,
Ard Biesheuvel
On Mon, 14 Apr 2025 10:40:18 -0700, Eric Biggers wrote:
> The selection of CRC32 by ARM64 was added by commit 7481cddf29ed
> ("arm64/lib: add accelerated crc32 routines") as a workaround for the
> fact that, at the time, the CRC32 library functions used weak symbols to
> allow architecture-specific overrides. That only worked when CRC32 was
> built-in, and thus ARM64 was made to just force CRC32 to built-in.
>
> Now that the CRC32 library no longer uses weak symbols, that no longer
> applies. And the selection does not fulfill a user dependency either;
> those all have their own selections from other options. Therefore, the
> selection of CRC32 by ARM64 is no longer necessary. Remove it.
>
> [...]
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64: Kconfig: remove unnecessary selection of CRC32
https://git.kernel.org/arm64/c/e2eaeba0522d
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-29 20:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-14 17:40 [PATCH] arm64: Kconfig: remove unnecessary selection of CRC32 Eric Biggers
2025-04-18 13:24 ` Ard Biesheuvel
2025-04-29 20:27 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).