diff options
author | Nick Piggin <npiggin@suse.de> | 2007-05-06 17:49:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:12:51 -0400 |
commit | 5f22df00a009e3f86301366c0ecddb63ebd22af9 (patch) | |
tree | 72f0ea3e114dbb6825fc7e73f828645d364ea520 /include | |
parent | d2ba27e8007b35d24764c0877ab2428e00a5c5ab (diff) |
mm: remove gcc workaround
Minimum gcc version is 3.2 now. However, with likely profiling, even
modern gcc versions cannot always eliminate the call.
Replace the placeholder functions with the more conventional empty static
inlines, which should be optimal for everyone.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 7bf0bd882fc3..c95d96ebd5ad 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -850,8 +850,26 @@ static inline int vma_wants_writenotify(struct vm_area_struct *vma) | |||
850 | 850 | ||
851 | extern pte_t *FASTCALL(get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl)); | 851 | extern pte_t *FASTCALL(get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl)); |
852 | 852 | ||
853 | #ifdef __PAGETABLE_PUD_FOLDED | ||
854 | static inline int __pud_alloc(struct mm_struct *mm, pgd_t *pgd, | ||
855 | unsigned long address) | ||
856 | { | ||
857 | return 0; | ||
858 | } | ||
859 | #else | ||
853 | int __pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long address); | 860 | int __pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long address); |
861 | #endif | ||
862 | |||
863 | #ifdef __PAGETABLE_PMD_FOLDED | ||
864 | static inline int __pmd_alloc(struct mm_struct *mm, pud_t *pud, | ||
865 | unsigned long address) | ||
866 | { | ||
867 | return 0; | ||
868 | } | ||
869 | #else | ||
854 | int __pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address); | 870 | int __pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address); |
871 | #endif | ||
872 | |||
855 | int __pte_alloc(struct mm_struct *mm, pmd_t *pmd, unsigned long address); | 873 | int __pte_alloc(struct mm_struct *mm, pmd_t *pmd, unsigned long address); |
856 | int __pte_alloc_kernel(pmd_t *pmd, unsigned long address); | 874 | int __pte_alloc_kernel(pmd_t *pmd, unsigned long address); |
857 | 875 | ||