Thomas Meyer wrote:
Am Montag, den 08.12.2008, 20:02 +0100 schrieb Thomas Meyer:
Where are these things definied?
Kernel build system, and libdrm/something.h, but not in the kernel header files.
Ok. I took the linux kernel definition of __user and defined DEPRECATED as:
+#define __user __attribute__((noderef, address_space(1)))
This makes no sense outside the kernel. Better just define it as empty.
+#define DEPRECATED __attribute__ ((deprecated))
That is OK. In fact, I have been building the Fedora packages using make CPPFLAGS='-D__user="" -DDEPRECATED="__attribute__ ((deprecated))"' for some time now. Luc, you recently looked into this problem. Any ideas how are we going to avoid this compile failure? a) Add CPPFLAGS definition to Makefile.am? b) Add #define to src/radeon_drm.h? c) Add #define to src/somethingelse.h? d) Add #define to src/*.c which includes radeon_drm.h? e) Something else? I can do any of a) through d) but I need to know which. -- Hans Ulrich Niedermann