public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse•de>
To: Russell King <rmk+kernel@arm•linux.org.uk>
Cc: Marek Vasut <marek.vasut@gmail•com>, linux-next@vger•kernel.org
Subject: [PATCH next-20080822] Fix compile warning with linux/ucb1400.h
Date: Fri, 22 Aug 2008 16:26:36 +0200	[thread overview]
Message-ID: <s5hk5e9f7mr.wl%tiwai@suse.de> (raw)

Use inline for a function in linux/ucb1400.h.

  include/linux/ucb1400.h:139: warning: 'ucb1400_adc_read' defined but not used

Signed-off-by: Takashi Iwai <tiwai@suse•de>

---
diff --git a/include/linux/ucb1400.h b/include/linux/ucb1400.h
index 970473b..2c0f83b 100644
--- a/include/linux/ucb1400.h
+++ b/include/linux/ucb1400.h
@@ -134,8 +134,8 @@ static inline void ucb1400_adc_enable(struct snd_ac97 *ac97)
 	ucb1400_reg_write(ac97, UCB_ADC_CR, UCB_ADC_ENA);
 }
 
-static unsigned int ucb1400_adc_read(struct snd_ac97 *ac97, u16 adc_channel,
-					int adcsync)
+static inline unsigned int ucb1400_adc_read(struct snd_ac97 *ac97,
+					    u16 adc_channel, int adcsync)
 {
 	unsigned int val;
 

                 reply	other threads:[~2008-08-22 14:26 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=s5hk5e9f7mr.wl%tiwai@suse.de \
    --to=tiwai@suse$(echo .)de \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=marek.vasut@gmail$(echo .)com \
    --cc=rmk+kernel@arm$(echo .)linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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