Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp659881imm; Fri, 31 Aug 2018 09:47:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbW7mFa3cxeh8zQgd5b6V9rJYv91OrO/QPsJ1xVcV1ORt3TBEHIh1SQVs0Kw+bs9H/rNDve X-Received: by 2002:a17:902:e190:: with SMTP id cd16-v6mr16197622plb.305.1535734078618; Fri, 31 Aug 2018 09:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535734078; cv=none; d=google.com; s=arc-20160816; b=vOFI0dl+PLx1yi+uT6QrGSbJmtUh6rFyDmR91DJTplBruajlyeLYf12ygGTPnZMZ+r slx8JsgiouIh0DtJZnaOHBISq6KRd/lalbT8v9aYgVL952ptUJtkuNHraXLpvMAAZHQm B7RLGa1tpEw4UUOqaOk/078NorAZbr+ipOzB8U8lX8fcODQQlXXdiJYMQxBZet+Z6L4j x10B11b6unLXnwmOUPYN4CbV2n3LkwgTCRTO5qz5Kr42cvXma9dQv1nvmnTWW2tczkav YTtSO43dgrblHxW1U/2t1TxHOYQgbBaxQLALylvB2wOiGHNk8gwPwICD0YoecAmktYq8 LJLA== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=5lvQdgD/EXcDOV9R8OuQUbo/2DyQX0Rl0dUcicH6fsY=; b=UCi7AIRYhV3oehjIDKMM2/3D83Cc/dZVLowAr3zTk4CsjvawPbtAYXg0DRUFP/OrIo 8pj6V9eUsBb5uneoJKHh9igpZhMCbH3/olahivXMDdGbhaF0NNc9oRVzREq7JBb8VtnU m3PA9bS6J1ctOIFI+YuJ/P1v7l0Jr6bFpZGwJ0LnddMg0AxiHkXo99zp9ZoT+s5BlvbS 23i5rlnoiHzpORY47Hb+OAFvG69ZFILc9SiMA7bP2/M5ExmiRebbmZhVSUhfB3ZIoXPh uylF8hO0zQS9YK7sqS1OyC0sWh+CEpieAQeT0O0odr/wbFys81bGJOPe+bhXbGXdGrYF TtRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XLYFS8ge; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l134-v6si10018941pga.196.2018.08.31.09.47.43; Fri, 31 Aug 2018 09:47:58 -0700 (PDT) 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=pass header.i=@google.com header.s=20161025 header.b=XLYFS8ge; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727795AbeHaUyf (ORCPT + 99 others); Fri, 31 Aug 2018 16:54:35 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35708 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727430AbeHaUyf (ORCPT ); Fri, 31 Aug 2018 16:54:35 -0400 Received: by mail-pg1-f195.google.com with SMTP id 7-v6so752768pgf.2 for ; Fri, 31 Aug 2018 09:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5lvQdgD/EXcDOV9R8OuQUbo/2DyQX0Rl0dUcicH6fsY=; b=XLYFS8geXPIrgarFkNKVxqNESUrc7geuGcov3/laCMY9pa8C4DtOiBpnBeB/RUn2D/ alqrLkkFL2pDzK6kMxY+M9s7BQpgMcIe5ujnHD6DsfsyzhTdpQvZUThmmKY7sffLYJ6K 9+XVt1YMUnOdTxBcCX+AQ7ZmzV+dJ/zWeSA9BBNebpq4fudgkdJiONS9qdDo5jcfdl5b l9s2vEAF3TZcVnYCAbdJJ1iGKVEmWNbc9F7tKDmvKjr+VT4HhzKXd9OyBNmuB/bQGFJK coO8gkHhR6GZDQgZtH6jTY0KmPlt9dRUiIayCmOvDF9ftsYH2nzfpu8WNvsRZwAPNHEo KJyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5lvQdgD/EXcDOV9R8OuQUbo/2DyQX0Rl0dUcicH6fsY=; b=WcFIaxrP187BqxFIkLMnnEcz2NjhCNVWKvl4zB07KlwZymchiUczEwNMK1kcYHzrop 2gkPVCPdcaTXF/gpyxaczu6UuK9x+p2zk7FdF9LjMoi0gCogANUKgYYPssS+oYfpAVX4 4bskb685TkU72rREVEu7Zd7iNgaLCO9WmMhcL0LKszYWc6fzt3bNw64uF0nXYPOmw+GU UN8bapnhzgYWwtPDAGNpckY8rUIzGnpHbaFeexhGmLCk/DsFYMYRI5vmF30j4XoWebWL tBTOfIg71EKY0GHKndlTG9CWI+btKSCYIFl3Y3S9uk+FTq5DM7fjJ3grT2OBojWZmOWf 23gA== X-Gm-Message-State: APzg51C1C0Hs/QdatQ2PD9F+yohxgUUbBKPfMuRYhRaWPImbUtxGmK3M 4vn2adrs0/dU7NVityChmTIUtJweOC9IJvw47kH6sQ== X-Received: by 2002:a63:1921:: with SMTP id z33-v6mr7282517pgl.302.1535733973960; Fri, 31 Aug 2018 09:46:13 -0700 (PDT) MIME-Version: 1.0 References: <1535220989-27645-1-git-send-email-yamada.masahiro@socionext.com> <84cf6ae0-97c8-6b73-ca86-b3d3b3daba5b@pobox.com> <8d5cf8c6-556a-96a1-610d-c92355783a9f@pobox.com> In-Reply-To: From: Nick Desaulniers Date: Fri, 31 Aug 2018 09:46:02 -0700 Message-ID: Subject: Re: [PATCH v2] compiler.h: give up __compiletime_assert_fallback() To: Linus Torvalds Cc: Masahiro Yamada , Kees Cook , sparse@chrisli.org, linux-sparse@vger.kernel.org, LKML , daniel.santos@pobox.com 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 Tue, Aug 28, 2018 at 4:00 PM Nick Desaulniers wrote: > > On Mon, Aug 27, 2018 at 1:42 PM Daniel Santos wrote: > > > > Hello Nick, > > > > On 08/27/2018 03:09 PM, Nick Desaulniers wrote: > > >>> Let's give up __compiletime_assert_fallback(). This commit does not > > >>> change the current behavior since it just rips off the useless code. > > >> Clang is not the only target audience of > > >> __compiletime_assert_fallback(). Instead of ripping out something that > > >> may benefit builds with gcc 4.2 and earlier, why not override its > > > Note that with commit cafa0010cd51 ("Raise the minimum required gcc > > > version to 4.6") that gcc < 4.6 is irrelevant. > > > > Ah, I guess I'm not keeping up, that's wonderful news! Considering that > > I guess I would be OK with its removal, but I still think it would be > > better if a similar mechanism to break the Clang build could be found. > > I'm consulting with our best language lawyers to see what combinations > of _Static_assert and __builtin_constant_p would do the trick. Linus, Can this patch be merged in the meantime? -- Thanks, ~Nick Desaulniers