[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH hurd 4/6] x86_64: do not define mach_cpu_subtypes since we don't
From: |
Flavio Cruz |
Subject: |
[PATCH hurd 4/6] x86_64: do not define mach_cpu_subtypes since we don't use it |
Date: |
Sun, 21 Jan 2024 16:07:55 -0500 |
---
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