[ALSA - driver 0001745]: too few arguments to function `snd_info_entry_ioctl_old' when compile in Kernel 2.4

bugtrack
2006-01-14T03:26:06Z

Last Modified: 01-14-2006 04:26 CET
======================================================================
Summary: too few arguments to function
`snd_info_entry_ioctl_old' when compile in Kernel 2.4
Description:
gcc32 -D__KERNEL__ -DMODULE=1 -I/alsa/cvs/alsa-driver/include
-I/lib/modules/2.4.22-1.2199.nptl/build/include -O2
-mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall -Wstrict-prototypes
-fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -DALSA_BUILD -nostdinc -iwithprefix include -DMODVERSIONS -include
/lib/modules/2.4.22-1.2199.nptl/build/include/linux/modversions.h
-DKBUILD_BASENAME=info -c -o info.o info.c
info.c: In function `snd_info_entry_ioctl_old':
info.c:483: warning: passing arg 1 of `snd_info_entry_ioctl_old' from
incompatible pointer type
info.c:483: warning: passing arg 2 of `snd_info_entry_ioctl_old' makes
pointer from integer without a cast
info.c:483: too few arguments to function `snd_info_entry_ioctl_old'
info.c: At top level:
info.c:457: warning: `snd_info_entry_ioctl' defined but not used
make[1]: *** [info.o] Error 1
make[1]: Leaving directory `/alsa/cvs/alsa-driver/acore'
make: *** [compile] Error 1

======================================================================

----------------------------------------------------------------------
Raymond - 01-14-06 04:26
----------------------------------------------------------------------
RCS file: /cvsroot/alsa/alsa-driver/acore/info.patch,v
retrieving revision 1.6
diff -u -r1.6 info.patch
--- alsa-driver/acore/info.patch 9 Jan 2006 17:09:15 -0000 1.6
+++ alsa-driver/acore/info.patch 14 Jan 2006 03:13:44 -0000
@@ -60,7 +60,7 @@
+{
+ int err;
+ unlock_kernel();
-+ err = snd_info_entry_ioctl_old(file, cmd, arg);
++ err = snd_info_entry_ioctl(file, cmd, arg);
+ lock_kernel();
+ return err;
+}