xen/tmem: mark xen_tmem_init() __init
authorJan Beulich <JBeulich@suse.com>
Fri, 23 Jan 2015 08:37:01 +0000 (08:37 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Jan 2015 11:55:24 +0000 (11:55 +0000)
As a module_init() function, this should have been this way from the
beginning.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/tmem.c

index 83b5c53bec6b6b0c06c7d9ec923df9676f17268b..8a65423bc696b4eac607012437b3af8e1161458e 100644 (file)
@@ -374,7 +374,7 @@ static struct frontswap_ops tmem_frontswap_ops = {
 };
 #endif
 
-static int xen_tmem_init(void)
+static int __init xen_tmem_init(void)
 {
        if (!xen_domain())
                return 0;