I downloaded a bluetooth module today (btsco.41.tgz)
I am getting an error on line 88 when compiling and trying to figure
out why???
I have compared it to alsa-driver code and it looks good to me.
here is the source snippit:
----------------- the following line is line 86 ---------------
static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2};
module_param_array(index, int, NULL, 0444);
MODULE_PARM_DESC(index, "Index value for Bluetooth SCO Headset
Soundcard.");
-------------------------------------------------------------------
below is the compile output.
[root at geisjdell kernel]#
[root at geisjdell kernel]# make
make[1]: Entering directory `/usr/src/kernels/2.6.9-22.0.1.EL-i686'
CC [M] /usr/src/btsco-0.41/kernel/btsco.o
/usr/src/btsco-0.41/kernel/btsco.c:88: error: invalid lvalue in unary
`&'
/usr/src/btsco-0.41/kernel/btsco.c:88: error: initializer element is not
constant
/usr/src/btsco-0.41/kernel/btsco.c:88: error: (near initialization for
`__param_arr_index.num')
make[2]: *** [/usr/src/btsco-0.41/kernel/btsco.o] Error 1
make[1]: *** [_module_/usr/src/btsco-0.41/kernel] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-22.0.1.EL-i686'
make: *** [default] Error 2
[root at geisjdell kernel]#
Any idea on what to do with this? Most everything else I download compiles.
I am using a fully up2date centos 4.2 system.
Thanks for any suggestions...
Jerry