X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fmemory_hotplug.h;h=968b1aa3732cb1fe13f7f3ea81df13722375000d;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=911206386171ccedc51397d9e36a7c424de9642c;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h index 911206386..968b1aa37 100644 --- a/include/linux/memory_hotplug.h +++ b/include/linux/memory_hotplug.h @@ -58,6 +58,8 @@ extern int add_one_highpage(struct page *page, int pfn, int bad_ppro); /* need some defines for these for archs that don't support it */ extern void online_page(struct page *page); /* VM interface that may be used by firmware interface */ +extern int add_memory(u64 start, u64 size); +extern int remove_memory(u64 start, u64 size); extern int online_pages(unsigned long, unsigned long); /* reasonably generic interface to expand the physical pages in a zone */ @@ -90,6 +92,11 @@ static inline int mhp_notimplemented(const char *func) return -ENOSYS; } +static inline int __add_pages(struct zone *zone, unsigned long start_pfn, + unsigned long nr_pages) +{ + return mhp_notimplemented(__FUNCTION__); +} #endif /* ! CONFIG_MEMORY_HOTPLUG */ static inline int __remove_pages(struct zone *zone, unsigned long start_pfn, unsigned long nr_pages) @@ -98,8 +105,4 @@ static inline int __remove_pages(struct zone *zone, unsigned long start_pfn, dump_stack(); return -ENOSYS; } - -extern int add_memory(u64 start, u64 size); -extern int remove_memory(u64 start, u64 size); - #endif /* __LINUX_MEMORY_HOTPLUG_H */