Skip to contentSkip to conversation

alsa-1.0.6

Alsa-user René Rebe 1 participant 1 message Aug 16, 2004 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

René Rebe

author
#2 lore raw

Hi,

Quoted 13 lines · Jan Engelhardt
Quoted 13 lines

Taking a look at the frist message I found in asound.h the following piece of code:

struct sndrv_hwdep_dsp_image {
unsigned int index; /* W: DSP index */
unsigned char name[64]; /* W: ID (e.g. file name) */
unsigned char __user *image; /* W: binary image */ !!!!!!!!!!
size_t length; /* W: size of image in bytes */
unsigned long driver_data; /* W: driver-specific data */
};

Quoted 7 lines
Quoted 3 lines

"!!!!!!" marks the line, in which gcc 3.3.4 fails.

Is it due to that "__user" ?

From a programmer's point of view, I would say look up where __user is defined. If not, just try removing __user.

linux/compiler.h

Either ALSA is compiler against the wrong kernel headers (outdated, e.g. 2.4) or a #include <linux/compiler.h> is missing ;-)

Sincerely yours,
René Rebe

--
René Rebe - Europe/Germany/Berlin
[email protected] [email protected]
http://www.rocklinux.org http://www.rocklinux-consulting.de

-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285