From d1fca448bf3b15e95913ad6643474ea62e7f80a9 Mon Sep 17 00:00:00 2001 From: Dave Hansen Date: Tue, 22 Sep 2026 21:26:33 -0700 Subject: [PATCH 18/75] x86/platform/uv: Remove unused GEO_MAX_LEN GEO_MAX_LEN was the size of the buffer needed to format a geoid_u into a human readable location string. No such formatting code has existed in the tree since the ia64 sn2 platform was removed, and the x86 uv_sysfs driver builds its location strings from geo_rack()/geo_slot()/geo_blade() without needing a fixed bound. The GEO_TYPE_* values and the geoid_u substructures are left alone: they describe the layout the UV BIOS fills in via uv_bios_get_geoinfo(), so they are an interface description rather than dead code. No functional change intended. --- arch/x86/include/asm/uv/uv_geo.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/include/asm/uv/uv_geo.h b/arch/x86/include/asm/uv/uv_geo.h index 027a9258dbca4..6c00c69b06031 100644 --- a/arch/x86/include/asm/uv/uv_geo.h +++ b/arch/x86/include/asm/uv/uv_geo.h @@ -70,8 +70,6 @@ union geoid_u { /* Defined constants */ -#define GEO_MAX_LEN 48 - #define GEO_TYPE_INVALID 0 #define GEO_TYPE_MODULE 1 #define GEO_TYPE_NODE 2 -- 2.43.0