On 3/12/25 20:45, Richard Henderson wrote:
> We were hiding a number of declarations from user-only,
> although it hurts nothing to allow them.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> include/hw/core/cpu.h | 10 ----------
> 1 file changed, 10 deletions(-)
>
> diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
> index 2fdb115b19..59394212fa 100644
> --- a/include/hw/core/cpu.h
> +++ b/include/hw/core/cpu.h
> @@ -614,8 +614,6 @@ extern bool mttcg_enabled;
> */
> bool cpu_paging_enabled(const CPUState *cpu);
>
> -#if !defined(CONFIG_USER_ONLY)
> -
> /**
> * cpu_get_memory_mapping:
> * @cpu: The CPU whose memory mappings are to be obtained.
> @@ -676,8 +674,6 @@ int cpu_write_elf32_qemunote(WriteCoreDumpFunction f, CPUState *cpu,
> */
> GuestPanicInformation *cpu_get_crash_info(CPUState *cpu);
>
> -#endif /* !CONFIG_USER_ONLY */
> -
> /**
> * CPUDumpFlags:
> * @CPU_DUMP_CODE:
> @@ -701,7 +697,6 @@ enum CPUDumpFlags {
> */
> void cpu_dump_state(CPUState *cpu, FILE *f, int flags);
>
> -#ifndef CONFIG_USER_ONLY
> /**
> * cpu_get_phys_page_attrs_debug:
> * @cpu: The CPU to obtain the physical page address for.
> @@ -758,8 +753,6 @@ bool cpu_virtio_is_big_endian(CPUState *cpu);
> */
> bool cpu_has_work(CPUState *cpu);
>
> -#endif /* CONFIG_USER_ONLY */
> -
> /**
> * cpu_list_add:
> * @cpu: The CPU to be added to the list of CPUs.
> @@ -1143,8 +1136,6 @@ const char *target_name(void);
>
> #ifdef COMPILING_PER_TARGET
>
> -#ifndef CONFIG_USER_ONLY
> -
> extern const VMStateDescription vmstate_cpu_common;
>
> #define VMSTATE_CPU() { \
> @@ -1154,7 +1145,6 @@ extern const VMStateDescription vmstate_cpu_common;
> .flags = VMS_STRUCT, \
> .offset = 0, \
> }
> -#endif /* !CONFIG_USER_ONLY */
>
> #endif /* COMPILING_PER_TARGET */
>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>