[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH hurd 4/6] x86_64: do not define mach_cpu_subtypes since we do
From: |
Samuel Thibault |
Subject: |
Re: [PATCH hurd 4/6] x86_64: do not define mach_cpu_subtypes since we don't use it |
Date: |
Sun, 8 Sep 2024 23:55:42 +0200 |
Applied, thanks!
Flavio Cruz, le dim. 21 janv. 2024 16:07:55 -0500, a ecrit:
> ---
> proc/cpu-types.c | 2 ++
> proc/host.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/proc/cpu-types.c b/proc/cpu-types.c
> index 3d89d5a..7a814f6 100644
> --- a/proc/cpu-types.c
> +++ b/proc/cpu-types.c
> @@ -38,6 +38,7 @@ const char *const mach_cpu_types[] =
> #endif
> };
>
> +#ifndef __x86_64__
> const char *const mach_cpu_subtypes[][32] =
> {
> [CPU_TYPE_VAX] =
> @@ -167,3 +168,4 @@ const char *const mach_cpu_subtypes[][32] =
> [CPU_SUBTYPE_ALPHA_21064] = "ALPHA_21064",
> },
> };
> +#endif /* !__x86_64__ */
> diff --git a/proc/host.c b/proc/host.c
> index 823bda5..c2b53c3 100644
> --- a/proc/host.c
> +++ b/proc/host.c
> @@ -340,7 +340,9 @@ void
> initialize_version_info (void)
> {
> extern const char *const mach_cpu_types[];
> +#ifndef __x86_64__
> extern const char *const mach_cpu_subtypes[][32];
> +#endif
> kernel_version_t kv;
> char *p;
> struct host_basic_info info;
> --
> 2.39.2
>
>
--
Samuel
<i> ben oui ce serait idiot, mais osb
-+- m'en fous de faire un truc débile ! -+-
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH hurd 4/6] x86_64: do not define mach_cpu_subtypes since we don't use it,
Samuel Thibault <=