linux/arch
Mike Rapoport 997aef68af init: provide a generic free_initmem implementation
Patch series "provide a generic free_initmem implementation", v2.

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 :)

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

This patch (of 2):

For most architectures free_initmem just a wrapper for the same
free_initmem_default(-1) call.  Provide that as a generic implementation
marked __weak.

Link: http://lkml.kernel.org/r/1550515285-17446-2-git-send-email-rppt@linux.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Richard Kuo <rkuo@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-05-14 09:47:47 -07:00
..
alpha init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
arc init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
arm initramfs: move the legacy keepinitrd parameter to core code 2019-05-14 09:47:47 -07:00
arm64 initramfs: move the legacy keepinitrd parameter to core code 2019-05-14 09:47:47 -07:00
c6x init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
csky DMA mapping updates for 5.2 2019-05-09 08:40:55 -07:00
h8300 init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
hexagon audit/stable-5.2 PR 20190507 2019-05-07 19:06:04 -07:00
ia64 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2019-05-07 22:03:58 -07:00
m68k initramfs: provide a generic free_initrd_mem implementation 2019-05-14 09:47:47 -07:00
microblaze init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
mips initramfs: poison freed initrd memory 2019-05-14 09:47:47 -07:00
nds32 init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
nios2 init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
openrisc init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
parisc initramfs: provide a generic free_initrd_mem implementation 2019-05-14 09:47:47 -07:00
powerpc initramfs: provide a generic free_initrd_mem implementation 2019-05-14 09:47:47 -07:00
riscv audit/stable-5.2 PR 20190507 2019-05-07 19:06:04 -07:00
s390 initramfs: poison freed initrd memory 2019-05-14 09:47:47 -07:00
sh init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
sparc initramfs: poison freed initrd memory 2019-05-14 09:47:47 -07:00
um initramfs: provide a generic free_initrd_mem implementation 2019-05-14 09:47:47 -07:00
unicore32 init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
x86 mm/gup: change GUP fast to use flags rather than a write 'bool' 2019-05-14 09:47:46 -07:00
xtensa init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
.gitignore
Kconfig initramfs: move the legacy keepinitrd parameter to core code 2019-05-14 09:47:47 -07:00