: Driver build fails due to bug in kernel include/asm/dma-mapping.h file.
The following issue has been REOPENED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2046>
======================================================================
Reported By: GrueMaster Assigned To: perex ====================================================================== Project: ALSA - driver Issue ID: 2046 Category: 0_compilation problem_!!! Reproducibility: always Severity: major Priority: normal Status: feedback Distribution: Novell Linux Desktop 9 Service pack 3 Kernel Version: 2.6.5-7.244 & 2.6.5 stock kernels ====================================================================== Date Submitted: 04-20-2006 23:53 CEST Last Modified: 04-21-2006 22:47 CEST
======================================================================
Summary: Driver build fails due to bug in kernelinclude/asm/dma-mapping.h file.
Description:
Compile fails at acore/sgbuf.c. Multiple define errors in include/asm/dma-mapping.h file. This has also been reproduced againast a clean 2.6.5 kernel from kernel.org.
======================================================================
----------------------------------------------------------------------
tiwai - 04-21-06 12:42
----------------------------------------------------------------------
Fixed on Hg repo.
----------------------------------------------------------------------
GrueMaster - 04-21-06 22:47
----------------------------------------------------------------------
I modified your patch to add include/linux/mm.h (needed by both Novell & stock kernels) and DMA_32BIT_MASK (needed for stock kernel to build ). Here's my version of your patch:
--- alsa-driver-1.0.11.orig/include/adriver.h 2006-04-18
23:24:30.000000000 -0700
+++ alsa-driver-1.0.11/include/adriver.h 2006-04-21
10:37:53.559693432 -0700
@@ -750,7 +750,15 @@
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 17)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 6) +#include <asm/io.h>
+#include <asm/scatterlist.h>
+#include <linux/mm.h>
+#endif
#include <linux/dma-mapping.h>
+#ifndef DMA_32BIT_MASK
+#define DMA_32BIT_MASK 0x00000000ffffffffULL +#endif
#ifndef DMA_31BIT_MASK
#define DMA_31BIT_MASK 0x000000007fffffffULL #endif
@@ -1175,3 +1183,4 @@
#define OPL3_HW_OPL3_PC98 0x0305 /* PC9800 */
#endif /* __SOUND_LOCAL_DRIVER_H */
+
This has been tested on Novell Linux Desktop 9 with Service Pack 3 kernel & the stock 2.6.5 kernel from kernel.org.
Issue History
Date Modified Username Field Change
======================================================================
04-20-06 23:53 GrueMaster New Issue
04-20-06 23:53 GrueMaster Distribution => Novell Linux Desktop
9 Service pack 3
04-21-06 12:42 tiwai Status assigned => resolved 04-21-06 12:42 tiwai Resolution open => fixed 04-21-06 12:42 tiwai Note Added: 0009409 04-21-06 22:47 GrueMaster Kernel Version => 2.6.5-7.244 & 2.6.5 stock kernels 04-21-06 22:47 GrueMaster Status resolved => feedback 04-21-06 22:47 GrueMaster Resolution fixed => reopened 04-21-06 22:47 GrueMaster Note Added: 0009431
======================================================================
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642