Skip to content

Commit 39e5611

Browse files
sravnborgandreas-gaisler
authored andcommitted
sparc64: Fix prototype warning for vmemmap_free
Fix the following warning: arch/sparc/mm/init_64.c:2644:6: warning: no previous prototype for ‘vmemmap_free’ The function vmemmap_free() is only used for systems with CONFIG_MEMORY_HOTPLUG defined - and sparc64 do not support this. Drop the empty function as it has no users. Signed-off-by: Sam Ravnborg <[email protected]> Cc: Andreas Larsson <[email protected]> Cc: David S. Miller <[email protected]> Reviewed-by: Andreas Larsson <[email protected]> Tested-by: Andreas Larsson <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andreas Larsson <[email protected]>
1 parent 4a43364 commit 39e5611

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/sparc/mm/init_64.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2640,11 +2640,6 @@ int __meminit vmemmap_populate(unsigned long vstart, unsigned long vend,
26402640

26412641
return 0;
26422642
}
2643-
2644-
void vmemmap_free(unsigned long start, unsigned long end,
2645-
struct vmem_altmap *altmap)
2646-
{
2647-
}
26482643
#endif /* CONFIG_SPARSEMEM_VMEMMAP */
26492644

26502645
/* These are actually filled in at boot time by sun4{u,v}_pgprot_init() */

0 commit comments

Comments
 (0)