Commit e5273007 authored by Andrew Morton's avatar Andrew Morton Committed by H. Peter Anvin

Generic page_is_ram: use __weak

Use __weak instead of __attribute__((weak)).

Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 61ef2489
...@@ -305,7 +305,7 @@ static int __is_ram(unsigned long pfn, unsigned long nr_pages, void *arg) ...@@ -305,7 +305,7 @@ static int __is_ram(unsigned long pfn, unsigned long nr_pages, void *arg)
* This generic page_is_ram() returns true if specified address is * This generic page_is_ram() returns true if specified address is
* registered as "System RAM" in iomem_resource list. * registered as "System RAM" in iomem_resource list.
*/ */
int __attribute__((weak)) page_is_ram(unsigned long pfn) int __weak page_is_ram(unsigned long pfn)
{ {
return walk_system_ram_range(pfn, 1, NULL, __is_ram) == 1; return walk_system_ram_range(pfn, 1, NULL, __is_ram) == 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment