Skip to contentSkip to conversation

ALSA pdaudiocf: fix three compile warnings

PATCH New Adrian Bunk 1 participant 1 message Mar 20, 2004 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA pdaudiocf: fix three compile warnings

I got the following compile warnings in 2.6.5-rc:

<-- snip -->

...
CC sound/pcmcia/pdaudiocf/pdaudiocf.o
include/sound/initval.h:141: warning: `get_id' defined but not used
CC sound/pcmcia/pdaudiocf/pdaudiocf_core.o
include/sound/initval.h:141: warning: `get_id' defined but not used
CC sound/pcmcia/pdaudiocf/pdaudiocf_irq.o
include/sound/initval.h:141: warning: `get_id' defined but not used
...

<-- snip -->

Below is a patch that fixes these warnings (SNDRV_GET_ID is not required since these files don't use get_id).

I've tested both the modular and the non-modular compilation.

cu
Adrian

sound/pcmcia/pdaudiocf/pdaudiocf.c renamed from sound/pcmcia/pdaudiocf/pdaudiocf.c.old +0 -1
@@ -25,7 +25,6 @@
 #include <pcmcia/ciscode.h>
 #include <pcmcia/cisreg.h>
 #include "pdaudiocf.h"
-#define SNDRV_GET_ID
 #include <sound/initval.h>
 
 /*
sound/pcmcia/pdaudiocf/pdaudiocf_core.c renamed from sound/pcmcia/pdaudiocf/pdaudiocf_core.c.old +0 -1
@@ -23,7 +23,6 @@
 #include <sound/core.h>
 #include <sound/info.h>
 #include "pdaudiocf.h"
-#define SNDRV_GET_ID
 #include <sound/initval.h>
 
 /*
sound/pcmcia/pdaudiocf/pdaudiocf_irq.c renamed from sound/pcmcia/pdaudiocf/pdaudiocf_irq.c.old +0 -1
@@ -21,7 +21,6 @@
 #include <sound/driver.h>
 #include <sound/core.h>
 #include "pdaudiocf.h"
-#define SNDRV_GET_ID
 #include <sound/initval.h>
 
 /*