Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp32333imu; Fri, 16 Nov 2018 16:46:54 -0800 (PST) X-Google-Smtp-Source: AJdET5cuSBGbgGupY2rsXGBrEgDrF4zYmKsXhbw5FAjUthQduD5RdWirL4WECCdSQd/da/bBXwTb X-Received: by 2002:a17:902:7402:: with SMTP id g2mr12746304pll.198.1542415614719; Fri, 16 Nov 2018 16:46:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542415614; cv=none; d=google.com; s=arc-20160816; b=A2FtJa9qXLYOP6o+34L1v5lSbL+m+u3ngHXsFEewyvSq9WbsihKuBYBmnwxbSqDR9M 2dKeSqz2DjOQOnsnXZoeoZPKf8zM24zQvmcY97yDsW/cYEk+UhsqbZN1a9zHvDl9Ji98 opJgoRR+/xJiWO/4HGMglkpRMAFWvTvDIU0dW1f3l3D0oSlrFDB/01e1FBsFCL2ozDss uZJqwqfdmibAG31M6wIDDss2b1nA9X9hTVMQgo272cmLqCjEYAeioALlKwQhi6z0gzoW +hdz8mJS9dWGztk0239ppl1jSYg8GVU+e8adB8CQHpt6DnjvMu+tZdyWHPentMKAy/tv GQkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=O/OrTk4RWB+bnrpuTRHaVd7D6PzOxq4AJNr3u5tMrtw=; b=cRqvZY2tN373dHVUanevZLgldEKyt7Exk4Fl3BeP6iOEZjF1LGoyLCpNIQsZaghSqo OC/okFK3wdlUO16jgrZaRtbxOZthx06TFnNX87EUKM2sFQVJCDlGY/EufKBl2SnC9hR0 85G9bykp7z8K/xz5PSheLL1HB4vqXeTJJLz7L7NfiBsqFjLk9WEB9jOoE5wgdsvLA4R2 U6AV0Nub5111GOx3fU4Di7UToduNdh2p3AFtMvQl1H4B4TIsUmiDOHwb/CJfyOD8CQZY cB2xegH5/LbZHbNm9sCCT8fUTmG/LnC/XlpANAwqvvXdMCF20/c2sELGkimJHIMhxThC JNdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=muTWCyR1; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si32238718pgi.0.2018.11.16.16.46.39; Fri, 16 Nov 2018 16:46:54 -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=pass header.i=@gmail.com header.s=20161025 header.b=muTWCyR1; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730522AbeKQK7n (ORCPT + 99 others); Sat, 17 Nov 2018 05:59:43 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:42867 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727116AbeKQK7n (ORCPT ); Sat, 17 Nov 2018 05:59:43 -0500 Received: by mail-ed1-f65.google.com with SMTP id j6so16051703edp.9 for ; Fri, 16 Nov 2018 16:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=O/OrTk4RWB+bnrpuTRHaVd7D6PzOxq4AJNr3u5tMrtw=; b=muTWCyR1BRDIC7idgDDUfWFr9TlVr+HOD3fhjEvkAP7I9eVM//6+UqajWUCPruLG7Q wIkjSyOySKiL6NfB0edQVppuXUf2ZZJuVt5ikp9u+Z/Rc7Uw7Kae376smVGWstREwhBk QVX8qYE4quTGoEHR4cnvhsh1MhVafYxLC5kb/6LxfwjVQvaV/Bcr8aB0PXx8nMNBGjwm 0tzCofFshmvvnh5SQxip/9NVcxOUyiRK8PCDel9ANZaDaxE7BURrtdwVZ7x/LOlXARyj fh5r6WrNNTNwV1OMGRiD2dZrN+i6QI4LykN/1/OORCdpgcfl1MrZA0ELrlCH2EYvUxs3 z4jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=O/OrTk4RWB+bnrpuTRHaVd7D6PzOxq4AJNr3u5tMrtw=; b=NLg3AgmJ/9M0rlyDCAtkbMFShTuJ01IT56e3gqISewqHVlyrqLXwnSflOr79gE5TAX uC0+M052/9id9GmgWnAyl6ThBHHU5Qjjs2V/MjFsH41005F6YbpnbVJ7ILqcwDbQ6XRO TM2NLu3d7PUEGV+cKNR3Rt2bu7yzVWHRGksrmGJKlyPMTEN+2vriHmyGHIXmOLne5K8n sSR0e8yoppNXtsPEJT4vOe0gnxec6QFeRHyqCixHO78Ypkj9gsQOThJ0lxzPCtv1HfTZ u4SKIFGvhdlNie4svTYjylFHY9WtjRPIURK9q01BMQlRriT8ENuX+NlX5e88IdAWInVC REcg== X-Gm-Message-State: AGRZ1gLglTwh6w2qX0Vgke9cR4xcx126rxjuWWhJfgjVl9aRf2deUtb6 JaUpp3zJo324Vptzy4CK370k/JBN X-Received: by 2002:a17:906:6181:: with SMTP id q1-v6mr10051307ejk.219.1542415504277; Fri, 16 Nov 2018 16:45:04 -0800 (PST) Received: from ltop.local ([2a02:a03f:40bc:4d00:787e:f271:ff1d:82b]) by smtp.gmail.com with ESMTPSA id g37sm1762914edb.85.2018.11.16.16.45.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 16:45:03 -0800 (PST) Date: Sat, 17 Nov 2018 01:45:01 +0100 From: Luc Van Oostenryck To: Johannes Berg Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Johannes Berg Subject: Re: [PATCH v2 2/3] kernel.h: hide __is_constexpr() from sparse Message-ID: <20181117004500.xipguiszdbs63dle@ltop.local> References: <20181109093534.15121-1-johannes@sipsolutions.net> <20181109093534.15121-2-johannes@sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181109093534.15121-2-johannes@sipsolutions.net> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 09, 2018 at 10:35:33AM +0100, Johannes Berg wrote: > From: Johannes Berg > > __is_constexpr() is a work of art, understandable only to the most > respected wizards of C. Even sparse doesn't seem to belong to that > group and warns that there's an "expression using sizeof(void)". > > Just hide the definition from sparse and pretend it's always true. The development version of sparse doesn't issues a warning for sizeof(void) soon after the introduction of __is_constexpr() and sparse's main tree have been updated (very recently). I strongly believe this patch shouldn't be. Regards, -- Luc