> The asm/mmu_context.h include was added to asm/elf.h by commit 146e4b3c8b92
> ("[S390] 1K/2K page table pages.") in 2008, when the new macro
> elf_read_implies_exec() used disable_noexec() /
> current->mm->context.noexec. Commit 043d07084b53 ("[S390] Remove data
> execution protection") removed that macro in 2011 and asm/elf.h no longer
> needs asm/mmu_context.h.
> 
> Several s390 files currently depend on declarations provided indirectly
> through asm/elf.h -> asm/mmu_context.h:
> 
> * arch/s390/mm/mmap.c: check_asce_limit() -> asm/pgalloc.h,
> * arch/s390/kernel/processor.c: enter_lazy_tlb() -> asm/mmu_context.h.
> 
> Add the missing includes to these files and remove the asm/mmu_context.h
> include from asm/elf.h.
> 
> This is a preparatory cleanup for adding the asm/elf.h include in
> linux/cpufeature.h, which would otherwise create the following cycle:
> 
> linux/pgtable.h -> asm/pgtable.h -> linux/cpufeature.h -> asm/elf.h ->
> asm/mmu_context.h -> asm/pgalloc.h -> linux/mm.h -> linux/pgtable.h
> 
> Signed-off-by: Petr Pavlu <[email protected]>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=4


Reply via email to