linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] provide a generic free_initmem implementation
@ 2019-02-18 18:41 Mike Rapoport
  2019-02-18 18:41 ` [PATCH v2 1/4] init: " Mike Rapoport
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Mike Rapoport @ 2019-02-18 18:41 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Christoph Hellwig, Palmer Dabbelt, Richard Kuo, linux-arch,
	linux-hexagon, linux-kernel, linux-mm, linux-riscv,
	Mike Rapoport

Hi,

Many architectures implement free_initmem() in exactly the same or very
similar way: they wrap the call to free_initmem_default() with sometimes
different 'poison' parameter.

These patches switch those architectures to use a generic implementation
that does free_initmem_default(POISON_FREE_INITMEM).

This was inspired by Christoph's patches for free_initrd_mem [1] and I
shamelessly copied changelog entries from his patches :)

v2: rebased on top of v5.0-rc7 + Christoph's patches for free_initrd_mem

[1] https://lore.kernel.org/lkml/20190213174621.29297-1-hch@lst.de/

Mike Rapoport (4):
  init: provide a generic free_initmem implementation
  hexagon: switch over to generic free_initmem()
  init: free_initmem: poison freed init memory
  riscv: switch over to generic free_initmem()

 arch/alpha/mm/init.c      |  6 ------
 arch/arc/mm/init.c        |  8 --------
 arch/c6x/mm/init.c        |  5 -----
 arch/h8300/mm/init.c      |  6 ------
 arch/hexagon/mm/init.c    | 10 ----------
 arch/microblaze/mm/init.c |  5 -----
 arch/nds32/mm/init.c      |  5 -----
 arch/nios2/mm/init.c      |  5 -----
 arch/openrisc/mm/init.c   |  5 -----
 arch/riscv/mm/init.c      |  5 -----
 arch/sh/mm/init.c         |  5 -----
 arch/sparc/mm/init_32.c   |  5 -----
 arch/unicore32/mm/init.c  |  5 -----
 arch/xtensa/mm/init.c     |  5 -----
 init/main.c               |  5 +++++
 15 files changed, 5 insertions(+), 80 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-03-25  7:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-18 18:41 [PATCH v2 0/4] provide a generic free_initmem implementation Mike Rapoport
2019-02-18 18:41 ` [PATCH v2 1/4] init: " Mike Rapoport
2019-02-18 18:41 ` [PATCH v2 2/4] hexagon: switch over to generic free_initmem() Mike Rapoport
2019-02-18 18:41 ` [PATCH v2 3/4] init: free_initmem: poison freed init memory Mike Rapoport
2019-02-18 18:41 ` [PATCH v2 4/4] riscv: switch over to generic free_initmem() Mike Rapoport
2019-03-25  7:20 ` [PATCH v2 0/4] provide a generic free_initmem implementation Mike Rapoport

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).