From: Paolo Bonzini Subject: [PATCH 3/4] fixes for changes in the percpu counter API Date: Thu, 8 Jan 2015 11:32:38 +0100 Message-ID: <1420713159-25947-4-git-send-email-pbonzini@redhat.com> References: <1420713159-25947-1-git-send-email-pbonzini@redhat.com> Cc: jan.kiszka@siemens.com To: kvm@vger.kernel.org Return-path: Received: from mail-wi0-f181.google.com ([209.85.212.181]:44110 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756230AbbAHKcv (ORCPT ); Thu, 8 Jan 2015 05:32:51 -0500 Received: by mail-wi0-f181.google.com with SMTP id r20so2302481wiv.2 for ; Thu, 08 Jan 2015 02:32:50 -0800 (PST) In-Reply-To: <1420713159-25947-1-git-send-email-pbonzini@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: These API changes were introduced in 3.18. Update source pointer since 3.18 now compiles. Signed-off-by: Paolo Bonzini --- external-module-compat-comm.h | 9 +++++++++ linux | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h index 6866658..f0e1ce2 100644 --- a/external-module-compat-comm.h +++ b/external-module-compat-comm.h @@ -1440,6 +1440,15 @@ static inline void pci_set_dev_assigned(struct pci_dev *pdev) pdev->dev_flags |= PCI_DEV_FLAGS_ASSIGNED; } +#undef percpu_counter_init +#define percpu_counter_init(fbc, value, gfp) \ + ({ \ + static struct lock_class_key __key; \ + \ + __percpu_counter_init(fbc, value, &__key); \ + }) +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) void *get_xsave_addr(struct xsave_struct *xsave, int feature); #endif diff --git a/linux b/linux index da01e61..b2776bf 160000 --- a/linux +++ b/linux @@ -1 +1 @@ -Subproject commit da01e61428aa2b5c424fddc11178498462d8c77f +Subproject commit b2776bf7149bddd1f4161f14f79520f17fc1d71d -- 1.8.3.1