From patchwork Tue May 26 11:52:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 25997 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4QBsSwH010872 for ; Tue, 26 May 2009 11:54:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755031AbZEZLyQ (ORCPT ); Tue, 26 May 2009 07:54:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755015AbZEZLyQ (ORCPT ); Tue, 26 May 2009 07:54:16 -0400 Received: from lizzard.sbs.de ([194.138.37.39]:17324 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754936AbZEZLyO (ORCPT ); Tue, 26 May 2009 07:54:14 -0400 Received: from mail2.sbs.de (localhost [127.0.0.1]) by lizzard.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id n4QBrxJQ013019; Tue, 26 May 2009 13:53:59 +0200 Received: from [139.25.109.167] (mchn012c.ww002.siemens.net [139.25.109.167] (may be forged)) by mail2.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id n4QBrxK0008886; Tue, 26 May 2009 13:53:59 +0200 From: Jan Kiszka Subject: [PATCH 4/8] kvm-kmod: Provide flush_work compat wrapper To: Avi Kivity Cc: kvm@vger.kernel.org Date: Tue, 26 May 2009 13:52:52 +0200 Message-ID: <20090526115251.3362.95071.stgit@mchn012c.ww002.siemens.net> In-Reply-To: <20090526115251.3362.54734.stgit@mchn012c.ww002.siemens.net> References: <20090526115251.3362.54734.stgit@mchn012c.ww002.siemens.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Jan Kiszka --- external-module-compat-comm.h | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h index dad43ef..131210a 100644 --- a/external-module-compat-comm.h +++ b/external-module-compat-comm.h @@ -562,6 +562,15 @@ static inline int cancel_work_sync(struct work_struct *work) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) + +static inline void flush_work(struct work_struct *work) +{ + cancel_work_sync(work); +} + +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20) struct pci_dev;