Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, NUMA: make srat.c 32bit safe

Make srat.c 32bit safe by removing the assumption that unsigned long
is 64bit.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>

Tejun Heo eca9ad31 7b2600f8

+2 -2
+2 -2
arch/x86/mm/srat.c
··· 138 138 void __init 139 139 acpi_numa_memory_affinity_init(struct acpi_srat_mem_affinity *ma) 140 140 { 141 - unsigned long start, end; 141 + u64 start, end; 142 142 int node, pxm; 143 143 144 144 if (srat_disabled()) ··· 167 167 return; 168 168 } 169 169 170 - printk(KERN_INFO "SRAT: Node %u PXM %u %lx-%lx\n", node, pxm, 170 + printk(KERN_INFO "SRAT: Node %u PXM %u %Lx-%Lx\n", node, pxm, 171 171 start, end); 172 172 } 173 173