x86: demacro asm-x86/pgalloc_32.h
Convert macros into inline functions, for better type-checking. This patch required a little bit of fiddling with headers in order to make __(pte|pmd)_free_tlb inline rather than macros. asm-generic/tlb.h includes asm/pgalloc.h, though it doesn't directly use any pgalloc definitions. I removed this include to avoid an include cycle, but it may cause secondary compile failures by things depending on the indirect inclusion; arch/x86/mm/hugetlbpage.c was one such place; there may be others. Signed-off-by:Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by:
Ingo Molnar <mingo@elte.hu> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
Showing
- arch/x86/mm/hugetlbpage.c 2 additions, 1 deletionarch/x86/mm/hugetlbpage.c
- arch/x86/mm/init_32.c 1 addition, 0 deletionsarch/x86/mm/init_32.c
- include/asm-generic/tlb.h 0 additions, 1 deletioninclude/asm-generic/tlb.h
- include/asm-x86/pgalloc_32.h 39 additions, 22 deletionsinclude/asm-x86/pgalloc_32.h
- include/asm-x86/pgtable-3level.h 0 additions, 2 deletionsinclude/asm-x86/pgtable-3level.h
- include/linux/swap.h 1 addition, 0 deletionsinclude/linux/swap.h
Please register or sign in to comment