WSL2-Linux-Kernel/arch/nios2/mm
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
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cacheflush.c nios2: update_mmu_cache preload the TLB with the new PTE 2019-03-07 05:29:35 +08:00
dma-mapping.c nios2: use generic dma_noncoherent_ops 2018-07-25 13:33:09 +02:00
extable.c nios2: migrate exception table users off module.h and onto extable.h 2017-01-26 10:58:14 -05:00
fault.c nios2 update for v5.1-rc1 2019-03-10 10:13:37 -07:00
init.c init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
ioremap.c nios2: I/O Mapping 2014-12-08 12:55:52 +08:00
mmu_context.c nios2: Process management 2014-12-08 12:55:53 +08:00
pgtable.c nios2: Page table management 2014-12-08 12:55:53 +08:00
tlb.c nios2: Fix update_mmu_cache preload the TLB with the new PTE 2019-03-07 06:00:48 +08:00
uaccess.c nios2: use generic strncpy_from_user() and strnlen_user() 2017-05-08 17:14:14 +08:00