Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4980635pxb; Thu, 14 Oct 2021 16:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN3oeptGFbyZr2k/FiXHpDheizYeM/oohnu22FmDwOtxwVxRnBEsT9ZCGRtEyqC4u9dakY X-Received: by 2002:a63:6f83:: with SMTP id k125mr6362238pgc.162.1634253585361; Thu, 14 Oct 2021 16:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634253585; cv=none; d=google.com; s=arc-20160816; b=IXeV8uMNx1JdD7v3QHIoR5hFEV+j9iwwNH/81hbhhXAYNky+46X2Wmd0GvGcb4I8aZ 9nWdQAtd1cHAE51yNEeJuqNIqf773+PeROp/UFZE3STxwDM/2wD7flA+4Tg6rqc4F+qQ xgdQq4da7RGR7nyvKM/extLHhaC3a/m5BYzYwX2A9X+18xkRqIq+JGWHftngjLm8XinW PifpVmW+t5LqAIyepVDsk4ZXsvJGxIbRjYhKEs2QoK/0WLcWVZYtx6m8g6spSr8Ve5Wq KlMDi46FiOXDq8EAlv9mmakTITC5uE8NILkIR2wUpvMB+UUp49csZ76JnrIm/9s1iI8T KnvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2vuxshsfHtLjbAbft8l5pvgP1W0cVnLR0zLA69xmTOI=; b=ho/egIaI8doRNxBdbEzkjSR6jeZ9kYuSRNT4d0s3QGtVrn1abBO0/V9aQ36wSafxxk Cu3YTh2198e/JzrEHxPgNWSRlJS/iINSuVN0s1HMoHxAwTHyAEHDROVqO+h44YE3inTt PhPEOj1VZVt1fQd77q/EKqCYsJLjvVBqp1ALN75ATszGcedZicyfL5rJNP9ZrgHnETfK wd955QKFE6gKEwftINw5GRwbNRfYJgGfAT4Dv6fpEz5PD79iXgPFwX1redjr6YqcGOWC g8UYqmvwd8jz4x4mzQIk5VfTdMOQEQaKstiOEbzt7CXpqAifhd6hl6F871FhnekzdXyH hzHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=by5P0yKP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si5418843pgq.333.2021.10.14.16.19.32; Thu, 14 Oct 2021 16:19:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=by5P0yKP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233997AbhJNSoC (ORCPT + 99 others); Thu, 14 Oct 2021 14:44:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbhJNSoC (ORCPT ); Thu, 14 Oct 2021 14:44:02 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F34EC061570 for ; Thu, 14 Oct 2021 11:41:57 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id i189so4965554ioa.1 for ; Thu, 14 Oct 2021 11:41:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2vuxshsfHtLjbAbft8l5pvgP1W0cVnLR0zLA69xmTOI=; b=by5P0yKP3zQWYD4728dibXaqmBM8xi7P6Mh5FmkBcWyhEogUgg3ItaH0WQ0Qw2i9X9 dX2vSCt/eV8t7U7kdbOsrilLeR5jPfMK4cXhDSldk/xKIYMprJl64WDCTcthiMj53MeO HEay/Ca4RKv1VMcySvZT6Cov24skCbyF0UbBFyiHBxOUTBtmS3E5XJ5BZ0PS86gAEI5s 4f20fg41QbPOO5m+72cYY/MASLDKq9xL6A7E9IqVZJxsrCCwGpgLg+cODdGKzc1Q7JO9 +xYtCR4mqOMR/KCC7VuQC/L8JpT161BEozi+EE5A9miJbtgyh/6Pm4xaYisszNyPzSE9 A46Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2vuxshsfHtLjbAbft8l5pvgP1W0cVnLR0zLA69xmTOI=; b=IwbG9KxdYTWsaCLIGQYihV1DJr7qMw4IBT61c+djP0eh2H1ORwbyg/8SfgECz2VeMH DlHUYN+Efp36vfTL2SkbBWx2mj9qTD3EC9d8f6NI2//MGGY7gaYvuTXNksYgHvFHdNZu sODkyBOAeFseoM9Q12cTNa/1/L250It0NPTVlHPWKJ90nHZq1QwEUGmSibezhBHPoFYE dcxrPn0j/nfjQUWlOmA3gCMbPT8v2qgFTM7VeYZPHpMIqImmwjVxaFa/3GNr7K2N3gse uMa/oXqMrT33oQaLUj3Jgftl96qEHIHsgkd7LsgDV0XAKjJjPoYxpcLc/Nkk2V+sf998 iWGg== X-Gm-Message-State: AOAM531t47LkG9ku+1vp2Oq0WToPjtz3K2TyB0cBzSFIlTwlrx7EfLzJ SjRkz7Df93Xnv+/36gdMoPLuXn/QeD14ov52BHw= X-Received: by 2002:a5d:9d56:: with SMTP id k22mr454360iok.177.1634236916655; Thu, 14 Oct 2021 11:41:56 -0700 (PDT) MIME-Version: 1.0 References: <20211014132331.GA4811@kernel.org> In-Reply-To: From: Miguel Ojeda Date: Thu, 14 Oct 2021 20:41:45 +0200 Message-ID: Subject: Re: [PATCH] compiler_types: mark __compiletime_assert failure as __noreturn To: Nick Desaulniers Cc: Peter Zijlstra , Miguel Ojeda , Nathan Chancellor , Kees Cook , linux-kernel , llvm@lists.linux.dev, Rasmus Villemoes , Linus Torvalds Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 14, 2021 at 8:33 PM Miguel Ojeda wrote: > > That would be a nice to do, but I am not sure about introducing one > more macro about this... I think it would be simpler to submit patches > for moves into `static_assert` even if we have to "flip" the meaning. Actually, what would be ideal is a compiler-backed lint that checks whether it could be an `static_assert`, perhaps in clang-tidy? It would also ensure things are kept clean. Cheers, Miguel