Skip to contentSkip to conversation

remove asm-generic arch_bprm_mm_init()

PATCH New Dave Hansen 2 participants 2 messages Nov 22, 2014 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove asm-generic arch_bprm_mm_init()

From: Dave Hansen <[email protected]>

This is a follow-on to commit:

https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?h=x86/mpx&id=62e88b1c00de9cb30d937841ed5debed871070b8

I removed the asm-generic version of arch_unmap() in that patch, but missed arch_bprm_mm_init(). So this broke the build for architectures using asm-generic/mmu_context.h who actually have an MMU.

This has been cross compiled for:

	s390
	arm
	cris
	microblaze

---

 b/include/asm-generic/mmu_context.h |    5 -----
 1 file changed, 5 deletions(-)
include/asm-generic/mmu_context.h renamed from include/asm-generic/mmu_context.h~remove-generic-arch_bprm_mm_init +0 -5
diff -puN include/asm-generic/mmu_context.h~remove-generic-arch_bprm_mm_init include/asm-generic/mmu_context.h
@@ -42,9 +42,4 @@ static inline void activate_mm(struct mm
 {
 }
 
-static inline void arch_bprm_mm_init(struct mm_struct *mm,
-			struct vm_area_struct *vma)
-{
-}
-
 #endif /* __ASM_GENERIC_MMU_CONTEXT_H */

_

#1 lore raw

[tip:x86/mpx] asm-generic: Remove asm-generic arch_bprm_mm_init()

asm-generic: Remove asm-generic arch_bprm_mm_init()
Commit-ID:  9f7789f845cc100dd0d94fa1aa083e3373dc03db
Gitweb:     http://git.kernel.org/tip/9f7789f845cc100dd0d94fa1aa083e3373dc03db
Author:     Dave Hansen <[email protected]>
AuthorDate: Sat, 22 Nov 2014 08:37:11 -0800
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Sat, 22 Nov 2014 21:52:08 +0100

asm-generic: Remove asm-generic arch_bprm_mm_init()

This is a follow-on to commit 62e88b1c00de 'mm: Make arch_unmap()/bprm_mm_init() available to all architectures'

I removed the asm-generic version of arch_unmap() in that patch, but missed arch_bprm_mm_init(). So this broke the build for architectures using asm-generic/mmu_context.h who actually have an MMU.

Fixes 62e88b1c00de 'mm: Make arch_unmap()/bprm_mm_init() available to all architectures'
Cc Dave Hansen <[email protected]>
---
 include/asm-generic/mmu_context.h | 5 -----
 1 file changed, 5 deletions(-)
include/asm-generic/mmu_context.h +0 -5
index 1f2a8f9..a7eec91 100644
@@ -42,9 +42,4 @@ static inline void activate_mm(struct mm_struct *prev_mm,
 {
 }
 
-static inline void arch_bprm_mm_init(struct mm_struct *mm,
-			struct vm_area_struct *vma)
-{
-}
-
 #endif /* __ASM_GENERIC_MMU_CONTEXT_H */