sparc: simplify module_alloc()
Define MODULES_VADDR and MODULES_END as VMALLOC_START and VMALLOC_END for 32-bit and reduce module_alloc() to __vmalloc_node_range(size, 1, MODULES_VADDR, MODULES_END, ...) as with the new defines the allocations becomes identical for both 32 and 64 bits. While on it, drop unused include of <linux/jump_label.h> Suggested-by:Sam Ravnborg <sam@ravnborg.org> Signed-off-by:
Mike Rapoport (IBM) <rppt@kernel.org> Reviewed-by:
Sam Ravnborg <sam@ravnborg.org> Signed-off-by:
Luis Chamberlain <mcgrof@kernel.org>
Showing
Please register or sign in to comment