Re: ALSA update

Jaroslav Kysela
2002-10-14T22:38:18Z

On Mon, 14 Oct 2002, David S. Miller wrote:

> This breaks the build on sparc64:
>
> sound/core/ioctl32/ioctl32.h:95: parse error before `if'
> sound/core/ioctl32/ioctl32.h:99: parse error before `sizeof'

Oops. Missing two backslashes. It should be corrected with this patch
(already in linux-sound BK repository):

Index: ioctl32.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/ioctl32/ioctl32.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ioctl32.h 12 Oct 2002 14:18:09 -0000 1.9
+++ ioctl32.h 14 Oct 2002 22:28:27 -0000 1.10
@@ -91,11 +91,11 @@
if (data32 == NULL || data == NULL) { \
err = -ENOMEM; \
goto __end; \
- }
+ }\
if (copy_from_user(data32, (void*)arg, sizeof(*data32))) { \
err = -EFAULT; \
goto __end; \
- }
+ }\
memset(data, 0, sizeof(*data));\
convert_from_32(type, data, data32);\
oldseg = get_fs();\

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com