Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756110Ab3JVWyE (ORCPT ); Tue, 22 Oct 2013 18:54:04 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:58522 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751196Ab3JVWyB (ORCPT ); Tue, 22 Oct 2013 18:54:01 -0400 Date: Tue, 22 Oct 2013 15:53:57 -0700 From: Dmitry Torokhov To: Majunath Goudar Cc: linux-arm-kernel@lists.infradead.org, nataraja.km@lge.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] SOUND/SPI: Fix "clk_round_rate" undefined reference error. Message-ID: <20131022225357.GB19819@core.coreip.homeip.net> References: <1381228833-24082-1-git-send-email-csmanjuvijay@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1381228833-24082-1-git-send-email-csmanjuvijay@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1493 Lines: 44 Hi Majunath, On Tue, Oct 08, 2013 at 04:10:33PM +0530, Majunath Goudar wrote: > This patch adds a COMMON_CLK dependency to configure the > SND_AT73C213 for Atmel AT73C213 DAC driver. Without this patch, > build system can lead to build failure. This was observed during > randconfig testing, in which SND_AT73C213 was enabled w/o COMMON_CLK > being enabled. leading to the following error: > > sound/built-in.o: In function `snd_at73c213_probe': > :(.text+0x328c4): undefined reference to `clk_round_rate' > make: *** [vmlinux] Error 1 > > Signed-off-by: Manjunath Goudar > Cc: Dmitry Torokhov > Cc: linux-input@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > sound/spi/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/spi/Kconfig b/sound/spi/Kconfig > index e6485be..798d1ee 100644 > --- a/sound/spi/Kconfig > +++ b/sound/spi/Kconfig > @@ -11,7 +11,7 @@ if SND_SPI > > config SND_AT73C213 > tristate "Atmel AT73C213 DAC driver" > - depends on ATMEL_SSC > + depends on ATMEL_SSC && COMMON_CLK I do not see clk_round_rate() being protected by CONFIG_COMMON_CLK so it looks to me that ATMEL_SSC is at fault here. Thanks. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/