From: Borislav Petkov <bp@amd64.org>
To: Takashi Iwai <tiwai@suse.de>, Jaroslav Kysela <perex@perex.cz>
Cc: alsa-devel@alsa-project.org, LKML <linux-kernel@vger.kernel.org>,
Borislav Petkov <borislav.petkov@amd.com>
Subject: [PATCH] sound, hda_codec: Fix compilation warnings
Date: Fri, 22 Jul 2011 19:40:37 +0200 [thread overview]
Message-ID: <1311356437-28816-1-git-send-email-bp@amd64.org> (raw)
From: Borislav Petkov <borislav.petkov@amd.com>
Convert macro to an inline function to shut up gcc:
sound/pci/hda/patch_sigmatel.c: In function `stac92xx_init´:
sound/pci/hda/patch_sigmatel.c:4385:3: warning: statement with no effect
sound/pci/hda/patch_sigmatel.c: In function `stac92xx_resume´:
sound/pci/hda/patch_sigmatel.c:4925:3: warning: statement with no effect
sound/pci/hda/hda_codec.c: In function `snd_hda_mixer_amp_switch_put´:
sound/pci/hda/patch_realtek.c:4176:2: warning: statement with no effect
sound/pci/hda/hda_codec.c:2320:2: warning: statement with no effect
sound/pci/hda/patch_realtek.c: In function `alc_resume´:
sound/pci/hda/patch_realtek.c:4558:2: warning: statement with no effect
sound/pci/hda/patch_realtek.c: In function `alc269_resume´:
sound/pci/hda/patch_realtek.c:14878:2: warning: statement with no effect
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
---
sound/pci/hda/hda_codec.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 59c9730..79ede92 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -1005,8 +1005,12 @@ int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid)
return codec->patch_ops.check_power_status(codec, nid);
return 0;
}
-#else
-#define hda_call_check_power_status(codec, nid) 0
+#else
+static inline
+int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid)
+{
+ return 0;
+}
#endif
/*
--
1.7.4.rc2
next reply other threads:[~2011-07-22 17:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-22 17:40 Borislav Petkov [this message]
2011-07-22 19:25 ` Takashi Iwai
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=1311356437-28816-1-git-send-email-bp@amd64.org \
--to=bp@amd64.org \
--cc=alsa-devel@alsa-project.org \
--cc=borislav.petkov@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.de \
/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®