From: Takashi Iwai Subject: [PATCH next-20080822] Fix compile warning with linux/ucb1400.h Date: Fri, 22 Aug 2008 16:26:36 +0200 Message-ID: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mail.suse.de ([195.135.220.2]:45933 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752701AbYHVO0m (ORCPT ); Fri, 22 Aug 2008 10:26:42 -0400 Sender: linux-next-owner@vger.kernel.org List-ID: To: Russell King Cc: Marek Vasut , linux-next@vger.kernel.org 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 --- 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;