Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3292957rwi; Fri, 21 Oct 2022 14:23:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6p0MFjlztpkeqIN8ukxiO1DhVVPJjq+rHSDxVjO6ncIs5GKPGDqENHZSVsWfOXsWBtS/yR X-Received: by 2002:a17:906:4786:b0:78d:c3c0:1508 with SMTP id cw6-20020a170906478600b0078dc3c01508mr16909965ejc.211.1666387439050; Fri, 21 Oct 2022 14:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666387439; cv=none; d=google.com; s=arc-20160816; b=AXIE1kMOg6k0n3yDalnZbFa0o3tbBDRZkitmZlZSSg0ocfgZW9fiUwuE0E4OfQTeXa ZEicMbxSmDrcE4Im3JVtoVOJJ96ZWhsmL2XiGDlS3hcaziQ6kKjH00R91e6oQENkr+qB w9j+uwxlCCHgvhOPQyDWBDt4P79K7Tb0+89qYM2aMuc2SZe5YLlepjOMaoF+fY4OrwDd hJW/sBeP6EUM6Ues91MSBHthoavkubeaeSmRdcbsQVZoOlIsjMBhNNuIffctUHPB4MoJ nsppSEIps646UtK0PVRTMf5LeBjvX0lAErHe+x+4GO1wFRRZErn4tJ6o+q2x/z2dzsUB zpJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+LmHs8usKraez5eQtZuyMQiB3/iuCR08mX2DlYFC6iY=; b=AA74705jato17Dz4GF1370grDuYrmbXULpTmz3jOIHZa+0yIi2jUfYsHGZbWQtsHzb zXrCnHgsWJyFFXuQW9/frBMiNHFOUsftgxIkGy35V0PQ+2YLLlq1ES92EIlcys1Ido0A x3wAluI6oDLxgiYxUpG6FfKzRXCsKnaFeknmEAzFbLbTtJoWjV/QbcruEuB4qQQC+veW 5T4QMGjC42Mtd9++A7GU4fxQEB2D8MIIeOUQt9kDuZuRmnU0HstrcS5veI0illT5wu5B K2BEJ7EY1+KRDokH6fZHZdHCdFsGW45bv0gqdNb5FzOzXRnGWMeAgrkXoiQObsu4O2tc 8vIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s4Kh+i0e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m23-20020a1709060d9700b0078bcc872a6esi17814678eji.360.2022.10.21.14.23.33; Fri, 21 Oct 2022 14:23:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s4Kh+i0e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229489AbiJUVVd (ORCPT + 99 others); Fri, 21 Oct 2022 17:21:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbiJUVVF (ORCPT ); Fri, 21 Oct 2022 17:21:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C265399C0 for ; Fri, 21 Oct 2022 14:20:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 495D161F74 for ; Fri, 21 Oct 2022 21:20:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FA4AC433D6; Fri, 21 Oct 2022 21:20:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666387215; bh=xbASSWRTZAT5oZ6zyMyNGJoQui7kFORg6AV0oZzxO1Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=s4Kh+i0exoHNXiUVE0VtZOJYh+6lXn+Wd9wmiyA44mD9pseuoUfMBIHPs0QduU6Y1 boJHWIS6MbC3fsiSZoM0VP/t11uKHQU5e8N31vXGpsPxh9N1TuzfypRnXAq0FFY8R2 J0TceastVjnNj4N1tHhTw5kQsBQCr9/4Gh5/NAT4fmTPy4NjZrcBfheCUxzQ48fBlM jzAFgpIK7+B8jPyGcT9WsB6eD3oD9rjAFhq3NUqOoYDPN4jL4E1eGS6qaOunzWUXTd wZKC3DaWcTW7o3V6KCUHNSBBYwGnyTRYRLH6xmuRBVcLnGeT0C2wailY4BESieX0k7 eDFPOQjhNIA7w== Date: Fri, 21 Oct 2022 14:20:13 -0700 From: Nathan Chancellor To: Miguel Ojeda Cc: Andrey Konovalov , Marco Elver , Kees Cook , Arnd Bergmann , Andrew Morton , Kumar Kartikeya Dwivedi , Nick Desaulniers , Uros Bizjak , Dan Li , Alexander Potapenko , linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] compiler-gcc: document minimum version for `__no_sanitize_coverage__` Message-ID: References: <20221021115956.9947-1-ojeda@kernel.org> <20221021115956.9947-5-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221021115956.9947-5-ojeda@kernel.org> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 21, 2022 at 01:59:56PM +0200, Miguel Ojeda wrote: > The attribute was added in GCC 12.1. > > This will simplify future cleanups, and is closer to what we do > in `compiler_attributes.h`. > > Link: https://godbolt.org/z/MGbT76j6G > Signed-off-by: Miguel Ojeda Reviewed-by: Nathan Chancellor > --- > include/linux/compiler-gcc.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h > index 7f2c2bb73815..7af9e34ec261 100644 > --- a/include/linux/compiler-gcc.h > +++ b/include/linux/compiler-gcc.h > @@ -92,6 +92,9 @@ > > #define __no_sanitize_undefined __attribute__((__no_sanitize_undefined__)) > > +/* > + * Only supported since gcc >= 12 > + */ > #if defined(CONFIG_KCOV) && __has_attribute(__no_sanitize_coverage__) > #define __no_sanitize_coverage __attribute__((__no_sanitize_coverage__)) > #else > -- > 2.38.1 > >