+ riscv-switch-over-to-generic-free_initmem.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: riscv: switch over to generic free_initmem()
has been added to the -mm tree.  Its filename is
     riscv-switch-over-to-generic-free_initmem.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/riscv-switch-over-to-generic-free_initmem.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/riscv-switch-over-to-generic-free_initmem.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Mike Rapoport <rppt@xxxxxxxxxxxxx>
Subject: riscv: switch over to generic free_initmem()

The riscv version of free_initmem() differs from the generic one only in
that it sets the freed memory to zero.

Make ricsv use the generic version and poison the freed memory.

Link: http://lkml.kernel.org/r/1550515285-17446-5-git-send-email-rppt@xxxxxxxxxxxxx
Signed-off-by: Mike Rapoport <rppt@xxxxxxxxxxxxx>
Reviewed-by: Palmer Dabbelt <palmer@xxxxxxxxxx>
Cc: Christoph Hellwig <hch@xxxxxx>
Cc: Richard Kuo <rkuo@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 arch/riscv/mm/init.c |    5 -----
 1 file changed, 5 deletions(-)

--- a/arch/riscv/mm/init.c~riscv-switch-over-to-generic-free_initmem
+++ a/arch/riscv/mm/init.c
@@ -62,11 +62,6 @@ void __init mem_init(void)
 	mem_init_print_info(NULL);
 }
 
-void free_initmem(void)
-{
-	free_initmem_default(0);
-}
-
 #ifdef CONFIG_BLK_DEV_INITRD
 static void __init setup_initrd(void)
 {
_

Patches currently in -mm which might be from rppt@xxxxxxxxxxxxx are

init-provide-a-generic-free_initmem-implementation.patch
hexagon-switch-over-to-generic-free_initmem.patch
init-free_initmem-poison-freed-init-memory.patch
riscv-switch-over-to-generic-free_initmem.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux