Received: by 10.223.185.116 with SMTP id b49csp937293wrg; Fri, 16 Feb 2018 09:33:15 -0800 (PST) X-Google-Smtp-Source: AH8x226zMpJzvLyrLhC9KEykazuUYFvQlt+S1z4FRVVyX1a3k44+7WoAdqsMjHRnwRhUAcKPqZj8 X-Received: by 2002:a17:902:48:: with SMTP id 66-v6mr6335593pla.288.1518802395528; Fri, 16 Feb 2018 09:33:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518802395; cv=none; d=google.com; s=arc-20160816; b=NlHglKPbYSLvmoKv/6XMAfxFgXbkvwAso0WMAv1K61Fx+aHcfCQc5tSjfnIx2uIgUh XFFVdGLX7C+nzLts8Kn+uox5Epv35ZzdPh1NmUf4wE5XHwgM8pXzOJ5yUMIUJQyOJTVx atq9QXAn9ObVwUa8WSgkr3d8JetFJU1/8pXn9bWb7A7pyv+6nk+24M3P0pXqq8h1Y0eB LeREeBjyepjlNUnExLlWxBrWH4tKtlyu9IVbbxtG7yU81tWcuyWqjtPQXwi9wuaC1E1W 5pAlmA+1SZGgUWXTPdDAe5lDVJdqS4b1Z69qIStPkQOgN16TIAVoETVK5c3WUflv9WaA 4UzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=t3u1v9gZ29yWA6Cg8oKv5J67ByU5gqAsAzL9Z6u5wu4=; b=Ip84V6YkCYIj3XiwTm/NWG6zHfCGhW9HcO7Cz4S2zkjCol0Ki6ZHsHClW3OouHIcao MykPGhBfdAtOBgallf4yGSaZp9zCnGQ0kG8xycUQxY+Pp7h1kltjJAwcrfEciROQ1phY BrswTLLVGcarXX+55BPL1fUWYK+YiT9Uuw6nt/ZsrsveolrocWpemZOgGvR5NNHY3S3l IE3zOyGqTGr+N8orj5LcUaLdGv+JcnXwRBQvgv1JOQWcjLbADMcuBPQ2dSG6dSKL1RBP vGZjnScznAtMw6L4cGXSzmFBE+u3MrMnub20OqNMFN6iWz4xk15unftsKmnBzjIkcnr/ pLew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e/w+xDEB; 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 e12si63314pgf.646.2018.02.16.09.33.00; Fri, 16 Feb 2018 09:33:15 -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=e/w+xDEB; 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 S1167302AbeBOVIH (ORCPT + 99 others); Thu, 15 Feb 2018 16:08:07 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:52940 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163660AbeBOVIE (ORCPT ); Thu, 15 Feb 2018 16:08:04 -0500 Received: by mail-wm0-f66.google.com with SMTP id t3so1181881wmc.2; Thu, 15 Feb 2018 13:08:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=t3u1v9gZ29yWA6Cg8oKv5J67ByU5gqAsAzL9Z6u5wu4=; b=e/w+xDEBxoRR7d1Ci4BqX+Ogf5nw4posHbY8wywb1c/H0r4gyXQACH0PPjzhv10p6v j+N1IjNOYhdrKKN25WFFoReSGdZxjFaNLQ2kVnCIgVxArrbcupDet0CTeXJkLuqLkB+8 Ew81tvh3GhD9fzyPmocA61uHTCUsmZXSIVNi/6q7JASv+oaKPhNLXOm4UUOvG49HBvEl eWT8M6Lf97fNQEI/xfSm/dA8Q5bTqdCDEfqjn2DM6orK1myln6MNNwNrPYCwwBefyZn6 QyjLJNryipfjMtFL3UdW2jxGk14knUMRJdNKjG4bzVWjju0QMM5FM9uJUoeDNgsr5GRj f8QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=t3u1v9gZ29yWA6Cg8oKv5J67ByU5gqAsAzL9Z6u5wu4=; b=qTp/XeFUjccPPvuAyG0iEu9bjQDpwjrf7IQIx4TWX9qhJy6ZLghIcgIa5HqI4C6ciC 2i4qR2CYA1oDx630Wr39ssJxvDyPSwt846bEvKlx7RZtfefvd7Lahbv3dFMSQ/kLF4Js z0RKPmvv3zW620cVQF5/TCLHeg7r0/MZJzKeDuncTNZjJD6Bpz6/OwTZ8LsZ9+ts89/p 9/EfvWeyHk0E+IGQkQHIYEQL46KZ/0fwt2sWZbeXvXmTonhJitzxTmz4yBJbaUrVzvbZ SfULWVJ01JLv1/qokSjyBbokmmKg/vaJuvCfPqdLujApM5if05vjCekxioZLbTXf0Q62 DGLw== X-Gm-Message-State: APf1xPCKE927yn2j8wxqu4CEciJaTPjjfj1g+Osl8uUbZcems3EV3jwj KL3wjqP7+BXDfnoC3j7LpUW2MqWz X-Received: by 10.28.28.198 with SMTP id c189mr3385317wmc.104.1518728882692; Thu, 15 Feb 2018 13:08:02 -0800 (PST) Received: from localhost.localdomain ([2a02:a03f:40f4:c400:c004:15b5:9188:9888]) by smtp.gmail.com with ESMTPSA id x26sm11596562wmc.27.2018.02.15.13.08.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 13:08:01 -0800 (PST) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , Linus Torvalds , Josh Triplett , Randy Dunlap , linux-sparse@vger.kernel.org, Luc Van Oostenryck Subject: [PATCH] disable sparse warnings about unknown attributes Date: Thu, 15 Feb 2018 22:07:50 +0100 Message-Id: <20180215210750.28813-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.16.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = -- 2.16.0