xen: declare notifier_block on xen-ops.h
A message that is not in the archive (sent off-list or not yet received): 5323aab1.r24xwrkmR/N+a3KK%[email protected]
PATCH 1/1 xen: declare notifier_block on xen-ops.h
Patch fixes below warnings:
In file included from arch/x86/xen/xen-ops.h:7:0,
from arch/x86/xen/vga.c:9:
Quoted 1 line
Quoted 1 line
include/xen/xen-ops.h:19:42: warning: 'structnotifier_block' declared inside parameter list [enabled by default]
void xen_resume_notifier_register(struct notifier_block *nb);
^Quoted 2 lines
Quoted 2 lines
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: 'structnotifier_block' declared inside parameter list [enabled by default]
void xen_resume_notifier_unregister(struct notifier_block *nb);
--- drivers/xen/manage.c | 1 - include/xen/xen-ops.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
drivers/xen/manage.c +0 -1
@@ -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>
include/xen/xen-ops.h +1 -0
@@ -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);
Signature · 1 line
1.7.11.7
Quoted 10 lines · Stanislaw Gruszka
Patch fixes below warnings:
In file included from
arch/x86/xen/xen-ops.h:7:0,from arch/x86/xen/vga.c:9:Quoted 1 line
Quoted 1 line
include/xen/xen-ops.h:19:42: warning: 'structnotifier_block' declared inside parameter list [enabled by default]void xen_resume_notifier_register(struct notifier_block *nb); ^Quoted 2 lines
Quoted 2 lines
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: 'structnotifier_block' declared inside parameter list [enabled by default]void xen_resume_notifier_unregister(struct notifier_block *nb);
Is this a fix up to your previous "xen/acpi-processor: fix enabling interrupts on syscore_resume" patch? If so, do you mind if we squash the two commits together? So bisectability is improved.
David
Quoted 6 lines · David Vrabel
Quoted 5 lines · Stanislaw Gruszka
Patch fixes below warnings:
In file included from
arch/x86/xen/xen-ops.h:7:0,from arch/x86/xen/vga.c:9:Quoted 1 line
Quoted 1 line
include/xen/xen-ops.h:19:42: warning: 'structnotifier_block' declared inside parameter list [enabled by default]
Quoted 8 lines
Quoted 5 lines
void xen_resume_notifier_register(struct notifier_block *nb); ^Quoted 2 lines
Quoted 2 lines
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: 'structnotifier_block' declared inside parameter list [enabled by default]void xen_resume_notifier_unregister(struct notifier_block *nb);Is this a fix up to your previous "xen/acpi-processor: fix enabling interrupts on
syscore_resume" patch?
Yes.
Quoted 2 lines
If so, do you mind if we squash
the two commits together? So bisectability is improved.
No problem with that (though I don't think actual build is broken since we don't use xen_resume_notifier_register on .c files that do not include linux/notifier.h directly or indirectly).
Thanks
Stanislaw
Quoted 6 lines · David Vrabel
Quoted 5 lines · Stanislaw Gruszka
Patch fixes below warnings:
In file included from
arch/x86/xen/xen-ops.h:7:0,from arch/x86/xen/vga.c:9:Quoted 1 line
Quoted 1 line
include/xen/xen-ops.h:19:42: warning: 'structnotifier_block' declared inside parameter list [enabled by default]
Quoted 8 lines
Quoted 5 lines
void xen_resume_notifier_register(struct notifier_block *nb); ^Quoted 2 lines
Quoted 2 lines
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: 'structnotifier_block' declared inside parameter list [enabled by default]void xen_resume_notifier_unregister(struct notifier_block *nb);Is this a fix up to your previous "xen/acpi-processor: fix enabling interrupts on
syscore_resume" patch?
Yes.
Quoted 2 lines
If so, do you mind if we squash
the two commits together? So bisectability is improved.
No problem with that (though I don't think actual build is broken since we don't use xen_resume_notifier_register on .c files that do not include linux/notifier.h directly or indirectly).
Thanks
Stanislaw
Quoted 10 lines · Stanislaw Gruszka
Patch fixes below warnings:
In file included from
arch/x86/xen/xen-ops.h:7:0,from arch/x86/xen/vga.c:9:Quoted 1 line
Quoted 1 line
include/xen/xen-ops.h:19:42: warning: 'structnotifier_block' declared inside parameter list [enabled by default]void xen_resume_notifier_register(struct notifier_block *nb); ^Quoted 2 lines
Quoted 2 lines
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: 'structnotifier_block' declared inside parameter list [enabled by default]void xen_resume_notifier_unregister(struct notifier_block *nb);
Is this a fix up to your previous "xen/acpi-processor: fix enabling interrupts on syscore_resume" patch? If so, do you mind if we squash the two commits together? So bisectability is improved.
David
PATCH 1/1 xen: declare notifier_block on xen-ops.h
In reply to a message not in the archivePatch fixes below warnings:
In file included from arch/x86/xen/xen-ops.h:7:0,
from arch/x86/xen/vga.c:9:
Quoted 1 line
Quoted 1 line
include/xen/xen-ops.h:19:42: warning: 'structnotifier_block' declared inside parameter list [enabled by default]
void xen_resume_notifier_register(struct notifier_block *nb);
^Quoted 2 lines
Quoted 2 lines
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: 'structnotifier_block' declared inside parameter list [enabled by default]
void xen_resume_notifier_unregister(struct notifier_block *nb);
--- drivers/xen/manage.c | 1 - include/xen/xen-ops.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
drivers/xen/manage.c +0 -1
@@ -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>
include/xen/xen-ops.h +1 -0
@@ -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);
Signature · 1 line
1.7.11.7