Received: by 10.223.185.116 with SMTP id b49csp901689wrg; Sat, 10 Feb 2018 23:30:52 -0800 (PST) X-Google-Smtp-Source: AH8x225bDRBCgeSEMInXJRpMDEcNcJFKQVatCp7D/E5bFd8sYRaHeM051k1UjmnbXUYTw5T4fK+3 X-Received: by 10.98.16.9 with SMTP id y9mr8099178pfi.189.1518334251938; Sat, 10 Feb 2018 23:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518334251; cv=none; d=google.com; s=arc-20160816; b=eSqBtQp4NxRqFaRlRfZpvaQUYnHsVSUknbviX7yMV3i2emDpGmGvKP9jeOvYXql1pJ dIjXEW7TohuMs7fzFfnPCOZdddLoB7IdWM9W0WczUC2xVj9UWUeUODnH4ehi4Rs7Sqgw S1DtMWPWSRz37VP7m0W1YR+nKR+Kp+fbwVljp44J+gsA5pMwSMds1OlkdZvz2PSbpDfE I9LCKIilnJS89iHufcvQLIKtfLLk33CDwsjbPBd35NSuJGm2FU8v2MV+MI0gXnREvLN9 Al4Bi87wvitrp5AMuEvUzlZ7pP2R1IDLtejHgUlEYuqPVDvAgoiYW+yU2K9ZFYoEqG8j pyqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=IoAM5Tpxmi7IIN+m95hNQjdCrnhLhxN/hBQc+Oe35h8=; b=kMbfPUyRsEdsNzY9twqWiTVcfnpKkrO3SpIGB36McHda66r8sPsrP4RLGDBCsebGa/ 2t2CQ6wEMXcpc851Zjf9TNcVnRLdN1yVM0UD+Obq9sFGVMKzUfR66qmRMGJGNJ02/wAc y5f0tdE07XLdSUSCr94xcpcgLq77RVc/aHonsjEw68tbDlb1CLgAZuWfQ9agGJhLtCJy 19aOtl6TwG/HqMvoZ3y98u3qc/H2dOJxXdSBpZaRbAOaGYKZALRPgvt5IL+vNnLqI+Zw MoW8NIvOjEVjgUZs/tZy6iT9z+77OGe5Gp9AmG4S9iKRPCroZAwlk5EfZ1yBsnDD+rlz uBVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=WEAwQmd4; 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 91-v6si2250523plh.570.2018.02.10.23.30.38; Sat, 10 Feb 2018 23:30:51 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=WEAwQmd4; 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 S1752664AbeBKH2u (ORCPT + 99 others); Sun, 11 Feb 2018 02:28:50 -0500 Received: from mail-it0-f44.google.com ([209.85.214.44]:37316 "EHLO mail-it0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752224AbeBKH2s (ORCPT ); Sun, 11 Feb 2018 02:28:48 -0500 Received: by mail-it0-f44.google.com with SMTP id h129so3151427ita.2; Sat, 10 Feb 2018 23:28:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=IoAM5Tpxmi7IIN+m95hNQjdCrnhLhxN/hBQc+Oe35h8=; b=WEAwQmd4ONprmrtp1DoBfusuNu4mUWJbFfTTNcNBC1OJyedcR/snwNlFMZJJQpVS8X hVNHxfFCnRaiOn0vXFwk5YOokYMriKKveqOBdBHSINm5X7bECUUNFSleRFuIvk7dnbJk RL+CJwnDyXlol53jHbOlxcriQI/3bxyulEZDzPMj1DwVpj54YKq1q2PoNNdfoA/50ybW dc+y8PDd9GRvMKCzDAKCYX0WNoV7vqlBipFOc2h4gt1tQ0rOhbuxc6D74yEw5vtgT6pC MHeD9vlkuNNzSovMbJ+BI/F+fvQ8d91wlR4Ajxf3XHx/liuPrrmuf2F95J8wnM6Oz+Aw 9iVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=IoAM5Tpxmi7IIN+m95hNQjdCrnhLhxN/hBQc+Oe35h8=; b=CDNy/mdrCITu5p0rpd7jQGc26Usp0TLARRB8cv61eHoVEBnIQblhzgoKVi07ij4lcL 32lgoUusKeTXL1lU4pDGC06akXV7+vr20IV/TNjMjOOPdmVC0Ynwz0m58tvIfkeAmgXi rNAkrBz6S4VRY0y9cHThC9Zj2dVoUdwwNgex7XFoO57ZDak0xEuv5qNNIxMUEX3sQO2r sts5JPtsLnfDzNbOjtmrRWykRGvcHN4QBgGQU4G5tsrhrKv8Q31cizeW+0YxA3o2BYaq /w5fDl6B47448xGtbf87FuspkZbKaHvfNAWubsokuQIrP65c/qIxFjcLTz1vtEtaCxxF ++YQ== X-Gm-Message-State: APf1xPCpuiedrwQq+MI0cUjqiw1ItMYZOFALyfKutmyVNkRCxQ6wYgnz bMaMqWfg4y3rogB5UCtmKGMCudP9ePPXgJ0lG70= X-Received: by 10.36.66.136 with SMTP id i130mr983742itb.123.1518334127193; Sat, 10 Feb 2018 23:28:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.59.196 with HTTP; Sat, 10 Feb 2018 23:28:45 -0800 (PST) In-Reply-To: References: <1518106752-29228-1-git-send-email-yamada.masahiro@socionext.com> <1518106752-29228-5-git-send-email-yamada.masahiro@socionext.com> <20180209053038.pscoijvowmyudyzf@huvuddator> <20180209124607.akjhncb5sempjqcn@huvuddator> <20180210054843.z3g7wvcmlccvww3h@huvuddator> <20180210074924.3nhxsza5zdbaahxx@huvuddator> <20180210080556.mycqsjhxbaguwhay@huvuddator> <20180210085519.737ckf4bcl57h4g2@huvuddator> From: Linus Torvalds Date: Sat, 10 Feb 2018 23:28:45 -0800 X-Google-Sender-Auth: w8u3h57pDhQwBZIxM6_BPvvZBNg Message-ID: Subject: Re: [RFC PATCH 4/7] kconfig: support new special property shell= To: Kees Cook Cc: Ulf Magnusson , Masahiro Yamada , Linux Kbuild mailing list , Greg Kroah-Hartman , Andrew Morton , Nicolas Pitre , "Luis R . Rodriguez" , Randy Dunlap , Sam Ravnborg , Michal Marek , Martin Schwidefsky , Pavel Machek , linux-s390 , Jiri Kosina , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 10, 2018 at 8:46 PM, Linus Torvalds wrote: > > Argh. I wanted to get rid of all that entirely, and simplify this all. > The mentioned script (and bugzilla) was from 2006, I assumed this was > all historical. > > But if it has broken again since, I guess we need to have a silly script. Grr. Ok, so this really ended up bothering me. I was hoping to really just unify all the stupid compiler flag testing in just the Kconfig files and hoping we could really just use config CC_xyz bool option cc_option "-fwhatever-xyz" to set them, and then build Kconfig rules from that: config USE_xyz bool "Some question that needs xyz" depends on CC_xyz and have a nice simple ccflags-$(CONFIG_USE_xyz) += -fwhataver-xyz in the Makefiles. And one thought I had was "hey, if we need a script for -fstack-protector, maybe we can simply standardize on _everything_ using a script". But doing the stats, we test about two _hundred_ different compiler options, and it really looks like -fstack-protector is the _only_ one that uses a dedicated script. Everything else is just using the "see if the compiler accepts the flag". So no, we wouldn't want to standardize around a script. We do have a script for some other build options related to gcc breakage, but not command line flags per se: both 'asm goto' and for gcc version generation. And gcc plugin compatibility checking. Oh well. It looks like we really have to have those nasty exceptions from the normal rules. Linus