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

From: Stanislaw Gruszka
Date: Tue Mar 18 2014 - 02:53:42 EST


On Mon, Mar 17, 2014 at 05:56:03PM +0000, David Vrabel wrote:
> On 17/03/14 07:48, Stanislaw Gruszka wrote:
> > 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);
>
> Is this a fix up to your previous "xen/acpi-processor: fix enabling
> interrupts on syscore_resume" patch?
Yes.

> 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
--
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/