1 |
wltjr 07/11/19 01:15:04 |
2 |
|
3 |
Added: warnings.patch linux-2.6.23.patch |
4 |
Log: |
5 |
Bumped to latest release per bug #196820. |
6 |
(Portage version: 2.1.3.19) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 x11-drivers/ati-drivers/files/8.42.3/warnings.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.42.3/warnings.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.42.3/warnings.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: warnings.patch |
15 |
=================================================================== |
16 |
diff -Naur common/lib/modules/fglrx/build_mod/firegl_public.c common/lib/modules/fglrx/build_mod/firegl_public.c |
17 |
--- common/lib/modules/fglrx/build_mod/firegl_public.c 2007-07-29 13:36:37.000000000 +0200 |
18 |
+++ common/lib/modules/fglrx/build_mod/firegl_public.c 2007-07-29 14:24:11.000000000 +0200 |
19 |
@@ -452,7 +452,7 @@ |
20 |
} |
21 |
|
22 |
static unsigned int |
23 |
-firegl_interrupt_poll_wrap(struct file *user_file, poll_table *pt) |
24 |
+firegl_interrupt_poll_wrap(struct file *user_file, struct poll_table_struct *pt) |
25 |
{ |
26 |
if(firegl_interrupt_poll(user_file, (__ke_poll_table*)pt)) |
27 |
{ |
28 |
@@ -1491,7 +1491,8 @@ |
29 |
int ATI_API_CALL firegl_put_user_ptr(void *src, u32 *dst) |
30 |
{ |
31 |
void *temp = src; |
32 |
- return put_user(temp, dst); |
33 |
+ void *dst_temp = dst; |
34 |
+ return put_user(temp, dst_temp); |
35 |
} |
36 |
|
37 |
int ATI_API_CALL firegl_put_user_u16(u16 src, u16 *dst) |
38 |
@@ -1883,7 +1884,7 @@ |
39 |
|
40 |
__ke_pci_dev_t* ATI_API_CALL __ke_pci_find_device (unsigned int vendor, unsigned int dev, __ke_pci_dev_t* from) |
41 |
{ |
42 |
- return (__ke_pci_dev_t*)pci_find_device( vendor, dev, (struct pci_dev *)(void *)from ); |
43 |
+ return (__ke_pci_dev_t*) pci_get_device(vendor, dev, (struct pci_dev *)(void *) from); |
44 |
} |
45 |
|
46 |
void* ATI_API_CALL __ke_malloc(__ke_size_t size) |
47 |
@@ -2813,9 +2814,9 @@ |
48 |
#else |
49 |
static void ATI_API_CALL (*irq_handler_func)(int, void*, void*); /* function pointer variable */ |
50 |
|
51 |
-static irqreturn_t ke_irq_handler_wrap(int irq, void *arg1, struct pt_regs *regs) |
52 |
+static irqreturn_t ke_irq_handler_wrap(int irq, void *arg1) |
53 |
{ |
54 |
- irq_handler_func(irq, arg1, regs); |
55 |
+ irq_handler_func(irq, arg1, NULL); |
56 |
return IRQ_HANDLED; |
57 |
} |
58 |
|
59 |
@@ -2826,7 +2827,7 @@ |
60 |
irq_handler_func = handler; |
61 |
return request_irq(irq, |
62 |
ke_irq_handler_wrap, |
63 |
- SA_SHIRQ, dev_name, dev_id); |
64 |
+ IRQF_SHARED, dev_name, dev_id); |
65 |
} |
66 |
|
67 |
void ATI_API_CALL __ke_free_irq(unsigned int irq, void *dev_id) |
68 |
@@ -2848,9 +2849,7 @@ |
69 |
|
70 |
void ATI_API_CALL __ke_unregister_ioctl32_conversion(unsigned int cmd) |
71 |
{ |
72 |
-#ifdef FIREGL_IOCTL_COMPAT |
73 |
- return 0; |
74 |
-#else |
75 |
+#ifndef FIREGL_IOCTL_COMPAT |
76 |
unregister_ioctl32_conversion(cmd); |
77 |
#endif |
78 |
} |
79 |
@@ -4353,7 +4352,7 @@ |
80 |
void ATI_API_CALL KCL_CallFuncOnOtherCpus(firegl_void_routine_t func_to_call) |
81 |
{ |
82 |
#ifdef CONFIG_SMP |
83 |
- smp_call_function( firegl_smp_func_parameter_wrap, (void*)func_to_call, 0, 1 ); |
84 |
+ smp_call_function( (void (*)(void *info)) func_to_call, NULL, 0, 1 ); |
85 |
#endif |
86 |
} |
87 |
|
88 |
@@ -5303,7 +5302,7 @@ |
89 |
/** \brief Type definition of the structure describing Slab Cache object */ |
90 |
typedef struct tag_kasSlabCache_t |
91 |
{ |
92 |
- kmem_cache_t* cache; /* OS slab cache object */ |
93 |
+ struct kmem_cache* cache; /* OS slab cache object */ |
94 |
spinlock_t lock; /* OS spinlock object protecting the cache */ |
95 |
unsigned int routine_type; /* Type of routine the cache might be accessed from */ |
96 |
char name[14]; /* Cache object name (kernel 2.4 restricts its length to 19 chars) */ |
97 |
@@ -5344,7 +5343,7 @@ |
98 |
|
99 |
slabcache_obj->routine_type = access_type; |
100 |
spin_lock_init(&(slabcache_obj->lock)); |
101 |
- sprintf(slabcache_obj->name, "kas(%08X)", (unsigned int)slabcache_obj); |
102 |
+ sprintf(slabcache_obj->name, "kas(%08X)", (unsigned int)(long unsigned int)slabcache_obj); |
103 |
|
104 |
DBG_TRACE("creating slab object '%s'", slabcache_obj->name); |
105 |
|
106 |
|
107 |
|
108 |
|
109 |
1.1 x11-drivers/ati-drivers/files/8.42.3/linux-2.6.23.patch |
110 |
|
111 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.42.3/linux-2.6.23.patch?rev=1.1&view=markup |
112 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.42.3/linux-2.6.23.patch?rev=1.1&content-type=text/plain |
113 |
|
114 |
Index: linux-2.6.23.patch |
115 |
=================================================================== |
116 |
diff -Naur work_orig/common/lib/modules/fglrx/build_mod/firegl_public.c work/common/lib/modules/fglrx/build_mod/firegl_public.c |
117 |
--- work_orig/common/lib/modules/fglrx/build_mod/firegl_public.c 2007-11-11 18:33:01.000000000 -0500 |
118 |
+++ work/common/lib/modules/fglrx/build_mod/firegl_public.c 2007-11-11 18:37:54.000000000 -0500 |
119 |
@@ -217,6 +217,56 @@ |
120 |
#define preempt_enable() |
121 |
#endif |
122 |
|
123 |
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,22) |
124 |
+#if defined(__i386__) |
125 |
+#define ptep_test_and_clear_dirty(vma, addr, ptep) ({ \ |
126 |
+ int __ret = 0; \ |
127 |
+ if (pte_dirty(*(ptep))) \ |
128 |
+ __ret = test_and_clear_bit(_PAGE_BIT_DIRTY, \ |
129 |
+ &(ptep)->pte_low); \ |
130 |
+ if (__ret) \ |
131 |
+ pte_update((vma)->vm_mm, addr, ptep); \ |
132 |
+ __ret; \ |
133 |
+}) |
134 |
+ |
135 |
+static inline int pte_read(pte_t pte) { return (pte).pte_low & _PAGE_USER; } |
136 |
+static inline int pte_user(pte_t pte) { return (pte).pte_low & _PAGE_USER; } |
137 |
+#ifdef CONFIG_X86_PAE |
138 |
+/* |
139 |
+ * Is the pte executable? |
140 |
+ */ |
141 |
+static inline int pte_x(pte_t pte) |
142 |
+{ |
143 |
+ return !(pte_val(pte) & _PAGE_NX); |
144 |
+} |
145 |
+ |
146 |
+/* |
147 |
+ * All present user-pages with !NX bit are user-executable: |
148 |
+ */ |
149 |
+static inline int pte_exec(pte_t pte) |
150 |
+{ |
151 |
+ return pte_user(pte) && pte_x(pte); |
152 |
+} |
153 |
+#else |
154 |
+static inline int pte_exec(pte_t pte) |
155 |
+{ |
156 |
+ return pte_user(pte); |
157 |
+} |
158 |
+#endif /* PAE */ |
159 |
+ |
160 |
+#elif defined(__x86_64__) |
161 |
+static inline int ptep_test_and_clear_dirty(struct vm_area_struct *vma, |
162 |
+ unsigned long addr, pte_t *ptep) |
163 |
+{ |
164 |
+ if (!pte_dirty(*ptep)) |
165 |
+ return 0; |
166 |
+ return test_and_clear_bit(_PAGE_BIT_DIRTY, &ptep->pte); |
167 |
+} |
168 |
+static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } |
169 |
+static inline int pte_exec(pte_t pte) { return !(pte_val(pte) & _PAGE_NX); } |
170 |
+#endif |
171 |
+#endif |
172 |
+ |
173 |
// ============================================================ |
174 |
/* globals */ |
175 |
|
176 |
@@ -2490,7 +2540,7 @@ |
177 |
#ifndef ptep_clear_flush_dirty |
178 |
#define ptep_clear_flush_dirty(__vma, __address, __ptep) \ |
179 |
({ \ |
180 |
- int __dirty = ptep_test_and_clear_dirty(__ptep); \ |
181 |
+ int __dirty = ptep_test_and_clear_dirty(__vma, __address, __ptep); \ |
182 |
if (__dirty) \ |
183 |
flush_tlb_page(__vma, __address); \ |
184 |
__dirty; \ |
185 |
@@ -2937,7 +2987,7 @@ |
186 |
{ |
187 |
return request_irq(irq, |
188 |
(void(*)(int, void *, struct pt_regs *))handler, |
189 |
- SA_SHIRQ, dev_name, dev_id); |
190 |
+ IRQF_SHARED, dev_name, dev_id); |
191 |
} |
192 |
|
193 |
void ATI_API_CALL __ke_free_irq(unsigned int irq, void *dev_id) |
194 |
@@ -5481,7 +5531,7 @@ |
195 |
DBG_TRACE("creating slab object '%s'", slabcache_obj->name); |
196 |
|
197 |
if ((slabcache_obj->cache = |
198 |
- kmem_cache_create(slabcache_obj->name, iEntrySize, 0, 0, NULL, NULL))) |
199 |
+ kmem_cache_create(slabcache_obj->name, iEntrySize, 0, 0, NULL))) |
200 |
{ |
201 |
ret = 1; |
202 |
} |
203 |
|
204 |
|
205 |
|
206 |
-- |
207 |
gentoo-commits@g.o mailing list |