Mailinglist Archive: radeonhd (145 mails)
| < Previous | Next > |
Re: [radeonhd] Re: Compile fails because of src/radeon_drm.h (DEPRECATED, __user)
- From: Hans Ulrich Niedermann <hun@xxxxxxxxxxxxxxxx>
- Date: Wed, 10 Dec 2008 14:42:21 +0100
- Message-id: <493FC73D.1050400@xxxxxxxxxxxxxxxx>
Thomas Meyer wrote:
Kernel build system, and libdrm/something.h, but not in the kernel
header files.
This makes no sense outside the kernel. Better just define
it as empty.
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
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
| < Previous | Next > |