Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp23144imu; Fri, 16 Nov 2018 16:33:32 -0800 (PST) X-Google-Smtp-Source: AJdET5fTF4ypjcMoPEc+KGdzqEg6ftlq3fdUDDfzh+vX67qdkt/o/jz6MMWn6gTb0BtTQdBM0YyH X-Received: by 2002:a63:d005:: with SMTP id z5mr11852402pgf.64.1542414811952; Fri, 16 Nov 2018 16:33:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542414811; cv=none; d=google.com; s=arc-20160816; b=u+J6Lh1BsLVg08nQwVACKfdxmFJzlbCGYsHrm9eDYXrT4szvcUTweNvepEq4GeOK8n W3wKSIbVqBKO+F3JgWEJKAenctuXH3XMN1g0E/hzqU4BGCQdKcRp7UCnEElRvnW3zI7d HkmdD65gcMT/twSj4+BrnICoU/fp5EvqoJ4crZvEVq6g9ZvuAyGkSYVGAPEtABD8cZFd 0gjiRGQuDNXyIJytpKxP6wSXpVb9nsuvbQFsz6sLWNYEemO9xI/prkdNBrREaydVlTG3 bUw3uN6zvNeaEfwCvsrCJzFKdKKelppffP7uhiG0CCphugIlwI7W1o0Qp2fdgYJTDqrK t40Q== 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=r/X0XeoI274Z/zosRGl+eQruxl7JOPwAwYBeIBeKIbE=; b=gv6/Mi2l9QMUXalapeOw0cbtLzT7Yrx5DUmHKKyHk5U3JI6+vKSvUMHZZM36hsHFR4 2pflDjfwiCHnfK7x5v9cYNa2kzIhA+a6W2afuzsFsOX7J2NbL8wpFBuNLQjwtJ+/bAzz Fv76Ur9n5zdV8GK41sLT71zW9U2hFCHiPf7/Qpaz/Ahf/DUWfI8IraOihKAgfEmwN2Eq dAXuY+KKUCUUi7RNyD+Tx60CUaCImOc40Mfzu/N7n/j81eNYIdPV+XMiJE7nJwCArF6r 1loCiLPjGgOhPuhCNIn+nIOD5S3EDwWd8hDGbpFb54DGupzWLTUDzvRkhUyFMTVP1fsR dwzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bqsgdUcR; 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 u23si31868078pgb.66.2018.11.16.16.33.16; Fri, 16 Nov 2018 16:33:31 -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=bqsgdUcR; 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 S1730588AbeKQKps (ORCPT + 99 others); Sat, 17 Nov 2018 05:45:48 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:42105 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727116AbeKQKps (ORCPT ); Sat, 17 Nov 2018 05:45:48 -0500 Received: by mail-ed1-f68.google.com with SMTP id j6so16038100edp.9 for ; Fri, 16 Nov 2018 16:31:13 -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=r/X0XeoI274Z/zosRGl+eQruxl7JOPwAwYBeIBeKIbE=; b=bqsgdUcR76FNtzSuPkF1u5edS+Jk+4de2xj1PefoWOL2k2XsfGiVjKGl+qLV3nC6qR EDy9xdQfnX6HfrSrH1MljEDgafttQbiwdq6T/ZGXIVv8MrmVGV7nWiDPpmymtWBbM5gl PiDQnZwFUl+Ovo/cOFCuoUKFRupOEp9KIT1a/Mwg+9j9AvFPpviRoLx3DYgGNz/B0gOY kex/i9m7C9/Bb2YFYNVl/GnEhvPI5WYmBXml81P9b35/m03+G0SBQ5zvGD/F7FdPif/E uOsW4IzWj1SKswGPOObsAixZ7DGHWnnYzmIytHPaKFV/BmL9OLbYsOzpkbGb4QXJ2ykU 02Bg== 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=r/X0XeoI274Z/zosRGl+eQruxl7JOPwAwYBeIBeKIbE=; b=l4tYpc5fY22oSmODorrmAKc1LvGmedSuiKl3yf9rSbrXr/5y65f4Pu4KwwOqgUoFQq nwk1vITLwXZ5E3YiU5y9ZoK+AHU/YTxY0urqO1BGh3QmqfruSDKheryTAy1pftpmZ4dH ysUmhSwkBTHL86JMMVH3ITjTHp5ijhGmnYgxIsAWhNIukREurxY0RMsUFwUhRZ0Pfcjs Ky+/x7v4TiHKZfLoDMZB/6Ec0SR4LIEoMadO2HAVSEEhlchqigSJLQugW9/tlfDXxL3O 2MN4yzZ+OZCzy5Ng3hOIHLNYSVyHfImES0dOpSY4MSdBWJw5DfcRPvYgA7BqsiijSV+I lwRg== X-Gm-Message-State: AGRZ1gKfwzKymu+ZbaZ6nuNkMTs4+frE4KfAFjGAA6S9+hjqzjXmgUco kQf5ngBYYEuDpAjr4KTrcQM= X-Received: by 2002:aa7:d30a:: with SMTP id p10mr9805704edq.137.1542414673034; Fri, 16 Nov 2018 16:31:13 -0800 (PST) Received: from ltop.local ([2a02:a03f:40bc:4d00:787e:f271:ff1d:82b]) by smtp.gmail.com with ESMTPSA id gp22-v6sm5174446ejb.4.2018.11.16.16.31.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 16:31:12 -0800 (PST) Date: Sat, 17 Nov 2018 01:31:10 +0100 From: Luc Van Oostenryck To: Masahiro Yamada Cc: Andrew Morton , Linus Torvalds , Arnd Bergmann , Kees Cook , Nick Desaulniers , Miguel Ojeda , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] build_bug.h: remove all dummy BUILD_BUG_ON stubs for sparse Message-ID: <20181117003109.jdac5rmjdmpmino7@ltop.local> References: <1542349645-8852-1-git-send-email-yamada.masahiro@socionext.com> <1542349645-8852-2-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1542349645-8852-2-git-send-email-yamada.masahiro@socionext.com> 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 16, 2018 at 03:27:25PM +0900, Masahiro Yamada wrote: > The introduction of these dummy BUILD_BUG_ON stubs dates back to > commit 903c0c7cdc21 ("sparse: define dummy BUILD_BUG_ON definition > for sparse"). At that time, BUILD_BUG_ON() was implemented with the > negative array trick, which Sparse complains about even if the > condition can be optimized and evaluated to 0 at compile-time. OK, but from what I understand, the motivation for commit 903c0c7cdc21 was not to avoid false warnings but to avoid having twice the same warnings: "... So it causes sparse to detect an error too. This reduces sparse's usefulness."). I'm not opposed to this patch (on the contrary, I think it's better to have exactly the same code for GCC than for sparse) but I think that your commit message need to be adjusted. Kind regards, -- Luc