From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754639AbbJNVN4 (ORCPT ); Wed, 14 Oct 2015 17:13:56 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45451 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753857AbbJNVNx (ORCPT ); Wed, 14 Oct 2015 17:13:53 -0400 Date: Wed, 14 Oct 2015 14:13:51 -0700 From: Stephen Boyd To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Luis de Bethencourt , Michael Turquette , Scott Branden , Ray Jui , linux-clk@vger.kernel.org Subject: Re: [PATCH] clk: Allow drivers to build if COMPILE_TEST is enabled Message-ID: <20151014211351.GC4558@codeaurora.org> References: <1444745898-11537-1-git-send-email-javier@osg.samsung.com> <20151014183831.GH26883@codeaurora.org> <561EA831.2070001@osg.samsung.com> <561EAF6F.6080901@osg.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <561EAF6F.6080901@osg.samsung.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 On 10/14, Javier Martinez Canillas wrote: > On 10/14/2015 09:08 PM, Javier Martinez Canillas wrote: > > Hello Stephen, > > > > On 10/14/2015 08:38 PM, Stephen Boyd wrote: > >> On 10/13, Javier Martinez Canillas wrote: > >>> diff --git a/drivers/clk/versatile/Kconfig b/drivers/clk/versatile/Kconfig > >>> index 1530c9352a76..fc50b6264bed 100644 > >>> --- a/drivers/clk/versatile/Kconfig > >>> +++ b/drivers/clk/versatile/Kconfig > >>> @@ -1,6 +1,6 @@ > >>> config COMMON_CLK_VERSATILE > >>> bool "Clock driver for ARM Reference designs" > >>> - depends on ARCH_INTEGRATOR || ARCH_REALVIEW || ARCH_VEXPRESS || ARM64 > >>> + depends on ARCH_INTEGRATOR || ARCH_REALVIEW || ARCH_VEXPRESS || ARM64 || COMPILE_TEST > >> > >> Have you compiled these drivers on an architecture that doesn't > >> have IOMEM? Perhaps tile or um? I'm all for more build coverage, > >> but it's not always as simple as just sprinkling some > >> COMPILE_TEST around the Kconfigs. > >> > > > > No, I only build tested on arm32 and x86. The 0-day bot haven't reported a > > build error yet and I didn't see any platform dependent code in the drivers. > > > > BTW, all clk drivers depends on COMMON_CLK so these won't even be built in > tile or um since that symbol isn't selected there. Or did I misunderstand? > > Having said that, I see that enabling COMPILE_TEST will attempt to build > in many archs [0] that I don't have a toolchain to test. So I'm OK if you > drop this patch and sorry for the inconvenience. > > [0]: > $ git grep "select COMMON_CLK" arch/ | cut -d '/' -f2 | uniq > arc > arm > arm64 > h8300 > microblaze > mips > powerpc > x86 > xtensa > Ah that's good. So assuming someone has built these patches with these architectures then we've got it all covered. Do you know if kbuild does that? There are a bunch of cross compilers on kernel.org that may help[1]. I'll wait to apply the patch once we get that confirmation. [1] https://www.kernel.org/pub/tools/crosstool/ -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project