aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/mm/init_32.c
diff options
context:
space:
mode:
authorMike Rapoport <[email protected]>2019-05-13 17:18:46 -0700
committerLinus Torvalds <[email protected]>2019-05-14 09:47:47 -0700
commitf40399992a245c852ad446e265d1567010db5e10 (patch)
tree840728fb509eed29dd784e96de1d9e5c2e86ecc1 /arch/sparc/mm/init_32.c
parent522c99194549e50a9bd76427a06922d7a68237d6 (diff)
init: free_initmem: poison freed init memory
Various architectures including x86 poison the freed init memory. Do the same in the generic free_initmem implementation and switch sparc32 architecture that is identical to the generic code over to it now. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Mike Rapoport <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Richard Kuo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/sparc/mm/init_32.c')
-rw-r--r--arch/sparc/mm/init_32.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c
index 417f89d5e0b2..046ab116cc8c 100644
--- a/arch/sparc/mm/init_32.c
+++ b/arch/sparc/mm/init_32.c
@@ -294,11 +294,6 @@ void __init mem_init(void)
mem_init_print_info(NULL);
}
-void free_initmem (void)
-{
- free_initmem_default(POISON_FREE_INITMEM);
-}
-
void sparc_flush_page_to_ram(struct page *page)
{
unsigned long vaddr = (unsigned long)page_address(page);