From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757248AbbICPwy (ORCPT ); Thu, 3 Sep 2015 11:52:54 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:36412 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756947AbbICPue (ORCPT ); Thu, 3 Sep 2015 11:50:34 -0400 Date: Thu, 3 Sep 2015 21:20:29 +0530 From: Viresh Kumar To: Guenter Roeck Cc: "Rafael J. Wysocki" , Matthias Brugger , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] cpufreq: Add ARM_MT8173_CPUFREQ dependencyon THERMAL Message-ID: <20150903155029.GB5332@linux> References: <1441293658-18199-1-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1441293658-18199-1-git-send-email-linux@roeck-us.net> 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 On 03-09-15, 08:20, Guenter Roeck wrote: > If ARM_MT8173_CPUFREQ is configured, and THERMAL is configured as module, > the following build error is seen for arm:allmodconfig and > arm64:allmodconfig. > > drivers/built-in.o: In function `mtk_cpufreq_ready': > :(.text+0x32a20c): undefined reference to `of_cpufreq_cooling_register' > drivers/built-in.o: In function `mtk_cpufreq_exit': > :(.text+0x32a420): undefined reference to `cpufreq_cooling_unregister' > > The fix is similar to CPUFREQ_DT, but more restrictive since > ARM_MT8173_CPUFREQ can not be built as module. > > Fixes: 1453863fb02a ("cpufreq: mediatek: Add MT8173 cpufreq driver") > Signed-off-by: Guenter Roeck > --- > It might also make sense to declare ARM_MT8173_CPUFREQ as tristate > and relax the conditions, but I don't know if that is feasible. > > drivers/cpufreq/Kconfig.arm | 1 + > 1 file changed, 1 insertion(+) Acked-by: Viresh Kumar -- viresh