Messages in this thread | | | Date | Mon, 12 Oct 1998 13:53:48 +0300 (EEST) | From | "Alexandr D. Kanevskiy" <> | Subject | Sparc. dma.c compile problem & fix. |
| |
Hi !
Here is a problem. Kernlel 2.1.125. ( vger snapshot 19981012 also have this problem).
gcc -D__KERNEL__ -I/usr/src/linux-vger/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 -c -o dma.o dma.c dma.c:35: parse error before `dma_spin_lock' dma.c:35: warning: type defaults to `int' in declaration of `dma_spin_lock' dma.c:35: `SPIN_LOCK_UNLOCKED' undeclared here (not in a function) dma.c:35: warning: data definition has no type or storage class make[2]: *** [dma.o] Error 1 make[2]: Leaving directory `/usr/src/linux-vger/kernel' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-vger/kernel' make: *** [_dir_kernel] Error 2 Command exited with non-zero status 2
Fix: - add in dma.c line: #include <asm/spinlock.h>
With best regards, Alexandr. --------------------------------------------------------- InterNIC: AK2644 Email: kad@alchevsk.lugansk.ua Groups: // MFUA // UCL // kad@dgtu.donetsk.ua ---------------------------------------------------------
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |