From: Takashi Iwai <tiwai@suse.de>
To: TazForEver@free.fr
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.7 warnings
Date: Wed, 16 Jun 2004 18:00:29 +0200 [thread overview]
Message-ID: <s5hpt7zqyqq.wl@alsa2.suse.de> (raw)
In-Reply-To: <1087390517.22712.6.camel@athlon>
At Wed, 16 Jun 2004 14:55:17 +0200,
Benoît Dejean wrote:
>
> sound/pci/via82xx.c: In function `snd_via82xx_probe':
> sound/pci/via82xx.c:2252: warning: statement with no effect
> (cpp shows that this statement is reduced to -22;)
The patch below should fix this.
Takashi
--- linux-2.6.7/include/sound/core.h-dist 2004-06-16 17:57:34.288215560 +0200
+++ linux-2.6.7/include/sound/core.h 2004-06-16 17:58:19.638890254 +0200
@@ -223,9 +223,9 @@ int snd_card_pci_resume(struct pci_dev *
static inline int snd_power_wait(snd_card_t *card, unsigned int state, struct file *file) { return 0; }
#define snd_power_get_state(card) SNDRV_CTL_POWER_D0
#define snd_power_change_state(card, state) do { (void)(card); } while (0)
-#define snd_card_set_pm_callback(card,suspend,resume,data) -EINVAL
-#define snd_card_set_dev_pm_callback(card,suspend,resume,data) -EINVAL
-#define snd_card_set_isa_pm_callback(card,suspend,resume,data) -EINVAL
+#define snd_card_set_pm_callback(card,suspend,resume,data)
+#define snd_card_set_dev_pm_callback(card,suspend,resume,data)
+#define snd_card_set_isa_pm_callback(card,suspend,resume,data)
#define SND_PCI_PM_CALLBACKS
#endif
prev parent reply other threads:[~2004-06-16 16:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-16 12:55 Benoît Dejean
2004-06-16 16:00 ` Takashi Iwai [this message]
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=s5hpt7zqyqq.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=TazForEver@free.fr \
--cc=linux-kernel@vger.kernel.org \
/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®