From patchwork Fri Oct 21 11:59:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Ojeda X-Patchwork-Id: 6671 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp667999wrr; Fri, 21 Oct 2022 05:25:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74sOVj8RgOUuvu4X6ZJYs58yIXf1xsxJJOvJU/SP4ryPCIcHyCxw/pxRH6gKjuBcFR6MG6 X-Received: by 2002:a17:906:1b49:b0:78d:b7b5:71cc with SMTP id p9-20020a1709061b4900b0078db7b571ccmr15036877ejg.536.1666355149566; Fri, 21 Oct 2022 05:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666355149; cv=none; d=google.com; s=arc-20160816; b=vlx5xqywcVac3zQ6BrFIbXUN0j3ocMCl4zV0F0+ZMBPnicspNhGK8tmKN2x2G1loQi hi99QitmR51HO2lQemmISTZQ4MNKS+V/zep906NSixEbtbFJvXW3vWAjQPGwXjXU8NBY Ei9J4Rws3nCIv36k7AATxaNxXRYoB9NFZInTx5c/K181d0Rs0x329J6ZWg7U5sQTbSN9 27oNgWhP1pkIFYbLmekjIwWu7nEUpG1lsvsKk2ygCXRWsuXKYG3G+4fjZX3lACLabgLb Gy2bvSATkyCUYaO9ApRPAugqcgzvp0ZId/5qf9NrgE6PEqCw5YotZ2yi7fndh70J7Roz FlpA== 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=IyqJrIrMrfHDqYeh97vndOBGkwR12BZcauxDAA+bz8w=; b=VWRU2FoPZmX3bDAiRwHBYChCGC7dJ7oG501Xiw7Va9BnViIE6Lrs4BQtVMFiRp0HIr Z/1NGG/O8vN2j5ijAdKCqGbZN9YTnIzB59kgls0z6OGMU64xxLUcJ517lesJM5SZOb+0 +Eji97Jtr9jK/PwXU+Bwk1aHyMWnq9mLcy+OjO07+hgLJpSpx62N0ihfCChoziGfsXtp Xxum84Ep+VADJi4sLdrgYkrVu2WUZ5uNfH3L6rMMV/HaXUeqdtp4LilTH5uknPudeII9 F4mDo2rWaXeW+f4D4FHLbgcTtQTLIefIpey1kKsVIh6Z9D529mRTYdFUbzoyHm8nxy5A bVzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=baCMPAux; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d25-20020a170906175900b0078e0e866a4dsi14976483eje.682.2022.10.21.05.25.24; Fri, 21 Oct 2022 05:25:49 -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=baCMPAux; 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 S230218AbiJUMAi (ORCPT + 99 others); Fri, 21 Oct 2022 08:00:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230158AbiJUMAc (ORCPT ); Fri, 21 Oct 2022 08:00:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53811251F6C for ; Fri, 21 Oct 2022 05:00:30 -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 E3FE561E6D for ; Fri, 21 Oct 2022 12:00:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35885C433B5; Fri, 21 Oct 2022 12:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666353629; bh=LjLwcRsPZ65V3+uAZ7ZJ20ekU/4YVxIRhGPnMyc8hg4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=baCMPAuxXA5okUTpltIb1PDHRcQSWtRzcienWV3n48jfF8Q1Om+t1BddLs/7d0inO InEt3zCd6r9NHUbXIMY9PFstO8lNWAmBtcEUbaF1vbyc8hG/3nA2ztdGA1RGb4Wl3K dNwqE3PLZX5+eB8k95zqUizFUUQQ956brbMSA1LKzslbPxctl171bS9q/c2ltkthu5 dy8p3R/F4O9pVyb0dPvn3w7+n1az8dSGvClcU7DppMM1YL2dfIuY4AvpeK3TnMfO3v UQCwtxdKwyeP+hKa2hfsoNROys+c5Zv1hCKnYkhNeUfO+i0nH1ALJRpxMpjAFD3yhR y3JUNWJ3ls7kg== 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 3/5] compiler-gcc: remove attribute support check for `__no_sanitize_thread__` Date: Fri, 21 Oct 2022 13:59:54 +0200 Message-Id: <20221021115956.9947-3-ojeda@kernel.org> In-Reply-To: <20221021115956.9947-1-ojeda@kernel.org> References: <20221021115956.9947-1-ojeda@kernel.org> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747300017241027014?= X-GMAIL-MSGID: =?utf-8?q?1747300017241027014?= The attribute was added in GCC 5.1, which matches the minimum GCC version supported by the kernel. Therefore, remove the check. Link: https://godbolt.org/z/vbxKejxbx Signed-off-by: Miguel Ojeda Acked-by: Marco Elver Reviewed-by: Kees Cook Reviewed-by: Nathan Chancellor --- include/linux/compiler-gcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index bfce7f4d0978..ba207deb77ca 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -84,7 +84,7 @@ #define __no_sanitize_address __attribute__((__no_sanitize_address__)) -#if defined(__SANITIZE_THREAD__) && __has_attribute(__no_sanitize_thread__) +#if defined(__SANITIZE_THREAD__) #define __no_sanitize_thread __attribute__((__no_sanitize_thread__)) #else #define __no_sanitize_thread