From patchwork Fri Feb 16 21:41:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10225795 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 36552603EE for ; Fri, 16 Feb 2018 21:43:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2656529642 for ; Fri, 16 Feb 2018 21:43:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B427296C0; Fri, 16 Feb 2018 21:43:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 886A829642 for ; Fri, 16 Feb 2018 21:43:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750792AbeBPVmZ (ORCPT ); Fri, 16 Feb 2018 16:42:25 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:49045 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751109AbeBPVmW (ORCPT ); Fri, 16 Feb 2018 16:42:22 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MSa8q-1fC4PT0hBE-00Rbw2; Fri, 16 Feb 2018 22:42:07 +0100 From: Arnd Bergmann To: linux-kbuild@vger.kernel.org Cc: "Yann E . MORIN" , Masahiro Yamada , Michal Marek , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Arnd Bergmann , Steven Rostedt , Ingo Molnar Subject: [PATCH 1/3] Kconfig: disable PROFILE_ALL_BRANCHES for compile testing Date: Fri, 16 Feb 2018 22:41:11 +0100 Message-Id: <20180216214117.1947175-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180216214117.1947175-1-arnd@arndb.de> References: <20180216214117.1947175-1-arnd@arndb.de> X-Provags-ID: V03:K0:fmoMXGGJlTzOB4cQs/MTrS865pX8OurSmi24tep6rOdajbPcgdl LWdXsrFm2Egd/k37n5gWN9yj7PA8OXTaCkEVfusg1X4jL/GzwNJoh/WxyPEKQlKqq9o5rcT 6/JYHL9FiquWul0Jqko2Tei99pw6biWmHa8oTVIq8GbO16pbBVqKXxRE1XHUMn0RiE34hNQ /hpAeUPzD3lezwgulVDpQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:NanqIWh+AxY=:TIukbxs8gEyxQgGMCF+DbU c0hjeb35U1oGhmLHd9dwijue79wIWjwQtYkuyZITKebtR/0Ty7S59J7YIrwnaT0SMO6NNAESX KmUkjdY464ry3v23CzpeaeB51irDDxaGATIUTodRY1qxBMAST0IqDdrGu7bqLvKdEz9Fd38fs Zr4BJ46eXmtbTFWwQDV1NcvGO/Xec36AWSTsUImYkJjTTK1micjYxoaKfnL69YwHQzROJTnhE 2R8SHFMitTOlGHWBPEAcnVcUWAsD0nBcLoPu9kIH7F4W2NJfhR/CLTGPtXxhyAHoUDo+ONhUt 5Bq351b+7tSDBchS6BYATrc2xH6oijz2z5jb5UP79ysGDQfjnbT7ogKkAfCZ2YtXuZYlp88X1 RkJMWlgZ1eZdgz/MeuJHFDXGTDybONgfmiIz8YBStXERlw50V8MsnfeSwXrg43QK7d3qIWbsH M3b1u68kzvZoUYIBzQDTZFkLx5U+HMCAVPYA3WJswEoMYze4f6HBux1RvgTxeVv94KH0x/eyA CcGvf951yT9Mt7rbJHoF21UjrRNJjAO6r6hJx+3vyfqxp92JqxpO746htpjijQevrFXkubizT cY4nKPnyuirBeHH4dg3+dmu05kq7Cyf1eXEH/XTE4Osy+edEXIXgszGZOUysBj/kwHyywdF95 zZbRuOnTAi1wyKr2rvInJ4nX8R2SLtWnPWKsio8FVjwMvOMgXbmYm1iZ4NjXh3Tgduz48P4uT mA69oZtaGPNAq7m4Ljd3EW9FmJbwWpMEvo98lw== Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This can easily double the time for compiling a driver but does not provide any benefit for the compile tester, so it's better left disabled. In addition, any 'inline' function that is not also 'static' and that contains an 'if' causes a warning like include/linux/string.h:212:2: note: in expansion of macro 'if' if (strscpy(p, q, p_size < q_size ? p_size : q_size) < 0) ^~ include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'strcpy' which is not static without this patch, and I could not come up with a nice fix for that. In combination with my patch to always enable 'CONFIG_COMPILE_TEST' during 'randconfig' builds, we can at least hide these warnings for most users. Cc: Steven Rostedt Signed-off-by: Arnd Bergmann --- kernel/trace/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 434c840e2d82..faaf687b13b1 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -345,6 +345,7 @@ config PROFILE_ANNOTATED_BRANCHES config PROFILE_ALL_BRANCHES bool "Profile all if conditionals" select TRACE_BRANCH_PROFILING + depends on !COMPILE_TEST help This tracer profiles all branch conditions. Every if () taken in the kernel is recorded whether it hit or miss.