x86, pgtable.h: macro-ify *_page() methods
authorIngo Molnar <mingo@elte.hu>
Mon, 9 Feb 2009 10:42:57 +0000 (11:42 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 9 Feb 2009 10:42:57 +0000 (11:42 +0100)
commite5f7f202f31fd05e9de7e1ba5a7b30de7855f5aa
tree198a2f0e82dc008d371b12eb422a66be96d4924c
parent726c0d95b6bd06cb83efd36a76ccf03fa9a770f0
x86, pgtable.h: macro-ify *_page() methods

The p?d_page() methods still rely on highlevel types and methods:

In file included from arch/x86/kernel/early_printk.c:18:
/home/mingo/tip/arch/x86/include/asm/pgtable.h: In function ‘pmd_page’:
/home/mingo/tip/arch/x86/include/asm/pgtable.h:516: error: implicit declaration of function â\80\98__pfn_to_sectionâ\80\99
/home/mingo/tip/arch/x86/include/asm/pgtable.h:516: error: initialization makes pointer from integer without a cast
/home/mingo/tip/arch/x86/include/asm/pgtable.h:516: error: implicit declaration of function ‘__section_mem_map_addr’
/home/mingo/tip/arch/x86/include/asm/pgtable.h:516: error: return makes pointer from integer without a cast

So convert them to macros and document the type dependency.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/pgtable.h