Received: by 10.223.185.116 with SMTP id b49csp987534wrg; Fri, 16 Feb 2018 10:21:32 -0800 (PST) X-Google-Smtp-Source: AH8x227X95DHHe9ta2uCcx4Exwi8TmIisXwAT2HezLY/NC4Qe/gYzXYVzcGMV29b/ZLgj5nWXdGi X-Received: by 10.101.82.1 with SMTP id o1mr5779604pgp.259.1518805292450; Fri, 16 Feb 2018 10:21:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518805292; cv=none; d=google.com; s=arc-20160816; b=lEDWSLpYxJjNUs+y1He3pz9cKezx6aU6uYRws1OVfcof8Oc5J5l9dK/qgcSg+9YIRQ KsOiRrz3KgdafHQ2hT8PVBo0QmQssf5mcHW2VFMgQPwVHkTHSgJCIw3vD0PU/WhwkuCW +ztR0isjfIi3urtpJcRWjPNef6K8p4qzRqyXr4KMb7lYUluwaA+jKs/TgMCv9A6tGZXL RZVB4hSSyd/3YKWZxGkBuy402TjE8poxGuiTJiy/KebtfLbdnS2uFTyrHt0d5NOnQvet 21J4z0Lkx55tevvMiyiDk9KyqO/yDlPSkmz2WLzFR7x0H55klvkWinHWw1ZF2cLmrxE7 hUyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=i4MKYiCyJN/3BSehJ+Wg6MJb2aDaMrjXkCbWFQaDM68=; b=Mh6FG5CsZnOdPqSIY0dBZp93WnZrkHFBQ9tYqpvS9tZlh3KMfYELLYLFzQ+eprN7ot lbpAZ3rUQPGYSVnv3zRMm4u4jIgIZOwPyucD2ruL/EWdUFUlJfUxrMOSL9WYQo1ScMge +jB9jq72gmHr1B8Tg++rVZt71s/B0J6OfNLNJxgyketjVEShXsrImwH3rX8XeARCOubJ rIMRYFv/FLcMvpT5Z1m6cXs8oykx6OYlhgJPM/25+1LVbgyyfO0m3I9Z9JcMaLikx9cm g/gZSB9/jKWhlvUaqvMS8/C3NGROAraGc7aj/m0BdeBdtOxWB5LbqTOGxadzMFJaxeqk itVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eN0dvjXs; 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 e7-v6si469811pls.543.2018.02.16.10.21.17; Fri, 16 Feb 2018 10:21:32 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=eN0dvjXs; 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 S1164679AbeBOXVV (ORCPT + 99 others); Thu, 15 Feb 2018 18:21:21 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:43230 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163785AbeBOXVS (ORCPT ); Thu, 15 Feb 2018 18:21:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=i4MKYiCyJN/3BSehJ+Wg6MJb2aDaMrjXkCbWFQaDM68=; b=eN0dvjXsOpvcze859KF7wfUjj 8j7z+ib5BvzxaR1rjG4ALMQvol1Vl1rurq5d8CyMctVNkx52it9ocnpgLEmqyzVJS/TW/jBR0MMkS 14c0yX6oyytwCrASHwmArGzbXKIs1OXj8VZzNzuipoLJvsFFxkKNAIRSFeTM5dFnh8d2r371Tz6Ub lGUzKYqQzMyZ0OJSsYX3fZIr/p0H7Wf/vdT/tGyPr1nDDc/S8Ya7eFIu+1sq1AZRW1n4IRgwnoB/9 3dxJ1k9xcVtZt/ZCdfBZuwkr+TTPTpGlvjDPNNPuxFWPo4iwg+sdh8TFuh95jGU04tCoF2odNgRuu /SN0LwaQQ==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1emSq4-0001ym-E3; Thu, 15 Feb 2018 23:21:16 +0000 Subject: Re: [PATCH] disable sparse warnings about unknown attributes To: Luc Van Oostenryck , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , Linus Torvalds , Josh Triplett , linux-sparse@vger.kernel.org References: <20180215210750.28813-1-luc.vanoostenryck@gmail.com> From: Randy Dunlap Message-ID: Date: Thu, 15 Feb 2018 15:21:14 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180215210750.28813-1-luc.vanoostenryck@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/15/2018 01:07 PM, Luc Van Oostenryck wrote: > Currently, sparse issues warnings on code using an attribute > it doesn't know about. > > One of the problem with this is that these warnings have no > value for the developer, it's just noise for him. At best these > warnings tell something about some deficiencies of sparse itself > but not about a potential problem with code analyzed. > > A second problem with this is that sparse release are, alas, > less frequent than new attributes are added to GCC. > > So, avoid the noise by asking sparse to not warn about > attributes it doesn't know about. > > Reference: https://marc.info/?l=linux-sparse&m=151871600016790 > Reference: https://marc.info/?l=linux-sparse&m=151871725417322 > Signed-off-by: Luc Van Oostenryck > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 79ad2bfa2..8d9a7374c 100644 > --- a/Makefile > +++ b/Makefile > @@ -388,7 +388,7 @@ PYTHON = python > CHECK = sparse > > CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ > - -Wbitwise -Wno-return-void $(CF) > + -Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF) > NOSTDINC_FLAGS = > CFLAGS_MODULE = > AFLAGS_MODULE = > Acked-by: Randy Dunlap Tested-by: Randy Dunlap thanks, -- ~Randy