Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759328AbbKSWkS (ORCPT ); Thu, 19 Nov 2015 17:40:18 -0500 Received: from hqemgate15.nvidia.com ([216.228.121.64]:14574 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758861AbbKSWkP (ORCPT ); Thu, 19 Nov 2015 17:40:15 -0500 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Thu, 19 Nov 2015 14:37:41 -0800 Subject: Re: [PATCH] clk: tegra: move _calc_dynamic_ram_rate out of #ifdef To: Arnd Bergmann , Thierry Reding References: <4290741.p1jMzEOUEU@wuerfel> CC: Peter De Schrijver , Prashant Gaikwad , Michael Turquette , Stephen Boyd , , Stephen Warren , Alexandre Courbot , , , From: Rhyland Klein Message-ID: <564E4FC7.9040302@nvidia.com> Date: Thu, 19 Nov 2015 17:40:07 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <4290741.p1jMzEOUEU@wuerfel> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1171 Lines: 30 On 11/19/2015 5:32 PM, Arnd Bergmann wrote: > _calc_dynamic_ram_rate is defined inside an #ifdef but called > later in the same file outside of that #ifdef, which can cause a > build error: > > drivers/clk/tegra/clk-pll.c: In function '_tegra_clk_register_pll': > drivers/clk/tegra/clk-pll.c:1541:29: error: '_calc_dynamic_ramp_rate' undeclared (first use in this function) > > This moves both _calc_dynamic_ram_rate and _pll_fixed_mdiv in > front of the #ifdef to make all configurations compile again. > > Signed-off-by: Arnd Bergmann > Fixes: 44c8b9fa432c ("clk: tegra: pll: Fix _pll_ramp_calc_pll logic and _calc_dynamic_ramp_rate") > ---- > The patch that caused it appears to be older, but I only ran into > the randconfig bug today for the first time. Apparently the commit > is only in linux-next at the moment, not in 4.4-rc1 > Acked-by: Rhyland Klein -rhyland -- nvpublic -- 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/