Received: by 10.192.165.156 with SMTP id m28csp537875imm; Wed, 11 Apr 2018 03:23:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx49cHMIlgY779bxH8c9XAuURXYUO0rgphYxTqg9Ed6bz88isLU2RNamZnhLivUppq8ViKyfF X-Received: by 10.99.130.199 with SMTP id w190mr3008795pgd.15.1523442239527; Wed, 11 Apr 2018 03:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523442239; cv=none; d=google.com; s=arc-20160816; b=yNl0oe5nPcWF2L8UsRijDzh7PkE90ribt4KR4MI6cBapjnmifNetWVXAfQZ/tTxv+z o7FPgg5yh14o6djrHeOrW8kHfWcWDxAZmLglHUj4cGF6rl0cvOadP0BEM+Y0ENJgSNvW pbem4cixw6elMkJa4KqkWQO8uPJtWuLZJudJ2t186WAk1nH5Mn9Whpk+cH8TW5A0eooJ pzhMK8kJ7FzIgTHx2YzmqOz/qu8PYjbr5Z6lzUIysW33eILhNSjq+EkIfe0ss/e0b4nx MkAJpVNsbdyTZ3DRRMqjDpYrQ1/uekz1nmf1kjLAejqRT3uWAsGTfcSF9ICCunE43wtK TLbA== 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:arc-authentication-results; bh=pffyKvNMoim1gm4ee6n7rgLKKiv51bAF+OZN0gb6/tc=; b=B4musOgHQJ4sJQ8euFSLUiNVluPzW3t6zOZzEh967drRFVnnUYNM8NqeyJaf4EjdCG Fkf+QZRgcprCy5nBB8dmgb3mRsARtS8X1pZxujfViz9iuwaGnsL1U/xrMeBDbsWWOOrJ lG+bbQXf9kpKdrHO5VhhEdDevU/s48rrQYb4D7wYPqwgAGoXL4ZbnkRK4ytmzf21ad+x J/vpSasL/suRSaT82zET1pPNontvU+MfEYU9uVsjdOTCMNOlHc5vDMO9s1pc0uNZJsoY mrNHPFqmvrHCnF3SkhGRO7J8/2t8xb/a7N7F+ZH/jyorULtgzkazDltukwJq5iCdCfG3 0r9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vJKSJ58n; 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 p8si545584pgn.406.2018.04.11.03.23.23; Wed, 11 Apr 2018 03:23:59 -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=@gmail.com header.s=20161025 header.b=vJKSJ58n; 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 S1752861AbeDKKUO (ORCPT + 99 others); Wed, 11 Apr 2018 06:20:14 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:50520 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752411AbeDKKUK (ORCPT ); Wed, 11 Apr 2018 06:20:10 -0400 Received: by mail-wm0-f48.google.com with SMTP id t67so3081537wmt.0; Wed, 11 Apr 2018 03:20:10 -0700 (PDT) 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=pffyKvNMoim1gm4ee6n7rgLKKiv51bAF+OZN0gb6/tc=; b=vJKSJ58nvJBFMMyvAtjgW9NWqMFCo7JwRZCNzvc9t5HBHKH13SuOd8bhT00be80Vdd berWo7oRbRkGYqU3Gv5hkuffzV9JLCbC788NTJ+c44zTrwS7j7tbMv7foohiozcXWAX1 Yle+OU48AibO4L/XJXrCWEXEt0SV5G1DIVA67FEQzar93s+Vo9/EMx7OIFdvOxos0Wvi hzdhvEkeopSsrVNhEozGZI3fNHO5S2K4kFlAOujVYIBYyp47ZwkyT5x1M9fNMR3vzwYH /GT6ZXimG48fGG5djexCRt/RMPxBwfflpCwYZ7Y7IgcuuSoF1ixxPwkOdructtrFRdRP +V8A== 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=pffyKvNMoim1gm4ee6n7rgLKKiv51bAF+OZN0gb6/tc=; b=iV7odqhY96aYOMkPBva7czjyB6fsmgmCQ8FtSWm2psReH90ePILYue+3hXwDhLrRxk ygMgnPIAjvVxbSggMFnnss9W8wJ99y9Lbrf8ChQIdi71XPrO7kIaY2sNM2rcizf5RZRa 2tk7MHgeNprJzwWU3hbfx2hp2wh7TyzDm1CZ5Oy+ESAQRxyJArnmFZLrAV4nUZUlxvP5 x53Zz7IU5ppQ4wu4GRtX3kp0vGPga+0I2akWps9lCwvN3BFhQy9xGMZzxyNdl8HnBcJ5 sbzW3Dzi/AMBPrlZjN+fEHoOAbqBjEcuAPIJNZxbBDQ7LBcxynbGqvknCpZH4979olo4 rXlw== X-Gm-Message-State: ALQs6tBLgZhciAySq7C//IjrgwJAzttHAXkfpomMjB/D/Z3nZGkvp2PC q2Po+RDSKsk+KbzqCpPAZNBdWVjb X-Received: by 10.80.144.150 with SMTP id c22mr9027357eda.60.1523442009479; Wed, 11 Apr 2018 03:20:09 -0700 (PDT) Received: from ltop.local ([2a02:a03f:400b:ed00:b99e:db2a:dbf4:a6fa]) by smtp.gmail.com with ESMTPSA id a88sm645078edf.64.2018.04.11.03.20.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 03:20:09 -0700 (PDT) Date: Wed, 11 Apr 2018 12:20:08 +0200 From: Luc Van Oostenryck To: Joey Pabalinas Cc: linux-sparse@vger.kernel.org, Kees Cook , Linus Torvalds , Martin Uecker , Al Viro , Christopher Li , Linux Kernel Mailing List Subject: Re: [PATCH v4] sparse: add -Wpointer-arith flag to toggle sizeof(void) warnings Message-ID: <20180411102007.i6nkdh6pff5ycmu6@ltop.local> References: <20180410224624.psyo7vsy4qjplh3j@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180410224624.psyo7vsy4qjplh3j@gmail.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 12:46:24PM -1000, Joey Pabalinas wrote: > Recent changes to the min()/max() macros in include/linux/kernel.h > have added a lot of noise when compiling the kernel with Sparse checking > enabled. This mostly is due to the *huge* increase in the number of > sizeof(void) warnings, a larger number of which can safely be ignored. > > Add the -Wpointer-arith flag to enable/disable these warnings (along > with the warning when applying sizeof to function types as well as > warning about pointer arithmetic on these types exactly like the > GCC -Wpointer-arith flag) on demand; the warning itself has been disabled > by default to reduce the large influx of noise which was inadvertently > added by commit 3c8ba0d61d04ced9f8 (kernel.h: Retain constant expression > output for max()/min()). > > Update the manpage to document the new flag and add a validation case > for sizeof(void). > > CC: Kees Cook > CC: Linus Torvalds > CC: Martin Uecker > CC: Al Viro > CC: Christopher Li > CC: Joey Pabalinas > CC: Luc Van Oostenryck > Signed-off-by: Joey Pabalinas > Signed-off-by: Luc Van Oostenryck Thanks, Acked-by: Luc Van Oostenryck