All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: alternatives: make apply_alternatives_vdso() static
@ 2022-11-17 13:16 Mark Rutland
  2022-11-18 19:40 ` Will Deacon
  2022-12-02 16:12 ` Jisheng Zhang
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Rutland @ 2022-11-17 13:16 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: catalin.marinas, joey.gouly, mark.rutland, will

We define and use apply_alternatives_vdso() within alternative.c, and
don't provide a prototype in a header. There's no need for it to be
visible outside of alternative.c, so mark it as static.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Joey Gouly <joey.gouly@arm.com>
Cc: Will Deacon <will@kernel.org>
---
 arch/arm64/kernel/alternative.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/kernel/alternative.c b/arch/arm64/kernel/alternative.c
index 91263d09ea65..0f5eaa4c3a39 100644
--- a/arch/arm64/kernel/alternative.c
+++ b/arch/arm64/kernel/alternative.c
@@ -196,7 +196,7 @@ static void __apply_alternatives(const struct alt_region *region,
 	}
 }
 
-void apply_alternatives_vdso(void)
+static void apply_alternatives_vdso(void)
 {
 	struct alt_region region;
 	const struct elf64_hdr *hdr;
-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: alternatives: make apply_alternatives_vdso() static
  2022-11-17 13:16 [PATCH] arm64: alternatives: make apply_alternatives_vdso() static Mark Rutland
@ 2022-11-18 19:40 ` Will Deacon
  2022-12-02 16:12 ` Jisheng Zhang
  1 sibling, 0 replies; 3+ messages in thread
From: Will Deacon @ 2022-11-18 19:40 UTC (permalink / raw)
  To: linux-arm-kernel, Mark Rutland
  Cc: catalin.marinas, kernel-team, Will Deacon, joey.gouly

On Thu, 17 Nov 2022 13:16:50 +0000, Mark Rutland wrote:
> We define and use apply_alternatives_vdso() within alternative.c, and
> don't provide a prototype in a header. There's no need for it to be
> visible outside of alternative.c, so mark it as static.
> 
> There should be no functional change as a result of this patch.
> 
> 
> [...]

Applied to arm64 (for-next/trivial), thanks!

[1/1] arm64: alternatives: make apply_alternatives_vdso() static
      https://git.kernel.org/arm64/c/56eea7f87fb6

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: alternatives: make apply_alternatives_vdso() static
  2022-11-17 13:16 [PATCH] arm64: alternatives: make apply_alternatives_vdso() static Mark Rutland
  2022-11-18 19:40 ` Will Deacon
@ 2022-12-02 16:12 ` Jisheng Zhang
  1 sibling, 0 replies; 3+ messages in thread
From: Jisheng Zhang @ 2022-12-02 16:12 UTC (permalink / raw)
  To: Mark Rutland; +Cc: linux-arm-kernel, catalin.marinas, joey.gouly, will

On Thu, Nov 17, 2022 at 01:16:50PM +0000, Mark Rutland wrote:
> We define and use apply_alternatives_vdso() within alternative.c, and
> don't provide a prototype in a header. There's no need for it to be
> visible outside of alternative.c, so mark it as static.
> 
> There should be no functional change as a result of this patch.
> 
> Signed-off-by: Mark Rutland <mark.rutland@arm.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Joey Gouly <joey.gouly@arm.com>
> Cc: Will Deacon <will@kernel.org>
> ---
>  arch/arm64/kernel/alternative.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/kernel/alternative.c b/arch/arm64/kernel/alternative.c
> index 91263d09ea65..0f5eaa4c3a39 100644
> --- a/arch/arm64/kernel/alternative.c
> +++ b/arch/arm64/kernel/alternative.c
> @@ -196,7 +196,7 @@ static void __apply_alternatives(const struct alt_region *region,
>  	}
>  }
>  
> -void apply_alternatives_vdso(void)
> +static void apply_alternatives_vdso(void)

I found this function can be marked as __init as well.

Thanks
>  {
>  	struct alt_region region;
>  	const struct elf64_hdr *hdr;
> -- 
> 2.30.2
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-02 16:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-17 13:16 [PATCH] arm64: alternatives: make apply_alternatives_vdso() static Mark Rutland
2022-11-18 19:40 ` Will Deacon
2022-12-02 16:12 ` Jisheng Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.