[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2] xen/balloon: don't online new memory initially



>>> On 05.07.17 at 17:38, <jgross@xxxxxxxx> wrote:
> @@ -94,22 +103,15 @@ static struct notifier_block xenstore_notifier = {
>       .notifier_call = balloon_init_watcher,
>  };
>  
> -static int __init balloon_init(void)
> +void __init xen_balloon_init(void)
>  {
> -     if (!xen_domain())
> -             return -ENODEV;
> -
> -     pr_info("Initialising balloon driver\n");
> -
>       register_balloon(&balloon_dev);
>  
>       register_xen_selfballooning(&balloon_dev);
>  
>       register_xenstore_notifier(&xenstore_notifier);
> -
> -     return 0;
>  }
> -subsys_initcall(balloon_init);
> +EXPORT_SYMBOL_GPL(xen_balloon_init);

I'm sorry for not having paid attention at v1, but __init functions
should not be exported (I would hope for you to actually see a
warning with CONFIG_DEBUG_SECTION_MISMATCH=y).

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.