mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.6 patch] ALSA pdaudiocf: fix three compile warnings
@ 2004-03-20 19:16 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2004-03-20 19:16 UTC (permalink / raw)
  To: perex; +Cc: alsa-devel, linux-kernel

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

--- linux-2.6.5-rc1-mm2-full/sound/pcmcia/pdaudiocf/pdaudiocf.c.old	2004-03-20 19:38:48.000000000 +0100
+++ linux-2.6.5-rc1-mm2-full/sound/pcmcia/pdaudiocf/pdaudiocf.c	2004-03-20 19:39:30.000000000 +0100
@@ -25,7 +25,6 @@
 #include <pcmcia/ciscode.h>
 #include <pcmcia/cisreg.h>
 #include "pdaudiocf.h"
-#define SNDRV_GET_ID
 #include <sound/initval.h>
 
 /*
--- linux-2.6.5-rc1-mm2-full/sound/pcmcia/pdaudiocf/pdaudiocf_core.c.old	2004-03-20 19:39:30.000000000 +0100
+++ linux-2.6.5-rc1-mm2-full/sound/pcmcia/pdaudiocf/pdaudiocf_core.c	2004-03-20 19:39:34.000000000 +0100
@@ -23,7 +23,6 @@
 #include <sound/core.h>
 #include <sound/info.h>
 #include "pdaudiocf.h"
-#define SNDRV_GET_ID
 #include <sound/initval.h>
 
 /*
--- linux-2.6.5-rc1-mm2-full/sound/pcmcia/pdaudiocf/pdaudiocf_irq.c.old	2004-03-20 19:39:35.000000000 +0100
+++ linux-2.6.5-rc1-mm2-full/sound/pcmcia/pdaudiocf/pdaudiocf_irq.c	2004-03-20 19:39:39.000000000 +0100
@@ -21,7 +21,6 @@
 #include <sound/driver.h>
 #include <sound/core.h>
 #include "pdaudiocf.h"
-#define SNDRV_GET_ID
 #include <sound/initval.h>
 
 /*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-20 19:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-20 19:16 [2.6 patch] ALSA pdaudiocf: fix three compile warnings Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®