[PATCH] xen: declare notifier_block on xen-ops.h

From: Stanislaw Gruszka
Date: Mon Mar 17 2014 - 03:46:26 EST


Patch fixes below warnings:

In file included from arch/x86/xen/xen-ops.h:7:0,
from arch/x86/xen/vga.c:9:
>> include/xen/xen-ops.h:19:42: warning: 'struct notifier_block' declared inside parameter list [enabled by default]
void xen_resume_notifier_register(struct notifier_block *nb);
^
>> include/xen/xen-ops.h:19:42: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
>> include/xen/xen-ops.h:20:44: warning: 'struct notifier_block' declared inside parameter list [enabled by default]
void xen_resume_notifier_unregister(struct notifier_block *nb);

Signed-off-by: Stanislaw Gruszka <sgruszka@xxxxxxxxxx>
---
drivers/xen/manage.c | 1 -
include/xen/xen-ops.h | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index 96e4173..fc6c94c 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -13,7 +13,6 @@
#include <linux/freezer.h>
#include <linux/syscore_ops.h>
#include <linux/export.h>
-#include <linux/notifier.h>

#include <xen/xen.h>
#include <xen/xenbus.h>
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
index cc8b4cb..acc7b7a 100644
--- a/include/xen/xen-ops.h
+++ b/include/xen/xen-ops.h
@@ -2,6 +2,7 @@
#define INCLUDE_XEN_OPS_H

#include <linux/percpu.h>
+#include <linux/notifier.h>
#include <asm/xen/interface.h>

DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
--
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/