[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ALSA Driver for Sparc DBRI chips



Am Mittwoch, 24. November 2004 00:01 schrieb Martin Habets:
> As this is a new driver (well, kind of), I was planning on
> testing/submitting it for 2.6 first and backport it later if needed. I have
> not done any 2.4 testing myself.

I have another problem compiling the driver (although compiling sun-amd7930 
shows the same problems). I did a "make clean" prior to "make" and still get 
the following errors:
------------------------------snip--------------------------------------
make[1]: Entering directory `/usr/src/alsa-driver-1.0.7/sparc'
gcc -D__KERNEL__ -DMODULE=1 -I/usr/src/alsa-driver-1.0.7/include  
-I/lib/modules/2.4.27-1-sparc32/build/include -O2 -m32 -mno-fpu 
-fcall-used-g5 -fcall-used-g7 -DLINUX -Wall -Wstrict-prototypes 
-fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-pipe -DALSA_BUILD -nostdinc -iwithprefix include  -DKBUILD_BASENAME=dbri   
-c -o dbri.o dbri.c
In file included from /usr/src/alsa-driver-1.0.7/include/sound/driver.h:42,
                 from ../alsa-kernel/sparc/dbri.c:54,
                 from dbri.c:1:
/usr/src/alsa-driver-1.0.7/include/adriver.h:573:1: warning: "dump_stack" 
redefined
In file included 
from /lib/modules/2.4.27-1-sparc32/build/include/linux/modversions.h:187,
                 from /usr/src/alsa-driver-1.0.7/include/adriver.h:42,
                 from /usr/src/alsa-driver-1.0.7/include/sound/driver.h:42,
                 from ../alsa-kernel/sparc/dbri.c:54,
                 from dbri.c:1:
/lib/modules/2.4.27-1-sparc32/build/include/linux/modules/ksyms.ver:862:1: 
warning: this is the location of the previous definition
In file included from ../alsa-kernel/sparc/dbri.c:55,
                 from dbri.c:1:
/usr/src/alsa-driver-1.0.7/include/sound/core.h: In function 
`snd_timestamp_now':
/usr/src/alsa-driver-1.0.7/include/sound/core.h:468: warning: implicit 
declaration of function `do_gettimeofday_R72270e35'
In file included from dbri.c:1:
../alsa-kernel/sparc/dbri.c: In function `reverse_bytes':
../alsa-kernel/sparc/dbri.c:619: warning: implicit declaration of function 
`printk_Rdd132261'
In file included from dbri.c:1:
../alsa-kernel/sparc/dbri.c: In function `dbri_reset':
../alsa-kernel/sparc/dbri.c:729: warning: implicit declaration of function 
`udelay_Ra39b4cf2'
In file included from dbri.c:1:
../alsa-kernel/sparc/dbri.c: In function `dbri_process_one_interrupt':
../alsa-kernel/sparc/dbri.c:1879: warning: unused variable `rval'
In file included from dbri.c:1:
../alsa-kernel/sparc/dbri.c: In function `snd_dbri_hw_params':
../alsa-kernel/sparc/dbri.c:2111: warning: implicit declaration of function 
`sbus_map_single_Rf78b0148'
In file included from dbri.c:1:
../alsa-kernel/sparc/dbri.c: In function `snd_dbri_hw_free':
../alsa-kernel/sparc/dbri.c:2138: warning: implicit declaration of function 
`sbus_unmap_single_R213eca6f'
In file included from dbri.c:1:
../alsa-kernel/sparc/dbri.c: In function `snd_dbri_pcm':
../alsa-kernel/sparc/dbri.c:2247: warning: implicit declaration of function 
`strcpy_Re914e41e'
In file included from dbri.c:1:
../alsa-kernel/sparc/dbri.c: In function `dbri_debug_write':
../alsa-kernel/sparc/dbri.c:2518: warning: implicit declaration of function 
`sscanf_R859204af'
In file included from dbri.c:1:
../alsa-kernel/sparc/dbri.c: In function `snd_dbri_create':
../alsa-kernel/sparc/dbri.c:2558: warning: implicit declaration of function 
`sbus_alloc_consistent_Rf943f4a8'
../alsa-kernel/sparc/dbri.c:2559: warning: assignment makes pointer from 
integer without a cast
../alsa-kernel/sparc/dbri.c:2571: warning: implicit declaration of function 
`sbus_free_consistent_Re5ab1f9b'
../alsa-kernel/sparc/dbri.c:2576: warning: implicit declaration of function 
`request_irq_Rb9ba6802'
In file included from dbri.c:1:
../alsa-kernel/sparc/dbri.c: In function `snd_dbri_free':
../alsa-kernel/sparc/dbri.c:2606: warning: implicit declaration of function 
`free_irq_Rf20dabd8'
../alsa-kernel/sparc/dbri.c: In function `dbri_attach':
../alsa-kernel/sparc/dbri.c:2638: warning: implicit declaration of function 
`prom_getproperty_R156810c5'
../alsa-kernel/sparc/dbri.c:2648: warning: implicit declaration of function 
`sprintf_R1d26aa98'
../alsa-kernel/sparc/dbri.c: In function `dbri_init':
../alsa-kernel/sparc/dbri.c:2695: error: `sbus_root_R4b91b1b6' undeclared 
(first use in this function)
../alsa-kernel/sparc/dbri.c:2695: error: (Each undeclared identifier is 
reported only once
../alsa-kernel/sparc/dbri.c:2695: error: for each function it appears in.)
../alsa-kernel/sparc/dbri.c:2699: warning: implicit declaration of function 
`__strncmp_R8c5ff0fd'
dbri.c: At top level:
../alsa-kernel/sparc/dbri.c:75: warning: `boot_devs' defined but not used
../alsa-kernel/sparc/dbri.c:97: warning: `cmds' defined but not used
make[1]: *** [dbri.o] Error 1
make[1]: Leaving directory `/usr/src/alsa-driver-1.0.7/sparc'
make: *** [compile] Error 1
------------------------------snip--------------------------------------

# LC_ALL=C gcc --version
gcc (GCC) 3.3.4 (Debian 1:3.3.4-13)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# LC_ALL=C uname -a
Linux dtkstation 2.4.27-1-sparc32 #1 Tue Aug 24 01:05:41 PDT 2004 sparc 
GNU/Linux

This is an normal Debian Sarge installation.
Strange is that I get equal errors on amd7930.c if sun-amd7930 is in the 
--with-cards configure option list.

What's wrong? The function names look quite odd...

HS

-- 
Mein GPG-Key ist auf meiner Homepage verfügbar: http://www.hendrik-sattler.de
        oder über pgp.net

PingoS - Linux-User helfen Schulen: http://www.pingos.org



Reply to: