From: Frank Mori Hess Date: Tue, 5 Aug 2003 18:28:20 +0000 (+0000) Subject: replace all hex codes with KERNEL_VERSION() for clairity X-Git-Tag: r0_7_69~276 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8b9b07bd682ac6e1eddb2a2b58ca7f85f34b5a83;p=comedi.git replace all hex codes with KERNEL_VERSION() for clairity --- diff --git a/include/asm/dma.h b/include/asm/dma.h index 60abc156..551af454 100644 --- a/include/asm/dma.h +++ b/include/asm/dma.h @@ -7,7 +7,7 @@ #include -#if LINUX_VERSION_CODE < 0x020200 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0) #include static __inline__ unsigned long claim_dma_lock(void) { diff --git a/include/linux/fs.h b/include/linux/fs.h index 34739107..d75090a5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -7,11 +7,11 @@ #include -#if LINUX_VERSION_CODE < 0x020200 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0) /* no fasync */ #define KILL_FASYNC(a,b,c) #else -#if LINUX_VERSION_CODE < 0x020400 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0) #define KILL_FASYNC(a,b,c) kill_fasync((a),(c)) #else #define KILL_FASYNC(a,b,c) kill_fasync(&(a),(b),(c)) diff --git a/include/linux/init.h b/include/linux/init.h index 52533737..b57dc865 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -7,11 +7,11 @@ #include -#if LINUX_VERSION_CODE < 0x020400 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0) #define __devinitdata __initdata #define __exit #endif -#if LINUX_VERSION_CODE < 0x020200 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0) #define __init #else #include_next diff --git a/include/linux/irq.h b/include/linux/irq.h index da006399..c68fb28d 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -7,7 +7,7 @@ #include -#if LINUX_VERSION_CODE < 0x020300 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) #include #else #include_next diff --git a/include/linux/isapnp.h b/include/linux/isapnp.h index 63adcf1a..db1dd68c 100644 --- a/include/linux/isapnp.h +++ b/include/linux/isapnp.h @@ -7,7 +7,7 @@ #include -#if LINUX_VERSION_CODE >= 0x020300 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0) #include_next #else #include diff --git a/include/linux/kmod.h b/include/linux/kmod.h index f356b8fc..e8862e95 100644 --- a/include/linux/kmod.h +++ b/include/linux/kmod.h @@ -7,7 +7,7 @@ #include -#if LINUX_VERSION_CODE < 0x020200 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0) #else #include_next diff --git a/include/linux/mm.h b/include/linux/mm.h index c888e986..a7ab7ce9 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -7,14 +7,14 @@ #include -#if LINUX_VERSION_CODE < 0x020300 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) #define VM_OFFSET(a) ((a)->vm_offset) #define page_address(page) page #else #define VM_OFFSET(a) ((a)->vm_pgoff * PAGE_SIZE) #endif -#if LINUX_VERSION_CODE < 0x020500 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) #define REMAP_PAGE_RANGE(a,b,c,d,e) remap_page_range(b,c,d,e) #else #define REMAP_PAGE_RANGE(a,b,c,d,e) remap_page_range(a,b,c,d,e) diff --git a/include/linux/module.h b/include/linux/module.h index e84413fe..7f7c8ee7 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -8,7 +8,7 @@ #include -#if LINUX_VERSION_CODE < 0x020115 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,19) #define MODULE_AUTHOR(a) #define MODULE_DESCRIPTION(a) #define MODULE_PARM(a,b) diff --git a/include/linux/pci.h b/include/linux/pci.h index 2517fdff..a71891bc 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -8,7 +8,7 @@ #include -#if LINUX_VERSION_CODE < 0x020155 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,55) #include #define PCI_SUPPORT_VER1 #else diff --git a/include/linux/poll.h b/include/linux/poll.h index bafeb0a2..7f2bf9b3 100644 --- a/include/linux/poll.h +++ b/include/linux/poll.h @@ -7,7 +7,7 @@ #include -#if LINUX_VERSION_CODE < 0x020200 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0) #else #include_next diff --git a/include/linux/sched.h b/include/linux/sched.h index e679a251..753d54f7 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -7,7 +7,7 @@ #include -#if LINUX_VERSION_CODE < 0x020200 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0) #define signal_pending(x) (((x)->signal) & (~(x)->blocked)) #endif diff --git a/include/linux/slab.h b/include/linux/slab.h index 8010435c..8f0befce 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -7,7 +7,7 @@ #include -#if LINUX_VERSION_CODE < 0x020200 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0) #include #else #include_next diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h index 8588796a..4c3e6503 100644 --- a/include/linux/spinlock.h +++ b/include/linux/spinlock.h @@ -7,7 +7,7 @@ #include -#if LINUX_VERSION_CODE < 0x020100 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,0) /* no spinlocks */ typedef int spinlock_t; @@ -27,7 +27,7 @@ typedef int spinlock_t; #define SPIN_LOCK_UNLOCKED 0 #else -#if LINUX_VERSION_CODE < 0x020300 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0) #include #else #include_next diff --git a/include/linux/timer.h b/include/linux/timer.h index 2b0f113b..e32f0503 100644 --- a/include/linux/timer.h +++ b/include/linux/timer.h @@ -7,7 +7,7 @@ #include -#if LINUX_VERSION_CODE < 0x020200 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0) #define mod_timer(a,b) do{del_timer((a));(a)->expires=(b);add_timer((a));}while(0) #endif diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index 7811990e..bbc3c7c3 100644 --- a/include/linux/vmalloc.h +++ b/include/linux/vmalloc.h @@ -8,7 +8,7 @@ #include -#if LINUX_VERSION_CODE < 0x020200 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0) #else #include_next