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. From patchwork Fri Feb 16 21:41:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 128644 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1006910ljc; Fri, 16 Feb 2018 13:42:34 -0800 (PST) X-Google-Smtp-Source: AH8x226AxRBoIY4hU4wW77TPR2/THuq1ki9oZYPeQjboGXne5uxSBGPOFn89iKwQYZrATImwWfTZ X-Received: by 10.98.35.66 with SMTP id j63mr7357278pfj.140.1518817354653; Fri, 16 Feb 2018 13:42:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518817354; cv=none; d=google.com; s=arc-20160816; b=kdLBwJW7OsL8GncjpMWfam3KNa3wmihL1KTrT+7uzgWVbZKM2Zdj4cPqPI9i4slrRC rFRfUS9g0b4GJbLD+fMZhzpHjAoRdJLrc5flBtN85YtMs3S6LqquR7roi+LIEBqF3qlm QmtPgLyttM27jMykNObt1R5jeHOFuSon417qdTiT/7U3wGZZypJgy5+SRi0G+iLb08kE Rk/na3HMzDsXxyERHSDRiwVCze7tDCrZcdfrD2LCBclqR6zauPGxjCmcQxot5idhlADU 8L7coq8oImu1fLldX1kzJbUYHhS8ksTC18KRIYrb7D5qtgwd13z1RHZBTcOX8FUn8207 +1kw== 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=NdiXOwE3+fPNEtWzey9w1q7yNkPM+KPTEhOrGKhZWDY=; b=eAwLT9OtPl5PNn410g+tEH5oGM76aaDeK6CmSCMkqyshw9QvYN+WVxgAObFGVAu3Oe u1/UdLs93GVwYXBKtny/3leDMwA0zE8pkLrM8T8uGoqcg8wf5HtOQ5wHWKO0ihGSAtcc 8y7vYUl8LXLsNhHsstHj/QUK9Uk1mubqYPLt2YSbZW3bsX/kUa7qHBEAvLOHcQvdG/3W 5jA1IFrlTl1R7f+VMVV/4NuGMvk+a+KmeMu1lmzYkdnx61oFvniPukmgmnZ9uZ0dAlLz /fbBTSj+Pkcds/2PcrGvjORIYxlPQWSEoeIXGf/stSP+Rjyv6eFLIOURtSUWdNOs7erK B2rg== 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 k136si136794pga.44.2018.02.16.13.42.34; Fri, 16 Feb 2018 13:42:34 -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 S1751156AbeBPVma (ORCPT + 28 others); Fri, 16 Feb 2018 16:42:30 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:33403 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751114AbeBPVm1 (ORCPT ); Fri, 16 Feb 2018 16:42:27 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MY6Rk-1fHY3V1Gwi-00UvrK; Fri, 16 Feb 2018 22:42:17 +0100 From: Arnd Bergmann To: linux-kbuild@vger.kernel.org, "Yann E. MORIN" Cc: Masahiro Yamada , Michal Marek , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 2/3] Kconfig: improve handling for all{rand, yes, no, }.config fragments Date: Fri, 16 Feb 2018 22:41:12 +0100 Message-Id: <20180216214117.1947175-3-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:DsySdBUpNFt+e/nzmYwfqzjYZjpj13re5X7xnJx5gyI1Eeyc/8O bvSkfnghSQX638gGp1PkFzOa8i6l8rZvtOekkUkm1aaURKIKb0py02Wfc7Dok9JVN4WJqbD 0SaUzZwHPEVI5+wagKrKHx9y0gdbrZ8M+lGGMHuK6Ejpeg2UAaiyYla/BwdyCY26nNbxjTl 61spnBBv+c9zB3bUKcaZQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:7V4FJictevY=:MRXOYVnDOsHw/syrtJvLz5 xH+99PCW/BbtlcdQB8gIbbMFI0VNPbAITFuTovVKfhL0oUgZbB7L9BHHsPo+rdXny+FZAW4Bv s9jSQRsStEMj/Y8/3+FDPUoBGNNMCk/NXO8ltMLGNTmis+WA1JaG7g2MEEpPu3CE11m+l28h6 ECkJQfaBKgG/uMuXYkKn+UTy+TPONESYjb6vwwINYh2bcpq+1AcCv9nTM+n6J+injfx3CzMot KpYK2r9WNlNIitPlpPTSigwqfa+tSLnk4kQTOpENteXZwxx7lFt7zjQKp/1mtaAoWQLvX3Ffw K7JLV/NehWkd9jGDt3vefPV+J16e4JkN9yOqhRUk/zqX1pOhUZMe1qWrhwDVlPQZxpJ4pKQ77 4O0qapEQjuqCWot40KXVTsUmmmw7P68REVVvwFNagkZ1CQRUbwofsfvZvzpy6B4t59DhYKL9o tXhRh22PqRbEmX1UYkmePzQ62lDtE5UCFdVv4eX4U1enf6EF5afVg18KqYLh9HZKQu1ZDsjxX PROUbAxNVoHrENZqNQCg2592TQElwVrLKbCzPOgscJWXFWgZmOlv2AfoA5IaAmG0qtOpTgz1s EZjvbZn1O/Cq379oGZYMO4piSQK1g+Gxl7GgCUuLXivBeV1bWL8QdPfvUHH1M8MdzsdbMLRU7 MYDtldFcfoHfjKoXrX+O1E5ZYyOsbI4ThWjizDyyZ3e+2d3xJL6YlMxkt01zRwdvzROflqYAd iQy7rFga0BAcJHX4ZOmdN+5Mcz5YuoyWGytcKQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The kernel currently supports two methods of dealing with config fragments in the tree: a) Running "make foo.config" looks for arch/$(ARCH)/configs/foo.config and kernel/configs/foo.config, and applies the defaults from those files on top of the current configuration. b) Running "KCONFIG_ALLCONFIG=1 make randconfig" (or the equivalent allmodconfig/allnoconfig/allyesconfig/alldefconfig) will look for a "allrandconfig.config" file in the current directory or the top of the $(srctree). These are used as defaults before we generate the remaining options. This is rather inconsistent, and prevents us from easily shipping good defaults for "randconfig". I'm extending the logic here so that the second case also looks for the hardcoded file names in the standard directories (first arch/$(ARCH)/configs/, then kernel/configs) in the source tree. Signed-off-by: Arnd Bergmann --- scripts/kconfig/conf.c | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) -- 2.9.0 diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 866369f10ff8..848bf4d15e9a 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -493,8 +493,9 @@ int main(int ac, char **av) { const char *progname = av[0]; int opt; - const char *name, *defconfig_file = NULL /* gcc uninit */; + const char *arch, *name, *defconfig_file = NULL /* gcc uninit */; struct stat tmpstat; + char fullname[PATH_MAX+1]; setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); @@ -621,14 +622,24 @@ int main(int ac, char **av) case randconfig: name = "allrandom.config"; break; default: break; } - if (conf_read_simple(name, S_DEF_USER) && - conf_read_simple("all.config", S_DEF_USER)) { - fprintf(stderr, - _("*** KCONFIG_ALLCONFIG set, but no \"%s\" or \"all.config\" file found\n"), - name); - exit(1); + /* try ./name, arch/$(ARCH)/configs/name and kernel/config/name */ + if (!conf_read_simple(name, S_DEF_USER)) + break; + arch = getenv("ARCH"); + if (arch) { + snprintf(fullname, sizeof(fullname), "arch/%s/configs/%s", + arch, name); + if (!conf_read_simple(fullname, S_DEF_USER)) + break; } - break; + snprintf(fullname, sizeof(fullname), "kernel/configs/%s", name); + if (!conf_read_simple(fullname, S_DEF_USER)) + break; + + fprintf(stderr, + _("*** KCONFIG_ALLCONFIG set, but no \"%s\" or \"all.config\" file found\n"), + name); + exit(1); default: break; } From patchwork Fri Feb 16 21:41:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 128645 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1007002ljc; Fri, 16 Feb 2018 13:42:44 -0800 (PST) X-Google-Smtp-Source: AH8x227Y1ToQMqH+ryjjnc31RSvwnEjHf0OdS1TK9CEFtM2/PQJZqCl1pbjA1f305faTNIBzu0/R X-Received: by 2002:a17:902:7d8d:: with SMTP id a13-v6mr7011658plm.304.1518817363868; Fri, 16 Feb 2018 13:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518817363; cv=none; d=google.com; s=arc-20160816; b=uNmo0QGU27ToOoWg3eJncXgMdCLVOIDkvAcVgGjRkdsj3ZRZYhVbB+q9B49LyB+Coe wjsXu9eSQkMBN6fAjiVyxc3xAPSidzFmiO+tbPTlHygCx9rWKRx7vr2BzRuhVrlXSzYm aRmptjgKLweUJp70/vmdhAXFOH/vdFl9t+W5+38ssjEhtn4Qyx1CEBkHswKyRp6JOYUJ bxShWVALPvn2ad4qWxKtOHPA9qo2eMqodlRqfieP25p2UEIuviZQq8+l1ojv5jn6u7Gs gQnMd7X9PZqAufuOoY2J4ch1LaCNHph7RNUDQb8fM+AxUWIci9ma2VsSU336oRIoagR5 L/lA== 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=H8SfGIw0IGFYOxNg59+eUUL0yYltkloS4qpbUXfs9Nc=; b=FuKu3w86MUZBRro33qqwpAM0LqS3OIM4nSjL1fHblWzHUBm5YjmLbIkUK4Ro6u/htp 7g8iFhml3zIxsBdtesSbwxOwXyq4b16i6eMghzc9cBObGH7BV4xLAhgkP1h0HmR/5k2C Ma67cVqn6aEpdgHbby9y9JB6Ug+i+2XaDI8M8/GBt81xuMycCzrk5KXarpJ8BqSLwJ+r QxO6ZkTYMFNUNHR9rYmLWoKXwihfUWifVhtI2fvrF5zBcNuhl1a8dgShpzbCZRXxHwF5 DBFZCcdAvy/5GmEyoBoVX8jeq4i3lLhnKoRw28IDGcL9V+b068l40QvOVEF9ABZ/ekBT GN2A== 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.43; Fri, 16 Feb 2018 13:42:43 -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 S1751176AbeBPVmk (ORCPT + 28 others); Fri, 16 Feb 2018 16:42:40 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:45185 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751009AbeBPVmh (ORCPT ); Fri, 16 Feb 2018 16:42:37 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MTP5b-1fBFS73myt-00SR9F; Fri, 16 Feb 2018 22:42:29 +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 Subject: [PATCH 3/3] Kconfig: add a default allrandom.config Date: Fri, 16 Feb 2018 22:41:13 +0100 Message-Id: <20180216214117.1947175-4-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:2DIC57SRIHN6L4/FxhZbOjyeoe3iQokjdOLws9JYYmeSPhCJjJs KzokFHkD0erXyUpBKYtP5suh5NwCGQLo7f2Fx5GVTwkvI2oYF6wqEMwZafGTFmbSlc8cPve FdV+9ZzfDRjdq6F2WPVGboEux5U2vX13eeCLIpO5AFDgxvPJQfVRAarnaa4eput5mCmDMaw AfDxfZ4CZNf8m7g72wp1w== X-UI-Out-Filterresults: notjunk:1; V01:K0:XZn+0LO7HE4=:Czydb2kFXksiVAWj2pPhUd L/V4gSeru1vxzj5jhbe5gisWB7vJ5UgD2bv7IzX1Uccb/EK00Rc5BYQ+c3tRko+IYQQAVSZXX frB7t4Oh4+WvwU6OXvs4FIjyWWQ/5BKUvcP1xxf7x45+n8+N641yP3b7pZrSb7xfZev7W8jTi r3GFI4e8HTiC8a4jdaGbvNrqp9oQoNrnyOykhx3+iwzbU9q2dUat2aGBSv1diaHzTpBj0zLu3 X/EfUjk2tKMvjonYsqvG/gkfEMtPn0kOY/qhjS0SD2m1+KVK11pWy1i8zA6HdkUqVrExoKRmA RTDjLBUJEjylb9xrrRNbw2seC+5PFmJccowx2bkNPCYDbahNgLw+NRiik3ugYZRqCkcSX9vB4 8Rjs02oiwiVoPjfSwvJxvZDSVjOJzhQ6EERyCq8uf+of8NvI8anBVTsjP3CYZRtcN9/FF16eg RxVMAxeYk8r98aRbXN+veHb/4wTxSJhUvNmTWZc3ds9NzHBtebDxCqoxZc48W9Ia1HEwCR41a f4pITNC2B4R882AzjvSBOT0mHv9HBZi+PWj2kUYjGZMgnP4Rw6PIXWjc+L+OivRGprvQ62eRl F1oSd53jEnAZOcr+vYXqD12yZThF8NHAelGgSP5rbTbo5501pAii/MM1CgsEdn4pt25t1VMc+ 0L8yeDYx0CXT02YrKmp0ci3+kTdIoneaDWmKW3TFkhXGFh2/FIQHKQ2TVszvGyZ8auSobaPYo fyNujs+ELYynePyr1NJS+DqRAs00SEnya0M0EQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Building randconfig kernels frequently leads to build errors from drivers that have additional build dependencies, or that we don't want to build for compile-testing for some other reason. We already have a couple of compile-time options that can deal with this problem, but the complete set is not documented well. We also have a method to override some options during 'make randconfig' and a couple of other make targets. However, we don't yet combine those two. This adds a new allrandom.config file to turn on CONFIG_COMPILE_TEST, CONFIG_STANDALONE and CONFIG_PREVENT_FIRMWARE_BUILD for all randconfig builds. This in turn disables some other options that we already try to avoid in 'allmodconfig' builds and that make no sense in a general randconfig build. Building with 'make randconfig KCONFIG_ALLCONFIG=1' should now always succeed without warnings on x86 and arm64, aside from recent regressions. Other architectures probably need additional bugfixes. Signed-off-by: Arnd Bergmann --- kernel/configs/allrandom.config | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 kernel/configs/allrandom.config -- 2.9.0 diff --git a/kernel/configs/allrandom.config b/kernel/configs/allrandom.config new file mode 100644 index 000000000000..67294ef2e3a2 --- /dev/null +++ b/kernel/configs/allrandom.config @@ -0,0 +1,6 @@ +# maximize search space, disable options not worth testing +CONFIG_COMPILE_TEST=y + +# reduce compile-time dependencies +CONFIG_STANDALONE=y +CONFIG_PREVENT_FIRMWARE_BUILD=y