* [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
@ 2024-07-14 10:58 Masahiro Yamada
2024-07-14 12:58 ` Randy Dunlap
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: Masahiro Yamada @ 2024-07-14 10:58 UTC (permalink / raw)
To: linux-kbuild, Catalin Marinas, Will Deacon, linux-arm-kernel
Cc: linux-kernel, Masahiro Yamada
The condition 'select HAVE_ARCH_KASAN' is always true because
there is 'select HAVE_ARCH_KASAN' statement above.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
arch/arm64/Kconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index c87d16b12e9b..d37cbfc3031e 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -167,9 +167,9 @@ config ARM64
select HAVE_ARCH_JUMP_LABEL
select HAVE_ARCH_JUMP_LABEL_RELATIVE
select HAVE_ARCH_KASAN
- select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
- select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
- select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
+ select HAVE_ARCH_KASAN_VMALLOC
+ select HAVE_ARCH_KASAN_SW_TAGS
+ select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
# Some instrumentation may be unsound, hence EXPERT
select HAVE_ARCH_KCSAN if EXPERT
select HAVE_ARCH_KFENCE
--
2.43.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
2024-07-14 10:58 [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig Masahiro Yamada
@ 2024-07-14 12:58 ` Randy Dunlap
2024-07-14 16:03 ` Masahiro Yamada
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Randy Dunlap @ 2024-07-14 12:58 UTC (permalink / raw)
To: Masahiro Yamada, linux-kbuild, Catalin Marinas, Will Deacon,
linux-arm-kernel
Cc: linux-kernel
On 7/14/24 3:58 AM, Masahiro Yamada wrote:
> The condition 'select HAVE_ARCH_KASAN' is always true because
> there is 'select HAVE_ARCH_KASAN' statement above.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.
> ---
>
> arch/arm64/Kconfig | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index c87d16b12e9b..d37cbfc3031e 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -167,9 +167,9 @@ config ARM64
> select HAVE_ARCH_JUMP_LABEL
> select HAVE_ARCH_JUMP_LABEL_RELATIVE
> select HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
> + select HAVE_ARCH_KASAN_VMALLOC
> + select HAVE_ARCH_KASAN_SW_TAGS
> + select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
> # Some instrumentation may be unsound, hence EXPERT
> select HAVE_ARCH_KCSAN if EXPERT
> select HAVE_ARCH_KFENCE
--
~Randy
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
2024-07-14 10:58 [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig Masahiro Yamada
2024-07-14 12:58 ` Randy Dunlap
@ 2024-07-14 16:03 ` Masahiro Yamada
2024-07-14 16:06 ` Masahiro Yamada
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Masahiro Yamada @ 2024-07-14 16:03 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, linux-arm-kernel; +Cc: linux-kernel, linux-kbuild
On Sun, Jul 14, 2024 at 7:58 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> The condition 'select HAVE_ARCH_KASAN' is always true because
> there is 'select HAVE_ARCH_KASAN' statement above.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
> arch/arm64/Kconfig | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index c87d16b12e9b..d37cbfc3031e 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -167,9 +167,9 @@ config ARM64
> select HAVE_ARCH_JUMP_LABEL
> select HAVE_ARCH_JUMP_LABEL_RELATIVE
> select HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
> + select HAVE_ARCH_KASAN_VMALLOC
> + select HAVE_ARCH_KASAN_SW_TAGS
> + select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
> # Some instrumentation may be unsound, hence EXPERT
> select HAVE_ARCH_KCSAN if EXPERT
> select HAVE_ARCH_KFENCE
> --
> 2.43.0
>
I expect this patch will go through the arm64 tree.
(I just sent it to the kbuild ML by mistake)
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
2024-07-14 10:58 [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig Masahiro Yamada
2024-07-14 12:58 ` Randy Dunlap
2024-07-14 16:03 ` Masahiro Yamada
@ 2024-07-14 16:06 ` Masahiro Yamada
2024-07-15 2:41 ` Anshuman Khandual
2024-07-15 13:29 ` Mark Rutland
4 siblings, 0 replies; 9+ messages in thread
From: Masahiro Yamada @ 2024-07-14 16:06 UTC (permalink / raw)
To: linux-kbuild, Catalin Marinas, Will Deacon, linux-arm-kernel; +Cc: linux-kernel
On Sun, Jul 14, 2024 at 7:58 PM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> The condition 'select HAVE_ARCH_KASAN' is always true because
This is a typo.
I meant,
The condition 'if HAVE_ARCH_KASAN' is always true because
> there is 'select HAVE_ARCH_KASAN' statement above.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
> arch/arm64/Kconfig | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index c87d16b12e9b..d37cbfc3031e 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -167,9 +167,9 @@ config ARM64
> select HAVE_ARCH_JUMP_LABEL
> select HAVE_ARCH_JUMP_LABEL_RELATIVE
> select HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
> + select HAVE_ARCH_KASAN_VMALLOC
> + select HAVE_ARCH_KASAN_SW_TAGS
> + select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
> # Some instrumentation may be unsound, hence EXPERT
> select HAVE_ARCH_KCSAN if EXPERT
> select HAVE_ARCH_KFENCE
> --
> 2.43.0
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
2024-07-14 10:58 [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig Masahiro Yamada
` (2 preceding siblings ...)
2024-07-14 16:06 ` Masahiro Yamada
@ 2024-07-15 2:41 ` Anshuman Khandual
2024-07-15 13:43 ` Mark Rutland
2024-07-15 13:29 ` Mark Rutland
4 siblings, 1 reply; 9+ messages in thread
From: Anshuman Khandual @ 2024-07-15 2:41 UTC (permalink / raw)
To: Masahiro Yamada, linux-kbuild, Catalin Marinas, Will Deacon,
linux-arm-kernel
Cc: linux-kernel
On 7/14/24 16:28, Masahiro Yamada wrote:
> The condition 'select HAVE_ARCH_KASAN' is always true because
> there is 'select HAVE_ARCH_KASAN' statement above.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
> arch/arm64/Kconfig | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index c87d16b12e9b..d37cbfc3031e 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -167,9 +167,9 @@ config ARM64
> select HAVE_ARCH_JUMP_LABEL
> select HAVE_ARCH_JUMP_LABEL_RELATIVE
> select HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
> + select HAVE_ARCH_KASAN_VMALLOC
> + select HAVE_ARCH_KASAN_SW_TAGS
> + select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
> # Some instrumentation may be unsound, hence EXPERT
> select HAVE_ARCH_KCSAN if EXPERT
> select HAVE_ARCH_KFENCE
There is another similar instance with HAVE_FUNCTION_GRAPH_TRACER as well.
Just wondering if the following change should be folded in here ?
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -210,8 +210,8 @@ config ARM64
select HAVE_FTRACE_MCOUNT_RECORD
select HAVE_FUNCTION_TRACER
select HAVE_FUNCTION_ERROR_INJECTION
- select HAVE_FUNCTION_GRAPH_RETVAL if HAVE_FUNCTION_GRAPH_TRACER
select HAVE_FUNCTION_GRAPH_TRACER
+ select HAVE_FUNCTION_GRAPH_RETVAL
select HAVE_GCC_PLUGINS
select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && \
HW_PERF_EVENTS && HAVE_PERF_EVENTS_NMI
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
2024-07-14 10:58 [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig Masahiro Yamada
` (3 preceding siblings ...)
2024-07-15 2:41 ` Anshuman Khandual
@ 2024-07-15 13:29 ` Mark Rutland
2024-07-15 13:55 ` Masahiro Yamada
4 siblings, 1 reply; 9+ messages in thread
From: Mark Rutland @ 2024-07-15 13:29 UTC (permalink / raw)
To: Masahiro Yamada
Cc: linux-kbuild, Catalin Marinas, Will Deacon, linux-arm-kernel,
linux-kernel
On Sun, Jul 14, 2024 at 07:58:46PM +0900, Masahiro Yamada wrote:
> The condition 'select HAVE_ARCH_KASAN' is always true because
> there is 'select HAVE_ARCH_KASAN' statement above.
>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Looks like we forgot to simplify this in commit:
0383808e4d99ac31 ("arm64: kasan: Reduce minimum shadow alignment and enable 5 level paging")
... where we began selecting HAVE_ARCH_KASAN unconditionally.
FWIW:
Acked-by: Mark Rutland <mark.rutland@arm.com>
Mark.
> ---
>
> arch/arm64/Kconfig | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index c87d16b12e9b..d37cbfc3031e 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -167,9 +167,9 @@ config ARM64
> select HAVE_ARCH_JUMP_LABEL
> select HAVE_ARCH_JUMP_LABEL_RELATIVE
> select HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
> - select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
> + select HAVE_ARCH_KASAN_VMALLOC
> + select HAVE_ARCH_KASAN_SW_TAGS
> + select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
> # Some instrumentation may be unsound, hence EXPERT
> select HAVE_ARCH_KCSAN if EXPERT
> select HAVE_ARCH_KFENCE
> --
> 2.43.0
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
2024-07-15 2:41 ` Anshuman Khandual
@ 2024-07-15 13:43 ` Mark Rutland
2024-07-15 13:59 ` Masahiro Yamada
0 siblings, 1 reply; 9+ messages in thread
From: Mark Rutland @ 2024-07-15 13:43 UTC (permalink / raw)
To: Anshuman Khandual
Cc: Masahiro Yamada, linux-kbuild, Catalin Marinas, Will Deacon,
linux-arm-kernel, linux-kernel
On Mon, Jul 15, 2024 at 08:11:08AM +0530, Anshuman Khandual wrote:
> On 7/14/24 16:28, Masahiro Yamada wrote:
> > The condition 'select HAVE_ARCH_KASAN' is always true because
> > there is 'select HAVE_ARCH_KASAN' statement above.
> >
> > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> > ---
> >
> > arch/arm64/Kconfig | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> > index c87d16b12e9b..d37cbfc3031e 100644
> > --- a/arch/arm64/Kconfig
> > +++ b/arch/arm64/Kconfig
> > @@ -167,9 +167,9 @@ config ARM64
> > select HAVE_ARCH_JUMP_LABEL
> > select HAVE_ARCH_JUMP_LABEL_RELATIVE
> > select HAVE_ARCH_KASAN
> > - select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
> > - select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
> > - select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
> > + select HAVE_ARCH_KASAN_VMALLOC
> > + select HAVE_ARCH_KASAN_SW_TAGS
> > + select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
> > # Some instrumentation may be unsound, hence EXPERT
> > select HAVE_ARCH_KCSAN if EXPERT
> > select HAVE_ARCH_KFENCE
>
> There is another similar instance with HAVE_FUNCTION_GRAPH_TRACER as well.
> Just wondering if the following change should be folded in here ?
>
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -210,8 +210,8 @@ config ARM64
> select HAVE_FTRACE_MCOUNT_RECORD
> select HAVE_FUNCTION_TRACER
> select HAVE_FUNCTION_ERROR_INJECTION
> - select HAVE_FUNCTION_GRAPH_RETVAL if HAVE_FUNCTION_GRAPH_TRACER
> select HAVE_FUNCTION_GRAPH_TRACER
> + select HAVE_FUNCTION_GRAPH_RETVAL
> select HAVE_GCC_PLUGINS
> select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && \
> HW_PERF_EVENTS && HAVE_PERF_EVENTS_NMI
That looks like a sensible cleanup, but I think it'd be better as a
separate patch.
It looks like that has always been redundant since it was introduced in
commit
3646970322464c21 ("arm64: ftrace: Enable HAVE_FUNCTION_GRAPH_RETVAL")
... would you mind spinning a patch?
Mark.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
2024-07-15 13:29 ` Mark Rutland
@ 2024-07-15 13:55 ` Masahiro Yamada
0 siblings, 0 replies; 9+ messages in thread
From: Masahiro Yamada @ 2024-07-15 13:55 UTC (permalink / raw)
To: Mark Rutland
Cc: linux-kbuild, Catalin Marinas, Will Deacon, linux-arm-kernel,
linux-kernel
On Mon, Jul 15, 2024 at 10:29 PM Mark Rutland <mark.rutland@arm.com> wrote:
>
> On Sun, Jul 14, 2024 at 07:58:46PM +0900, Masahiro Yamada wrote:
> > The condition 'select HAVE_ARCH_KASAN' is always true because
> > there is 'select HAVE_ARCH_KASAN' statement above.
> >
> > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
>
> Looks like we forgot to simplify this in commit:
>
> 0383808e4d99ac31 ("arm64: kasan: Reduce minimum shadow alignment and enable 5 level paging")
>
> ... where we began selecting HAVE_ARCH_KASAN unconditionally.
Good point. This may be worth recording in the description.
I will send v2 with a typo fixed.
Thanks.
>
> FWIW:
>
> Acked-by: Mark Rutland <mark.rutland@arm.com>
>
> Mark.
>
> > ---
> >
> > arch/arm64/Kconfig | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> > index c87d16b12e9b..d37cbfc3031e 100644
> > --- a/arch/arm64/Kconfig
> > +++ b/arch/arm64/Kconfig
> > @@ -167,9 +167,9 @@ config ARM64
> > select HAVE_ARCH_JUMP_LABEL
> > select HAVE_ARCH_JUMP_LABEL_RELATIVE
> > select HAVE_ARCH_KASAN
> > - select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
> > - select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
> > - select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
> > + select HAVE_ARCH_KASAN_VMALLOC
> > + select HAVE_ARCH_KASAN_SW_TAGS
> > + select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
> > # Some instrumentation may be unsound, hence EXPERT
> > select HAVE_ARCH_KCSAN if EXPERT
> > select HAVE_ARCH_KFENCE
> > --
> > 2.43.0
> >
> >
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig
2024-07-15 13:43 ` Mark Rutland
@ 2024-07-15 13:59 ` Masahiro Yamada
0 siblings, 0 replies; 9+ messages in thread
From: Masahiro Yamada @ 2024-07-15 13:59 UTC (permalink / raw)
To: Mark Rutland
Cc: Anshuman Khandual, linux-kbuild, Catalin Marinas, Will Deacon,
linux-arm-kernel, linux-kernel
On Mon, Jul 15, 2024 at 10:44 PM Mark Rutland <mark.rutland@arm.com> wrote:
>
> On Mon, Jul 15, 2024 at 08:11:08AM +0530, Anshuman Khandual wrote:
> > On 7/14/24 16:28, Masahiro Yamada wrote:
> > > The condition 'select HAVE_ARCH_KASAN' is always true because
> > > there is 'select HAVE_ARCH_KASAN' statement above.
> > >
> > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> > > ---
> > >
> > > arch/arm64/Kconfig | 6 +++---
> > > 1 file changed, 3 insertions(+), 3 deletions(-)
> > >
> > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> > > index c87d16b12e9b..d37cbfc3031e 100644
> > > --- a/arch/arm64/Kconfig
> > > +++ b/arch/arm64/Kconfig
> > > @@ -167,9 +167,9 @@ config ARM64
> > > select HAVE_ARCH_JUMP_LABEL
> > > select HAVE_ARCH_JUMP_LABEL_RELATIVE
> > > select HAVE_ARCH_KASAN
> > > - select HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN
> > > - select HAVE_ARCH_KASAN_SW_TAGS if HAVE_ARCH_KASAN
> > > - select HAVE_ARCH_KASAN_HW_TAGS if (HAVE_ARCH_KASAN && ARM64_MTE)
> > > + select HAVE_ARCH_KASAN_VMALLOC
> > > + select HAVE_ARCH_KASAN_SW_TAGS
> > > + select HAVE_ARCH_KASAN_HW_TAGS if ARM64_MTE
> > > # Some instrumentation may be unsound, hence EXPERT
> > > select HAVE_ARCH_KCSAN if EXPERT
> > > select HAVE_ARCH_KFENCE
> >
> > There is another similar instance with HAVE_FUNCTION_GRAPH_TRACER as well.
> > Just wondering if the following change should be folded in here ?
> >
> > --- a/arch/arm64/Kconfig
> > +++ b/arch/arm64/Kconfig
> > @@ -210,8 +210,8 @@ config ARM64
> > select HAVE_FTRACE_MCOUNT_RECORD
> > select HAVE_FUNCTION_TRACER
> > select HAVE_FUNCTION_ERROR_INJECTION
> > - select HAVE_FUNCTION_GRAPH_RETVAL if HAVE_FUNCTION_GRAPH_TRACER
> > select HAVE_FUNCTION_GRAPH_TRACER
> > + select HAVE_FUNCTION_GRAPH_RETVAL
> > select HAVE_GCC_PLUGINS
> > select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && \
> > HW_PERF_EVENTS && HAVE_PERF_EVENTS_NMI
>
> That looks like a sensible cleanup, but I think it'd be better as a
> separate patch.
>
> It looks like that has always been redundant since it was introduced in
> commit
>
> 3646970322464c21 ("arm64: ftrace: Enable HAVE_FUNCTION_GRAPH_RETVAL")
>
> ... would you mind spinning a patch?
>
> Mark.
Agree.
We can have a separate patch.
I can see more redundant 'if' and 'depends on'.
For example, KERNEL_MODE_NEON is always 'y'.
config KERNEL_MODE_NEON
def_bool y
So, I can see redundancy in
select ARCH_HAS_KERNEL_FPU_SUPPORT if KERNEL_MODE_NEON
and
config EFI
bool "UEFI runtime support"
depends on OF && !CPU_BIG_ENDIAN
depends on KERNEL_MODE_NEON
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-07-15 14:00 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-14 10:58 [PATCH] arm64: remove redundant 'if HAVE_ARCH_KASAN' in Kconfig Masahiro Yamada
2024-07-14 12:58 ` Randy Dunlap
2024-07-14 16:03 ` Masahiro Yamada
2024-07-14 16:06 ` Masahiro Yamada
2024-07-15 2:41 ` Anshuman Khandual
2024-07-15 13:43 ` Mark Rutland
2024-07-15 13:59 ` Masahiro Yamada
2024-07-15 13:29 ` Mark Rutland
2024-07-15 13:55 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox