mm/sparsemem: cleanup 'section number' data types

David points out that there is a mixture of 'int' and 'unsigned long'
usage for section number data types.  Update the memory hotplug path to
use 'unsigned long' consistently for section numbers.

[ fix printk format]
Signed-off-by: Dan Williams <>
Reported-by: David Hildenbrand <>
Reviewed-by: David Hildenbrand <>
Cc: Michal Hocko <>
Cc: Oscar Salvador <>
Cc: Jason Gunthorpe <>
Cc: Christoph Hellwig <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
2 files changed