[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] unmodified-drivers: tolerate IRQF_DISABLED being undefined


  • To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Jan Beulich" <JBeulich@xxxxxxxx>
  • Date: Mon, 01 Jun 2015 14:50:52 +0100
  • Delivery-date: Mon, 01 Jun 2015 13:51:08 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

It's being removed in Linux 4.1.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/unmodified_drivers/linux-2.6/platform-pci/evtchn.c
+++ b/unmodified_drivers/linux-2.6/platform-pci/evtchn.c
@@ -350,11 +350,13 @@ int xen_irq_init(struct pci_dev *pdev)
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
                           SA_SHIRQ | SA_SAMPLE_RANDOM | SA_INTERRUPT,
 #else
-                          IRQF_SHARED |
 #ifdef IRQF_SAMPLE_RANDOM
                           IRQF_SAMPLE_RANDOM |
 #endif
-                          IRQF_DISABLED,
+#ifdef IRQF_DISABLED
+                          IRQF_DISABLED |
+#endif
+                          IRQF_SHARED,
 #endif
                           "xen-platform-pci", pdev);
 }




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.