Generic page_is_ram: use __weak
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 27 Jan 2010 00:31:19 +0000 (16:31 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 2 Feb 2010 00:58:17 +0000 (16:58 -0800)
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>
kernel/resource.c

index b4d637a552565a620db6a44ce2392a7d380e89fc..e68cd7477c4001b55d912e39d206be54a70d4f6e 100644 (file)
@@ -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
  * 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;
 }