[2.6 patch] ALSA pdaudiocf: fix three compile warnings
From: Adrian Bunk
Date: Sat Mar 20 2004 - 14:19:28 EST
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>
/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/