inclide/adriver.h: fix warning about CONFIG_ISA_DMA_API redefinition
PATCH 1/1 inclide/adriver.h: fix warning about CONFIG_ISA_DMA_API redefinition
Hello Takashi,
With recent CVS I've got warnings like this:
In file included from /home/sasha/src/alsa/alsa-driver/include/sound/driver.h:42,
from /home/sasha/src/alsa/alsa-driver/alsa-kernel/core/pcm.c:22, from /home/sasha/src/alsa/alsa-driver/acore/pcm.c:1:/home/sasha/src/alsa/alsa-driver/include/adriver.h:193:1: warning: "CONFIG_ISA_DMA_API" redefined In file included from include/linux/config.h:4,
from /home/sasha/src/alsa/alsa-driver/include/sound/driver.h:29, from /home/sasha/src/alsa/alsa-driver/alsa-kernel/core/pcm.c:22, from /home/sasha/src/alsa/alsa-driver/acore/pcm.c:1:include/linux/autoconf.h:242:1: warning: this is the location of the previous definition
, etc.
The patch below fixes it.
Sasha.
Fix warnings about CONFIG_ISA_DMA_API redefinition.
Index: alsa-driver/include/adriver.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/include/adriver.h,v retrieving revision 1.138
include/adriver.h +2 -0
@@ -190,9 +190,11 @@ static inline struct proc_dir_entry *PDE#if LINUX_VERSION_CODE <KERNEL_VERSION (2 ,6 ,13 )#ifdef CONFIG_SND_ISA +#ifndef CONFIG_ISA_DMA_API #define CONFIG_ISA_DMA_API #endif #endif +#endif #include <linux/types.h> #ifndef __bitwise
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
Takashi Iwai
AppliedAt Sun, 11 Sep 2005 22:36:11 +0300,
Quoted 19 lines · Sasha Khapyorsky
Hello Takashi,
With recent CVS I've got warnings like this:
In file included from
/home/sasha/src/alsa/alsa-driver/include/sound/driver.h:42,
from/home/sasha/src/alsa/alsa-driver/alsa-kernel/core/pcm.c:22, from/home/sasha/src/alsa/alsa-driver/acore/pcm.c:1:/home/sasha/src/alsa/alsa-driver/include/adriver.h:193:1: warning: "CONFIG_ISA_DMA_API" redefined In file included frominclude/linux/config.h:4,
from/home/sasha/src/alsa/alsa-driver/include/sound/driver.h:29, from/home/sasha/src/alsa/alsa-driver/alsa-kernel/core/pcm.c:22, from/home/sasha/src/alsa/alsa-driver/acore/pcm.c:1:include/linux/autoconf.h:242:1: warning: this is the location of the previous definition, etc.
The patch below fixes it.
Quoted 8 lines
Sasha.
Fix warnings about
CONFIG_ISA_DMA_APIredefinition.Signed-off-by Sasha Khapyorsky <[email protected]>
Thanks, applied now.
Takashi
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf