Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2565765imu; Mon, 19 Nov 2018 02:37:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/XbDBC4XbehFGvWKi7tqALPa4wbD1DsyoUwR/sEtN6/vxMNmNXZxSjNhMSy32G4EeFfInvd X-Received: by 2002:a17:902:6909:: with SMTP id j9mr7025662plk.196.1542623823962; Mon, 19 Nov 2018 02:37:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542623823; cv=none; d=google.com; s=arc-20160816; b=RSdAltQd+mOB12ZxIB7qQt/BYBaGvixZyYy6pli6ZF7nSGx6wF8rfJqv9OlS9lLeqm ONizHSO9bp4xvC57D+eYKxSyhncO+zot4FyieA5FE80uvS1zabwzovG3gx13FB8kOFjT 1rzV5ioYG9RhnVA4EWOicwlyjn0LL4Dv9a9jB7v92cTeamNnvC4eGi1zAKrqowBNCoqz 64l+VnSQQrtGstRzsbAbS+c28qo5l9DExkg0vawbJjAofOYcv7xS7e0b+XFwn97J0DhQ RT9n3vyS0c/ea3t0u5Q50deH5aYelu7vqQRBnDrCbWeFh++DjtN+2ysC3KgQ0wytOSL6 eM7g== 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:dkim-filter; bh=R2aLo/QTYYxhbLbN+2LZAAQRs03RBwg6SaaPD0kAfS8=; b=LxRUuAxiW/U8hT2JTsamdQCrVSJnKjpX1w5ew4Vi8eOQxcHKewGrbnDGyy4WLwFpJw rIE1UrllWchy3fUo3pjT+CErMr6Iluxz50QI8iy+c86v56F7nqVu9GbTEAyofd4TNQON rbdl4hshTjrn9NtKNj5Y2eb4yMfUEdDSX7VDlqskQe1Nk8fwWsmvg8znfBlCZvrPJpL4 yL8vSGt2db8xCsQ/weeAnJAgRZuTcNc+oU6maPMzP7PAviE61foWvlGqQf4JUA4ayFE7 5hzLoUIn3zCx09KBGK9XbO+JfBFW1CjERCM4ynwNjMJzz5Tqk0s6Rb/kpPG6+jZGeHJl I51w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="0SKeouH/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12si8786066pgn.145.2018.11.19.02.36.49; Mon, 19 Nov 2018 02:37:03 -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=@nifty.com header.s=dec2015msa header.b="0SKeouH/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727963AbeKSU6r (ORCPT + 99 others); Mon, 19 Nov 2018 15:58:47 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:49976 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727698AbeKSU6r (ORCPT ); Mon, 19 Nov 2018 15:58:47 -0500 Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (authenticated) by conssluserg-06.nifty.com with ESMTP id wAJAZLFO015987 for ; Mon, 19 Nov 2018 19:35:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com wAJAZLFO015987 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1542623722; bh=R2aLo/QTYYxhbLbN+2LZAAQRs03RBwg6SaaPD0kAfS8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0SKeouH/M4SPQUNXQNtXl5AhrJyUecLSYS/ubkk3Y6W6sfi+mNGm1bdoYg1TYcOFm Fu3WPdvoRLzyAJWKPrVuCfLSA3UnU59kLoRPtYOkbFHLNscfSP3anLdCeSScUGJndF B6ibCdArrtkZrh6zDa3cF8ID4bbiJVE1Xy9VvhqP/D1yYnxjHSflF01y90lYE4rrXB wBPmd6jKq9BkSBI1rBvodS0DkH/p5K1FuOxPifSUbtSdqTlMy1a9cUcnv215SD/Omk bsCt15NV8OtAf1iOAfmrFKW7YRltrcjCXded2HM/8BSlaJjxu7ivfLX5JR/tzc/9o4 7nX2IYWeZRR7A== X-Nifty-SrcIP: [209.85.222.54] Received: by mail-ua1-f54.google.com with SMTP id k10so10498733ual.6 for ; Mon, 19 Nov 2018 02:35:22 -0800 (PST) X-Gm-Message-State: AGRZ1gJAlg/AxmccsN/bUtyWnzMDuqtCMunrzfZDJXQlXgBhMCGoO1CB RVXRqCQzi4CRZRjhlIiqrLgqEHRUG/3dxazm82I= X-Received: by 2002:a9f:3f41:: with SMTP id i1mr8940941uaj.42.1542623720844; Mon, 19 Nov 2018 02:35:20 -0800 (PST) MIME-Version: 1.0 References: <1542349645-8852-1-git-send-email-yamada.masahiro@socionext.com> <1542349645-8852-2-git-send-email-yamada.masahiro@socionext.com> <20181117003109.jdac5rmjdmpmino7@ltop.local> In-Reply-To: <20181117003109.jdac5rmjdmpmino7@ltop.local> From: Masahiro Yamada Date: Mon, 19 Nov 2018 19:34:45 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/2] build_bug.h: remove all dummy BUILD_BUG_ON stubs for sparse To: Luc Van Oostenryck Cc: Andrew Morton , Linus Torvalds , Arnd Bergmann , Kees Cook , Nick Desaulniers , Miguel Ojeda , Linux Kernel Mailing List 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 Sat, Nov 17, 2018 at 9:33 AM Luc Van Oostenryck wrote: > > 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."). In fact, Sparse was producing false positives. I mentioned this in the commit message of v3. > 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 -- Best Regards Masahiro Yamada