summaryrefslogtreecommitdiff
path: root/x11-drivers/ati-drivers/files/kernel/2.6.32-9.11-fix_compilation.patch
blob: 38519d76c3436cb72dae4f4f4ff0533a797d6141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- work/common/lib/modules/fglrx/build_mod/firegl_public.c
+++ work.new/common/lib/modules/fglrx/build_mod/firegl_public.c
@@ -1441,7 +1441,9 @@
 todo !!!
 #endif
 
-unsigned long ATI_API_CALL __ke__cmpxchg(volatile void *ptr, unsigned long old,
+void __cmpxchg_wrong_size(void) {}
+
+unsigned long ATI_API_CALL __ke__cmpxchg(volatile unsigned long *ptr, unsigned long old,
          unsigned long new, int size)
 {
 #ifndef __HAVE_ARCH_CMPXCHG
--- work/common/lib/modules/fglrx/build_mod/firegl_public.h
+++ work.new/common/lib/modules/fglrx/build_mod/firegl_public.h
@@ -441,7 +441,8 @@
 extern void ATI_API_CALL KCL_SIGNAL_BlockAll(int (*notifier)(void *priv), void *pPriv, __ke_sigset_t *pSigMask);
 extern void ATI_API_CALL KCL_SIGNAL_UnblockAll(void);
 
-extern unsigned long ATI_API_CALL __ke__cmpxchg(volatile void *ptr, unsigned long old,                      
+extern void __cmpxchg_wrong_size(void);
+extern unsigned long ATI_API_CALL __ke__cmpxchg(volatile unsigned long *ptr, unsigned long old,                      
                       unsigned long new, int size);
 
 #define __ke_cmpxchg(ptr,o,n)                        \
--- work/common/lib/modules/fglrx/build_mod/kcl_io.c
+++ work.new/common/lib/modules/fglrx/build_mod/kcl_io.c
@@ -37,8 +37,9 @@
  */
 
 #include <linux/version.h>
 #include <linux/autoconf.h>
 #include <linux/poll.h>
+#include <linux/signal.h>
 #include <asm/io.h>
 
 #include "kcl_config.h"