From: Philippe Mathieu-Daudé Date: Tue, 1 Jul 2025 14:08:32 +0000 (+0100) Subject: target/arm: Reduce arm_cpu_post_init() declaration scope X-Git-Tag: v10.1.0-rc0~37^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a94d8047d9dca2d7e73bbc863fabbea2df1bab6;p=thirdparty%2Fqemu.git target/arm: Reduce arm_cpu_post_init() declaration scope arm_cpu_post_init() is only used within the same file unit. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-id: 20250623121845.7214-3-philmd@linaro.org Signed-off-by: Peter Maydell --- diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 8e77414c2b9..7030540f91f 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1713,7 +1713,7 @@ static void arm_cpu_propagate_feature_implications(ARMCPU *cpu) } } -void arm_cpu_post_init(Object *obj) +static void arm_cpu_post_init(Object *obj) { ARMCPU *cpu = ARM_CPU(obj); diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 8744922330d..03381539238 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1168,8 +1168,6 @@ void arm_gt_sel2vtimer_cb(void *opaque); unsigned int gt_cntfrq_period_ns(ARMCPU *cpu); void gt_rme_post_el_change(ARMCPU *cpu, void *opaque); -void arm_cpu_post_init(Object *obj); - #define ARM_AFF0_SHIFT 0 #define ARM_AFF0_MASK (0xFFULL << ARM_AFF0_SHIFT) #define ARM_AFF1_SHIFT 8