Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2577652rwi; Fri, 21 Oct 2022 05:38:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6i8tyLfeYaOWy8XskzHvkUSyU60C+gcm8iIj8b14uSnQBw8pJ8CtleWt1DNtM/VUCPSFUy X-Received: by 2002:a17:90b:4f4a:b0:20c:64e2:2bf1 with SMTP id pj10-20020a17090b4f4a00b0020c64e22bf1mr23083011pjb.30.1666355924001; Fri, 21 Oct 2022 05:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666355923; cv=none; d=google.com; s=arc-20160816; b=yE1JcPPeRPOoXa9olZwJBCh7k1tmprg5OGN34XIMU7cBOzuyAx3Yy+LjwMg8R+3LE6 3ynK2s3RemGmcJzgnJQl++quPhpfJLo6rK2/qi8Eouh01blbFQcVfXEwunmQNbjHpOMj rguYkss6xsQbNAEtkcaWVX0vQ/ykv1WYmdTwOB25zLfMGYyBfNAwg+HcJsChJfT1/u11 BMo0jlh0MNKzbabb2oXcNNX56oX2ODE1luwzbVrKj2rDbcR/jDsxKY9faTMGOplJHeki j5mKz1NiAzBbwp9Xodo28ZEnjkOgoKBdRg9lDvrfM9nPAIjM9BSNeRkQLwlL0Bf2ewad NdAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=djiBZHr31cBi/n2utljM5o7PSmAYOP5bFpxnddnSBRo=; b=Qq0I1fuA/zMKI8X0EZv6He/o2p2dfxvLVCJV0IeP1IZgKRAtmybMpkUjJtbuCoVtiq LTA1xQYOA1r0BfW4Z4XIgWlRZnyjgDbtQhdHSkHmNtgM8VguDh1Z8N3CnMfDoqA3zV4R 44MtwdvuSFILhfYtmjlrne7V9vIqy0s8ko1YpgyleHIWV58zO5ytUCj9OMwxhiV9Hs1N Tnz0Jf9uTwrUjAzo74h+Bg6BUQYnQuiM+rgvO7Tpv+dxHAtbtoRysrR1irw8S1TZG9b3 dIi7scWeuzeCYZgx3O0b3bWrdwad9LEeHwqaBtzLFSfPJ911PN/kdsgOFOIXToZot6R8 734Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uY6civyb; 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 o3-20020a655203000000b004639c679346si24495010pgp.837.2022.10.21.05.38.31; Fri, 21 Oct 2022 05:38:43 -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=uY6civyb; 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 S230369AbiJUMAx (ORCPT + 99 others); Fri, 21 Oct 2022 08:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230244AbiJUMAr (ORCPT ); Fri, 21 Oct 2022 08:00:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F0D725F8C0 for ; Fri, 21 Oct 2022 05:00:39 -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 ams.source.kernel.org (Postfix) with ESMTPS id 8D3C1B82B1D for ; Fri, 21 Oct 2022 12:00:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61B2EC433D6; Fri, 21 Oct 2022 12:00:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666353636; bh=LMbm0RHnpHjF4XALs9PiF0EN08cXmWMXDuFm/StCLYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uY6civyb7kDMMqoM8kDnJuXgTvt96br4iOPCoRINeo7pN3UFMG2jZU+pbngyk4L32 mAEA5B5nw1nn2mZ3ztnJipCUK25eHx0Vn5DcQMhwX0e3namZGj91GAHkRC38Fze3Sv MVO4Uny0Tp80q6nH1WfO8QZnjWHApp7P80ZG/D9JQyQiUdRBGj9eHkbVJfB2iGGK7X ZIQWFovF/ERwkF6hJTF9msGZXnw0qQKGvv6NgTMLXfQWeI6xi8QOe5SBrKqD/OwTUX t+SZfkGLXNRgJ838gDjofYl5p25Oc5nEv/Y0o37GjJvY2Z9EeIaujzLZTtVk1akrSF tL30aNK+edApA== From: Miguel Ojeda To: Andrey Konovalov , Marco Elver , Kees Cook , Arnd Bergmann Cc: Andrew Morton , Kumar Kartikeya Dwivedi , Nick Desaulniers , Nathan Chancellor , Uros Bizjak , Dan Li , Alexander Potapenko , Miguel Ojeda , linux-kernel@vger.kernel.org Subject: [PATCH 5/5] compiler-gcc: document minimum version for `__no_sanitize_coverage__` Date: Fri, 21 Oct 2022 13:59:56 +0200 Message-Id: <20221021115956.9947-5-ojeda@kernel.org> In-Reply-To: <20221021115956.9947-1-ojeda@kernel.org> References: <20221021115956.9947-1-ojeda@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 --- 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