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

arm64: alternatives: make apply_alternatives_vdso() static

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>
Link: https://lore.kernel.org/r/20221117131650.4056636-1-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Mark Rutland and committed by
Will Deacon
56eea7f8 d3d10f0d

+1 -1
+1 -1
arch/arm64/kernel/alternative.c
··· 196 196 } 197 197 } 198 198 199 - void apply_alternatives_vdso(void) 199 + static void apply_alternatives_vdso(void) 200 200 { 201 201 struct alt_region region; 202 202 const struct elf64_hdr *hdr;