From: "Ky Srinivasan" <ksrinivasan@novell.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] PV driver compatibility patch
Date: Tue, 15 May 2007 11:05:32 -0600 [thread overview]
Message-ID: <46499FCB.E57C.0030.0@novell.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 121 bytes --]
This patch fixes compilation issues on 2.6.16 kernels.
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
[-- Attachment #2: xenbus_compat.patch --]
[-- Type: text/plain, Size: 1439 bytes --]
--- linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c 2007-05-14 13:45:04.000000000 -0400
+++ linux-2.6-xen-sparse-new/drivers/xen/xenbus/xenbus_probe.c 2007-05-15 10:55:31.000000000 -0400
@@ -67,8 +67,11 @@
static unsigned long xen_store_mfn;
extern struct mutex xenwatch_mutex;
-
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)
+static struct notifier_block *xenstore_chain;
+#else
static ATOMIC_NOTIFIER_HEAD(xenstore_chain);
+#endif
static void wait_for_devices(struct xenbus_driver *xendrv);
@@ -796,7 +799,11 @@
if (xenstored_ready > 0)
ret = nb->notifier_call(nb, 0, NULL);
else
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)
+ notifier_chain_register(&xenstore_chain, nb);
+#else
atomic_notifier_chain_register(&xenstore_chain, nb);
+#endif
return ret;
}
@@ -804,7 +811,11 @@
void unregister_xenstore_notifier(struct notifier_block *nb)
{
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)
+ notifier_chain_unregister(&xenstore_chain, nb);
+#else
atomic_notifier_chain_unregister(&xenstore_chain, nb);
+#endif
}
EXPORT_SYMBOL_GPL(unregister_xenstore_notifier);
@@ -819,7 +830,11 @@
xenbus_backend_probe_and_watch();
/* Notify others that xenstore is up */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)
+ notifier_call_chain(&xenstore_chain, 0, NULL);
+#else
atomic_notifier_call_chain(&xenstore_chain, 0, NULL);
+#endif
}
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2007-05-15 17:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-15 17:05 Ky Srinivasan [this message]
2007-05-15 17:11 ` [PATCH] PV driver compatibility patch Ian Campbell
2007-05-15 17:26 ` Ky Srinivasan
2007-05-24 14:15 ` Keir Fraser
2007-05-24 14:35 ` Ky Srinivasan
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=46499FCB.E57C.0030.0@novell.com \
--to=ksrinivasan@novell.com \
--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.