unsigned long size;
 };
 
+/* Map CPUID(4) EAX.cache_type to linux/cacheinfo.h types */
+static const enum cache_type cache_type_map[] = {
+       [CTYPE_NULL]    = CACHE_TYPE_NOCACHE,
+       [CTYPE_DATA]    = CACHE_TYPE_DATA,
+       [CTYPE_INST]    = CACHE_TYPE_INST,
+       [CTYPE_UNIFIED] = CACHE_TYPE_UNIFIED,
+};
+
 /*
  * Fallback AMD CPUID(4) emulation
  * AMD CPUs with TOPOEXT can just use CPUID(0x8000001d)
 static const unsigned char levels[] = { 1, 1, 2, 3 };
 static const unsigned char types[] = { 1, 2, 3, 3 };
 
-static const enum cache_type cache_type_map[] = {
-       [CTYPE_NULL] = CACHE_TYPE_NOCACHE,
-       [CTYPE_DATA] = CACHE_TYPE_DATA,
-       [CTYPE_INST] = CACHE_TYPE_INST,
-       [CTYPE_UNIFIED] = CACHE_TYPE_UNIFIED,
-};
-
 static void legacy_amd_cpuid4(int index, union _cpuid4_leaf_eax *eax,
                              union _cpuid4_leaf_ebx *ebx, union _cpuid4_leaf_ecx *ecx)
 {