X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fum%2Fdrivers%2Fhostaudio_kern.c;fp=arch%2Fum%2Fdrivers%2Fhostaudio_kern.c;h=59602b81b2402be669fe264eee5f9afb2999565a;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=9c598e487ab270d56fafe1053c075915af0a0e0a;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/arch/um/drivers/hostaudio_kern.c b/arch/um/drivers/hostaudio_kern.c index 9c598e487..59602b81b 100644 --- a/arch/um/drivers/hostaudio_kern.c +++ b/arch/um/drivers/hostaudio_kern.c @@ -3,6 +3,7 @@ * Licensed under the GPL */ +#include "linux/config.h" #include "linux/module.h" #include "linux/init.h" #include "linux/slab.h" @@ -66,8 +67,8 @@ MODULE_PARM_DESC(mixer, MIXER_HELP); /* /dev/dsp file operations */ -static ssize_t hostaudio_read(struct file *file, char __user *buffer, - size_t count, loff_t *ppos) +static ssize_t hostaudio_read(struct file *file, char *buffer, size_t count, + loff_t *ppos) { struct hostaudio_state *state = file->private_data; void *kbuf; @@ -93,7 +94,7 @@ static ssize_t hostaudio_read(struct file *file, char __user *buffer, return(err); } -static ssize_t hostaudio_write(struct file *file, const char __user *buffer, +static ssize_t hostaudio_write(struct file *file, const char *buffer, size_t count, loff_t *ppos) { struct hostaudio_state *state = file->private_data; @@ -151,7 +152,7 @@ static int hostaudio_ioctl(struct inode *inode, struct file *file, case SNDCTL_DSP_CHANNELS: case SNDCTL_DSP_SUBDIVIDE: case SNDCTL_DSP_SETFRAGMENT: - if(get_user(data, (int __user *) arg)) + if(get_user(data, (int *) arg)) return(-EFAULT); break; default: @@ -167,7 +168,7 @@ static int hostaudio_ioctl(struct inode *inode, struct file *file, case SNDCTL_DSP_CHANNELS: case SNDCTL_DSP_SUBDIVIDE: case SNDCTL_DSP_SETFRAGMENT: - if(put_user(data, (int __user *) arg)) + if(put_user(data, (int *) arg)) return(-EFAULT); break; default: