unify pfn_to_page take 2 [25/25] xtensa funcs
PATCH 1/1 unify pfn_to_page take 2 [25/25] xtensa funcs
xtensa can use generic funcs.
Signed-off-by KAMEZAWA Hiruyoki <[email protected]>
include/asm-xtensa/page.h +1 -4
@@ -109,10 +109,7 @@ void copy_user_page(void *to,void* from,#define __pa (x) ((unsigned long) (x) - PAGE_OFFSET)#define __va (x) ((void *)((unsigned long) (x) + PAGE_OFFSET))#define pfn_valid (pfn) ((unsigned long)pfn < max_mapnr) -#ifndef CONFIG_DISCONTIGMEM -# define pfn_to_page (pfn) (mem_map + (pfn)) -# define page_to_pfn (page) ((unsigned long)((page) - mem_map)) -#else +#ifdef CONFIG_DISCONTIGMEM # error CONFIG_DISCONTIGMEM not supported#endif