diff options
Diffstat (limited to 'drivers/xen/tmem.c')
-rw-r--r-- | drivers/xen/tmem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c index 3ee836d42581..7a01a5fd0f63 100644 --- a/drivers/xen/tmem.c +++ b/drivers/xen/tmem.c | |||
@@ -362,7 +362,7 @@ static int __init no_frontswap(char *s) | |||
362 | } | 362 | } |
363 | __setup("nofrontswap", no_frontswap); | 363 | __setup("nofrontswap", no_frontswap); |
364 | 364 | ||
365 | static struct frontswap_ops __initdata tmem_frontswap_ops = { | 365 | static struct frontswap_ops tmem_frontswap_ops = { |
366 | .store = tmem_frontswap_store, | 366 | .store = tmem_frontswap_store, |
367 | .load = tmem_frontswap_load, | 367 | .load = tmem_frontswap_load, |
368 | .invalidate_page = tmem_frontswap_flush_page, | 368 | .invalidate_page = tmem_frontswap_flush_page, |
@@ -378,11 +378,11 @@ static int __init xen_tmem_init(void) | |||
378 | #ifdef CONFIG_FRONTSWAP | 378 | #ifdef CONFIG_FRONTSWAP |
379 | if (tmem_enabled && use_frontswap) { | 379 | if (tmem_enabled && use_frontswap) { |
380 | char *s = ""; | 380 | char *s = ""; |
381 | struct frontswap_ops old_ops = | 381 | struct frontswap_ops *old_ops = |
382 | frontswap_register_ops(&tmem_frontswap_ops); | 382 | frontswap_register_ops(&tmem_frontswap_ops); |
383 | 383 | ||
384 | tmem_frontswap_poolid = -1; | 384 | tmem_frontswap_poolid = -1; |
385 | if (old_ops.init != NULL) | 385 | if (old_ops) |
386 | s = " (WARNING: frontswap_ops overridden)"; | 386 | s = " (WARNING: frontswap_ops overridden)"; |
387 | printk(KERN_INFO "frontswap enabled, RAM provided by " | 387 | printk(KERN_INFO "frontswap enabled, RAM provided by " |
388 | "Xen Transcendent Memory%s\n", s); | 388 | "Xen Transcendent Memory%s\n", s); |