From: Adrian Bunk <bunk@fs.tum.de>
To: perex@suse.cz
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] ALSA pdaudiocf: fix three compile warnings
Date: Sat, 20 Mar 2004 20:16:42 +0100 [thread overview]
Message-ID: <20040320191642.GN19464@fs.tum.de> (raw)
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>
/*
reply other threads:[~2004-03-20 19:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040320191642.GN19464@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®