SOURCES: svgalib-2.6.24.patch (NEW) - fix building on 2.6.24

hawk hawk at pld-linux.org
Sat Feb 2 09:31:30 CET 2008


Author: hawk                         Date: Sat Feb  2 08:31:30 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix building on 2.6.24

---- Files affected:
SOURCES:
   svgalib-2.6.24.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/svgalib-2.6.24.patch
diff -u /dev/null SOURCES/svgalib-2.6.24.patch:1.1
--- /dev/null	Sat Feb  2 09:31:30 2008
+++ SOURCES/svgalib-2.6.24.patch	Sat Feb  2 09:31:25 2008
@@ -0,0 +1,27 @@
+diff -ur svgalib-1.9.25.orig/kernel/svgalib_helper/main.c svgalib-1.9.25/kernel/svgalib_helper/main.c
+--- svgalib-1.9.25.orig/kernel/svgalib_helper/main.c	2008-02-02 09:19:46.000000000 +0100
++++ svgalib-1.9.25/kernel/svgalib_helper/main.c	2008-02-02 09:24:44.352923987 +0100
+@@ -358,7 +358,11 @@
+                 vsync=1;
+                 i=0;
+                 while(irqs[i]!=-1)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
+                     request_irq(irqs[i++], vsync_interrupt, SA_SHIRQ, "svgalib_helper", sdev_id);
++#else
++                    request_irq(irqs[i++], vsync_interrupt, IRQF_SHARED, "svgalib_helper", sdev_id);
++#endif
+                 vga_enable_vsync((void *)sdev_id);
+ 				wait_event_interruptible(vsync_wait, !vsync);
+                 i=0;
+@@ -446,7 +450,11 @@
+ 		int i=sh_pci_devs[minor]->dev->irq;
+ 		sh_pci_devs[minor]->opencount++;
+ 		if(sh_pci_devs[minor]->opencount==1 && i!=0 && i!=-1 && i!=255)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
+ 			request_irq(i, vsync_interrupt, SA_SHIRQ, "svgalib_helper", sh_pci_devs[minor]);
++#else
++			request_irq(i, vsync_interrupt, IRQF_SHARED, "svgalib_helper", sh_pci_devs[minor]);
++#endif
+ 	}
+ 
+ #ifndef KERNEL_2_6
================================================================


More information about the pld-cvs-commit mailing list