From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Olaf Hering <olaf@aepfle.de>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH 1/6] xen: use static initializers in xen-balloon.c
Date: Tue, 26 Jul 2011 10:16:37 -0400 [thread overview]
Message-ID: <20110726141637.GC5994@dumpdata.com> (raw)
In-Reply-To: <20110726115210.018132241@aepfle.de>
On Tue, Jul 26, 2011 at 01:52:10PM +0200, Olaf Hering wrote:
You need a description of why you are doing this.
And also make sure you use git, not patches.
Lastly, please also CC the LKML mailing list and
whoever shows up as you run scripts/get_maintainer.pl
for the patches.
> Signed-off-by: Olaf Hering <olaf@aepfle.de>
>
> ---
> drivers/xen/xen-balloon.c | 18 ++++++++----------
> 1 file changed, 8 insertions(+), 10 deletions(-)
>
> Index: linux-3.0/drivers/xen/xen-balloon.c
> ===================================================================
> --- linux-3.0.orig/drivers/xen/xen-balloon.c
> +++ linux-3.0/drivers/xen/xen-balloon.c
> @@ -50,11 +50,6 @@ static struct sys_device balloon_sysdev;
>
> static int register_balloon(struct sys_device *sysdev);
>
> -static struct xenbus_watch target_watch =
> -{
> - .node = "memory/target"
> -};
> -
> /* React to a change in the target key */
> static void watch_target(struct xenbus_watch *watch,
> const char **vec, unsigned int len)
> @@ -74,6 +69,11 @@ static void watch_target(struct xenbus_w
> balloon_set_new_target(new_target >> (PAGE_SHIFT - 10));
> }
>
> +static struct xenbus_watch target_watch = {
> + .node = "memory/target",
> + .callback = watch_target,
> +};
> +
> static int balloon_init_watcher(struct notifier_block *notifier,
> unsigned long event,
> void *data)
> @@ -87,7 +87,9 @@ static int balloon_init_watcher(struct n
> return NOTIFY_DONE;
> }
>
> -static struct notifier_block xenstore_notifier;
> +static struct notifier_block xenstore_notifier = {
> + .notifier_call = balloon_init_watcher,
> +};
>
> static int __init balloon_init(void)
> {
> @@ -97,10 +99,6 @@ static int __init balloon_init(void)
> pr_info("xen-balloon: Initialising balloon driver.\n");
>
> register_balloon(&balloon_sysdev);
> -
> - target_watch.callback = watch_target;
> - xenstore_notifier.notifier_call = balloon_init_watcher;
> -
> register_xenstore_notifier(&xenstore_notifier);
>
> return 0;
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2011-07-26 14:16 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 11:52 [PATCH 0/6] misc changes for kexec in pv-on-hvm guests Olaf Hering
2011-07-26 11:52 ` [PATCH 1/6] xen: use static initializers in xen-balloon.c Olaf Hering
2011-07-26 14:16 ` Konrad Rzeszutek Wilk [this message]
2011-07-26 11:52 ` [PATCH 2/6] xen/hvm kexec: unregister shutdown+sysrq watches during reboot Olaf Hering
2011-07-26 14:17 ` Konrad Rzeszutek Wilk
2011-07-26 14:28 ` Olaf Hering
2011-07-26 11:52 ` [PATCH 3/6] xen/hvm kexec: unregister memory/target watch in xen-balloon.c Olaf Hering
2011-07-26 14:18 ` Konrad Rzeszutek Wilk
2011-07-26 11:52 ` [PATCH 4/6] xen/hvm kexec: unbind debugirq during reboot Olaf Hering
2011-07-26 14:19 ` Konrad Rzeszutek Wilk
2011-07-26 11:52 ` [PATCH 5/6] xen/hvm kexec: unregister timer interrupt " Olaf Hering
2011-07-26 14:22 ` Konrad Rzeszutek Wilk
2011-07-27 14:05 ` Olaf Hering
2011-07-27 14:38 ` Konrad Rzeszutek Wilk
2011-07-26 11:52 ` [PATCH 6/6] xen kexec: reset device state to Initializing " Olaf Hering
2011-07-26 14:27 ` Konrad Rzeszutek Wilk
2011-07-27 11:22 ` Stefano Stabellini
2011-07-27 12:14 ` Olaf Hering
2011-07-27 13:14 ` Stefano Stabellini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110726141637.GC5994@dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=olaf@aepfle.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.