public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: kvm-devel <kvm@vger.kernel.org>
Subject: [PATCH] Fix external module build for 2.6.22
Date: Tue, 02 Sep 2008 10:51:10 +0200	[thread overview]
Message-ID: <48BCFE7E.8070303@siemens.com> (raw)

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

diff --git a/kernel/external-module-compat-comm.h b/kernel/external-module-compat-comm.h
index 2e87c57..6072fde 100644
--- a/kernel/external-module-compat-comm.h
+++ b/kernel/external-module-compat-comm.h
@@ -517,6 +517,11 @@ static inline int cancel_work_sync(struct work_struct *work)
 	return 0;
 }
 
+/* ... and it returned void before 2.6.23 */
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+
+#define cancel_work_sync(work) ({ cancel_work_sync(work); 0; })
+
 #endif
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)

             reply	other threads:[~2008-09-02  8:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02  8:51 Jan Kiszka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-07-18 15:31 [PATCH] Fix external module build for 2.6.22 Jan Kiszka
2008-07-19  7:09 ` Avi Kivity

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=48BCFE7E.8070303@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=kvm@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox