Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4213330imm; Wed, 5 Sep 2018 12:33:15 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb/AntUrtszMnNnhkKkYWsZ3gLeRhoWt5B+NlTVJAzqu+VeNGCjg9j46b0UeGpyi5zdVKsh X-Received: by 2002:a62:464f:: with SMTP id t76-v6mr42053741pfa.118.1536175995340; Wed, 05 Sep 2018 12:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536175995; cv=none; d=google.com; s=arc-20160816; b=iUqM9lXsT5VtO56WLGJ92gxyXH6auqtb8RcqgF2ic3N2xsllV+Bxl63ZLmgposbOBC duCOBOywq+C5MtQerC/vMdHE6zybSS+Wi2HV+ym7UGzq9b1Xz1VyIs2d0pcSoH/ACGNV sPyeIWD40C9cSWTiViOfchxc7m0RkAgkwXUrLa+4OuUU1P9O4gaflmtRBmRN0rs57LdZ XXUaQ1M6O4pAlQjY9mgymgT8pQl2aua/zUjWu0u5u3q5OwKbJM7HQSIWBe5ZAf6ZKAfa GvySqsFb/F2sNIgrnSmtv3ac8ae1bgqrUcvdB4JlTNd3noCPAuo1FxJNKS0GiuplYaRt aeBA== 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; bh=o08msLkJ/OQE+kzQBV14ytSb6eiTzSuAzeS6q8NxyWM=; b=Wovc2Oa3U4UsDGAEIpHEW3uq2ifcSnazSrJarLBPgTHJ8oGo/dWVS4EQGFksz2JRhy av9witWx0BvZUgggEX+yOdPH9vGJQT5cRcgJTDAj1HDmxPORv3n4USkgZJtaEuHtFJIn n1boKR14/29Veen23D3Z0XtI6n/8C+IGTTTNQT2s0mfFyTNEtWRtyjrfjJ6/f8bra2r7 /hPiXEbQu3ni1eQvf6MYuoGhwTvmZhxZYKX4bITREJ1zOTDKYuUijc7ckVtAQE0cRzJf FvcF0gjcCexER4+K+0Kfpik9Z9s7akfBfsqyw9YMne7ZhQxSX35EQZDyBPDU0pD5lTcf n30g== ARC-Authentication-Results: i=1; mx.google.com; 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 w8-v6si2809052plk.222.2018.09.05.12.32.52; Wed, 05 Sep 2018 12:33:15 -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; 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 S1727872AbeIFAC1 (ORCPT + 99 others); Wed, 5 Sep 2018 20:02:27 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:42735 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727267AbeIFAC0 (ORCPT ); Wed, 5 Sep 2018 20:02:26 -0400 X-Originating-IP: 134.134.139.75 Received: from localhost (jfdmzpr06-ext.jf.intel.com [134.134.139.75]) (Authenticated sender: josh@joshtriplett.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id DB97D1C000B; Wed, 5 Sep 2018 19:30:42 +0000 (UTC) Date: Wed, 5 Sep 2018 12:30:35 -0700 From: Josh Triplett To: Luc Van Oostenryck Cc: Miguel Ojeda , Linus Torvalds , linux-kernel@vger.kernel.org, Rasmus Villemoes , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg Kroah-Hartman , Masahiro Yamada , Joe Perches , Dominique Martinet , linux-sparse@vger.kernel.org Subject: Re: [PATCH 07/12] Compiler Attributes: remove unneeded sparse (__CHECKER__) tests Message-ID: <20180905193035.GB3420@localhost> References: <20180903203316.16183-1-miguel.ojeda.sandonis@gmail.com> <20180903203316.16183-8-miguel.ojeda.sandonis@gmail.com> <20180905182038.muv535vfugm72spk@ltop.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180905182038.muv535vfugm72spk@ltop.local> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 05, 2018 at 08:20:39PM +0200, Luc Van Oostenryck wrote: > On Mon, Sep 03, 2018 at 10:33:11PM +0200, Miguel Ojeda wrote: > > Sparse knows about a few more attributes now, so we can remove > > the __CHECKER__ conditions from them (which, in turn, allow us > > to move some of them later on to compiler_attributes.h). > > > > * assume_aligned: since sparse's commit ffc860b ("sparse: > > ignore __assume_aligned__ attribute"), included in 0.5.1 > > > > * error: since sparse's commit 0a04210 ("sparse: Add 'error' > > to ignored attributes"), included in 0.5.0 > > > > * hotpatch: since sparse's commit 6043210 ("sparse/parse.c: > > ignore hotpatch attribute"), included in 0.5.1 > > > > * warning: since sparse's commit 977365d ("Avoid "attribute > > 'warning': unknown attribute" warning"), included in 0.4.2 > > Hi, > > I hadn't noticed in the previous version but I see now that hotpatch > & assume_aligned is only available since sparse 0.5.1 which is only > 13 months old. It would be great if everyone use a recent version > but I fear that a lot of people still use something less recent. > v0.5.0 should be OK, though, it's more than 5 years old. > > Sorry for not having noticed this earlier. Unlike GCC, I don't think it's at all unreasonable to assume a *relatively* recent version of Sparse. (Once we start assuming a version with __has_attribute support, this will get even easier to handle.)