提交 a3f52396 编写于 作者: J Juergen Gross 提交者: David Vrabel

x86/xen: add some __init and static annotations in arch/x86/xen/setup.c

Some more functions in arch/x86/xen/setup.c can be made "__init".
xen_ignore_unusable() can be made "static".
Signed-off-by: NJuergen Gross <jgross@suse.com>
Signed-off-by: NDavid Vrabel <david.vrabel@citrix.com>
上级 3ba5c867
...@@ -535,8 +535,8 @@ static unsigned long __init xen_get_max_pages(void) ...@@ -535,8 +535,8 @@ static unsigned long __init xen_get_max_pages(void)
return min(max_pages, MAX_DOMAIN_PAGES); return min(max_pages, MAX_DOMAIN_PAGES);
} }
static void xen_align_and_add_e820_region(phys_addr_t start, phys_addr_t size, static void __init xen_align_and_add_e820_region(phys_addr_t start,
int type) phys_addr_t size, int type)
{ {
phys_addr_t end = start + size; phys_addr_t end = start + size;
...@@ -549,7 +549,7 @@ static void xen_align_and_add_e820_region(phys_addr_t start, phys_addr_t size, ...@@ -549,7 +549,7 @@ static void xen_align_and_add_e820_region(phys_addr_t start, phys_addr_t size,
e820_add_region(start, end - start, type); e820_add_region(start, end - start, type);
} }
void xen_ignore_unusable(struct e820entry *list, size_t map_size) static void __init xen_ignore_unusable(struct e820entry *list, size_t map_size)
{ {
struct e820entry *entry; struct e820entry *entry;
unsigned int i; unsigned int i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册