Re: [PATCH v1 1/4] mm/memory_hotplug: use "unsigned long" for PFN in zone_for_pfn_range()
From: Oscar Salvador <osalvador@suse.de>
Date: 2021-07-15 09:32:06
Also in:
linux-acpi, lkml
From: Oscar Salvador <osalvador@suse.de>
Date: 2021-07-15 09:32:06
Also in:
linux-acpi, lkml
On Mon, Jul 12, 2021 at 02:40:49PM +0200, David Hildenbrand wrote:
Checkpatch complained on a follow-up patch that we are using "unsigned"
here, which defaults to "unsigned int" and checkpatch is correct.
Use "unsigned long" instead, just as we do in other places when handling
PFNs. This can bite us once we have physical addresses in the range of
multiple TB.
Fixes: e5e689302633 ("mm, memory_hotplug: display allowed zones in the preferred ordering")
Signed-off-by: David Hildenbrand <redacted>Reviewed-by: Oscar Salvador <osalvador@suse.de> -- Oscar Salvador SUSE L3