Commit 53df8fdc15fb646b0219e43c989c2cdab1ab100c

Authored by Wu Fengguang
Committed by H. Peter Anvin
1 parent e527300715

Move page_is_ram() declaration to mm.h

Move page_is_ram() declaration to mm.h, it makes no sense in <linux/ioport.h>.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
LKML-Reference: <20100127030639.GD8132@localhost>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

include/linux/ioport.h
... ... @@ -188,8 +188,6 @@
188 188 walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages,
189 189 void *arg, int (*func)(unsigned long, unsigned long, void *));
190 190  
191   -extern int page_is_ram(unsigned long pfn);
192   -
193 191 #endif /* __ASSEMBLY__ */
194 192 #endif /* _LINUX_IOPORT_H */
... ... @@ -265,6 +265,8 @@
265 265 return atomic_inc_not_zero(&page->_count);
266 266 }
267 267  
  268 +extern int page_is_ram(unsigned long pfn);
  269 +
268 270 /* Support for virtually mapped pages */
269 271 struct page *vmalloc_to_page(const void *addr);
270 272 unsigned long vmalloc_to_pfn(const void *addr);