From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754600AbbJOHWP (ORCPT ); Thu, 15 Oct 2015 03:22:15 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:20598 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753704AbbJOHWN (ORCPT ); Thu, 15 Oct 2015 03:22:13 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-fc-561f5422948e Subject: Re: [PATCH] clk: Allow drivers to build if COMPILE_TEST is enabled To: Javier Martinez Canillas , Luis de Bethencourt References: <1444745898-11537-1-git-send-email-javier@osg.samsung.com> <20151014183831.GH26883@codeaurora.org> <561EA831.2070001@osg.samsung.com> <561F5189.3070809@osg.samsung.com> Cc: Stephen Boyd , linux-kernel@vger.kernel.org, Michael Turquette , Scott Branden , Ray Jui , linux-clk@vger.kernel.org From: Krzysztof Kozlowski Message-id: <561F541D.6010006@samsung.com> Date: Thu, 15 Oct 2015 16:22:05 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-version: 1.0 In-reply-to: <561F5189.3070809@osg.samsung.com> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsVy+t/xa7pKIfJhBtc+mFi8ebuGyeL1C0OL jz33WC0u75rDZnF03jRGi4unXC2eztzMZvHjTDeLxbvVTxgdOD3e32hl95h1/yybx+W+XiaP Lf132T36tqxi9Pi8SS6ALYrLJiU1J7MstUjfLoErY8+5mII9ghUtW3rYGhg/8XYxcnJICJhI rN12mB3CFpO4cG89WxcjF4eQwFJGiV0TT0M5XxglHjzexQZSJSzgLTGz9wcTiC0ikCpxauJG Roii/4wS3VPegXUwC1xnlPi6swGsik3AWGLz8iVg3bwCWhKL+w+B2SwCqhJtj6aD7RYViJCY OKGBFaJGUOLH5HssIDangL7E0lUvgeIcQEPVJaZMyQUJMwvIS2xe85Z5AqPALCQdsxCqZiGp WsDIvIpRNLU0uaA4KT3XUK84Mbe4NC9dLzk/dxMjJPy/7GBcfMzqEKMAB6MSD++JB3JhQqyJ ZcWVuYcYJTiYlUR4tTcAhXhTEiurUovy44tKc1KLDzFKc7AoifPO3fU+REggPbEkNTs1tSC1 CCbLxMEp1cCYo8TRlHd96eeJToc1JghaRboYR+yS8T9eXsQYo91wUfE8t/Qs49/8R6VFt0Y2 61nuaWP82l11sGXjnAdKQm8vbfontaL/y3X7yo3xwe73D+xRNlUPX8ZeyO4Yzzq9/mfw1JuL rruc+q11yFJcpJ/Je8HcywaMyf5TunVi/57+Ij5X8ecPxxtKLMUZiYZazEXFiQA7IxrWewIA AA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15.10.2015 16:11, Javier Martinez Canillas wrote: > Hello Krzysztof, >>>> >>> >>> 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. >> >> I see you guys with Luis are adding a lot of COMPILE_TEST. But > > Yes, the motivation for this was that I've been helping Mauro with a big > rework in the media subsystem [0] and was annoying to audit that all the > drivers were converted to the new APIs and no compile regressions were > introduced in drivers that could not be built with COMPILE_TEST enabled. > > Most media drivers are able to be build though so I thought it would be > a good idea to extend the build coverage in all the other subsystems. > >> building only on these two architectures *is not enough*. Run at least >> armv8, PPC and the x86_64. MIPS would be nice as well (I use the >> CodeSourcery's MIPS). All of these (ARM64, X86_64, PPC, MIPS) can be >> easily installed on typical debian-like Linux distro. Really easily. >> > > Thanks, Stephen also pointed out to the toolchains in kernel.org [1]. > >> By adding this non-tested build coverage you can actually fail some >> other architecture's allyesconfig/allmodconfig builds. >> > > Agreed, unfortunately having more build coverage is not as trivial as I > originally thought. Not only because it can break the build in obscure > archs that I don't have a toolchain to test but also exposes more build > warnings (as reported by the 0-day bot) that I've the bandwidth to fix. > > So personally I'll stop trying to enabled COMPILE_TEST just to be safe. I mean that in general I agree with the idea of COMPILE_TEST. I had similar problems when I was changing the power supply API. Build testing of each modified file required a lot of effort... but it was doable. I just set up a configuration for build server doing all necessary archs and configs. With COMPILE_TEST it would be much, much easier! You don't have to give up entirely. Just use more compilers and in the same time fix the warnings and errors. Send a patch fixing driver and another one adding COMPILE_TEST. Best regards, Krzysztof