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: 128646 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1007129ljc; Fri, 16 Feb 2018 13:42:57 -0800 (PST) X-Google-Smtp-Source: AH8x226H6Q8hcreDGoLZD18eRCpyrYHq97aRWHYEMPGgwtidGCzBAQRxXcpJkrsnf13gF/dWfctS X-Received: by 10.167.129.24 with SMTP id b24mr1546400pfi.183.1518817377747; Fri, 16 Feb 2018 13:42:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518817377; cv=none; d=google.com; s=arc-20160816; b=bPm+vftp3plAfC6Pq9fx1PEaouxjPag2iTIDn7zNGYqw4xxldMMZqlqbIxE8eQ0Pms yAMd401ZoNyOjpB8UcXk+PKlSWVIP9UikB6vj5fi0d4dY0RgZutCwZ7cxEHDJlbRGcor ulNY1BisCMFtA3NnvTAl9IiZtNORjMco9uxkiXJOQYvnGMiNijciZvyANwJ01Jvrnx7i vtvzARovqEwXxAY8K91Ql0t6HjDFsIaCShaOFEIPlEhCVkcZFZ326/lA12GC1ksjDGXa aNORoeWaKWSisbJrga4ifQ6yf5h4jTr5tXjlMULJSaGS1h0LILBJiOKk9+wBj4dgCUsx wbJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=DTqi3CMU/ToVfRI+3i475iV1ZutcOqKhVz0BKjGKyhk=; b=c7XL9WMZtD8euBVv5eUXKGaMKFjCkwUNGxSDdOd0tqppfRaDvRf4y2ECQwyvni+7YW zw4c/PkiJkwGAzNEhe/ybOHH2dTnlqEehfHAQOZQWztX724wkx3H1d43FNlIF7WUret5 dSCAijRU4peMSYi7WceQCCTV+gpoZNOynyebwrQdwTGCwTKJc3pt7RmaKaqYxQc4sAiP kgaPRFd9sTGYk3xQyNwRzw4S4e8igOaCnUf2a95Ix9aM0Um16okqS+9OraNSflRW4NLS IU5vZ1PNQgT2mecbbR/l8IzdV6bosvwVK26/7T3LRm3P6o9AVmgqzPT75zjfnB0snkWJ YWFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si695496pgp.468.2018.02.16.13.42.57; Fri, 16 Feb 2018 13:42:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751137AbeBPVm1 (ORCPT + 28 others); Fri, 16 Feb 2018 16:42:27 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.9.0 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.