Skip to content

Commit

Permalink
Move page_is_ram() declaration to mm.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Fengguang authored and H. Peter Anvin committed Feb 2, 2010
1 parent e527300 commit 53df8fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/linux/ioport.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,5 @@ extern int
walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages,
void *arg, int (*func)(unsigned long, unsigned long, void *));

extern int page_is_ram(unsigned long pfn);

#endif /* __ASSEMBLY__ */
#endif /* _LINUX_IOPORT_H */
2 changes: 2 additions & 0 deletions include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ static inline int get_page_unless_zero(struct page *page)
return atomic_inc_not_zero(&page->_count);
}

extern int page_is_ram(unsigned long pfn);

/* Support for virtually mapped pages */
struct page *vmalloc_to_page(const void *addr);
unsigned long vmalloc_to_pfn(const void *addr);
Expand Down

0 comments on commit 53df8fd

Please sign in to comment.