Skip to contentSkip to conversation

unmodified-drivers: tolerate IRQF_DISABLED being undefined

PATCH In review Jan Beulich 3 participants 6 messages Jun 1, 2015 – Jul 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unmodified-drivers: tolerate IRQF_DISABLED being undefined

It's being removed in Linux 4.1.

unmodified_drivers/linux-2.6/platform-pci/evtchn.c +4 -2
@@ -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);
 }
#3 lore raw
Quoted 9 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 01.06.15 at 15:56, <[email protected]> wrote:
Quoted 3 lines · Jan Beulich

It's being removed in Linux 4.1.

Not sure who should, but:

I guess no-one really needs to for that old code. But thanks!

Any chance to backport this to all 4.x branches?

Olaf

#4 lore raw
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 21.07.15 at 08:52, <[email protected]> wrote:
Quoted 4 lines · Jan Beulich
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 01.06.15 at 15:56, <[email protected]> wrote:
Quoted 2 lines · Jan Beulich

It's being removed in Linux 4.1.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Not sure who should, but:

I guess no-one really needs to for that old code. But thanks!

Any chance to backport this to all 4.x branches?

Taking it to mean "all maintained", that's possible, but since I can't immediately see the point I'd like to ask for some justification. Us - SUSE - apparently being the only consumer of that code, and us not using Xen 4.4 together with Linux 4.1, and our 4.5 trees already having the backport, I'm having some difficulty understanding the reason for the request.

Thanks, Jan

#5 lore raw
Quoted 6 lines · Jan Beulich

Taking it to mean "all maintained", that's possible, but since I can't immediately see the point I'd like to ask for some justification. Us - SUSE - apparently being the only consumer of that code, and us not using Xen 4.4 together with Linux 4.1, and our 4.5 trees already having the backport, I'm having some difficulty understanding the reason for the request.

I run compile tests of all xen-4.x branches against all SUSE releases to spot new errors. But since all the required changes for gcc wont be backported anyway I will just patch also this issues out of my copy.

Olaf