diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2010-01-26 19:31:19 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-01 19:58:17 -0500 |
commit | e52730071567ec5b6f57e21d6693b112e01e1d0e (patch) | |
tree | 2389ff46023ad755bbd98bfec9b77c06a5345b92 /kernel | |
parent | 61ef2489dbf587258526cfd4ebf4bba3b079f401 (diff) |
Generic page_is_ram: use __weak
Use __weak instead of __attribute__((weak)).
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/resource.c b/kernel/resource.c index b4d637a55256..e68cd7477c40 100644 --- a/kernel/resource.c +++ b/kernel/resource.c | |||
@@ -305,7 +305,7 @@ static int __is_ram(unsigned long pfn, unsigned long nr_pages, void *arg) | |||
305 | * This generic page_is_ram() returns true if specified address is | 305 | * This generic page_is_ram() returns true if specified address is |
306 | * registered as "System RAM" in iomem_resource list. | 306 | * registered as "System RAM" in iomem_resource list. |
307 | */ | 307 | */ |
308 | int __attribute__((weak)) page_is_ram(unsigned long pfn) | 308 | int __weak page_is_ram(unsigned long pfn) |
309 | { | 309 | { |
310 | return walk_system_ram_range(pfn, 1, NULL, __is_ram) == 1; | 310 | return walk_system_ram_range(pfn, 1, NULL, __is_ram) == 1; |
311 | } | 311 | } |