Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2561415rwi; Fri, 21 Oct 2022 05:26:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ZQEoFF9V71JV+k/1/nLaZOygUvyHdQIAPB68OeQvOUy/bKjQ/geh9QoWBzuOO18Zy5OQE X-Received: by 2002:a05:6402:2409:b0:456:f97b:3794 with SMTP id t9-20020a056402240900b00456f97b3794mr17153296eda.145.1666355201551; Fri, 21 Oct 2022 05:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666355201; cv=none; d=google.com; s=arc-20160816; b=c9RIFhdwL/ibM2cu19Ai8xe8oB0kU3XX5u7Qsh6nS3qZkRoAVKGKaBtzcav5D6tPq6 vOfuC8zQLT6Q2R2lvJwBa8W5RxbsJv9m9E5V8R98tKGbKf7b1fk3a3Pb5IVvf9pn7Hm4 Th0fyrYDkBzyAu10vrfi13sl2FtJ1GS4CdrqxDM7NKuutROs1gUTXiJUw133ZU41+Gz9 ec9bnkeNTPwvd+WfF/ESmZBO2uZmoQJVOT9kMT4EvUVa2/0DQu2+9W5voBY4Q44cBYbM 9dQhK3d6gSlo8CRCWODM2nbrhiKHf8dXMw5swykK1zvKnGSRSi4MZt0BVazAXW2eRBoN xY4Q== 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 Return-Path: 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.26.16; Fri, 21 Oct 2022 05:26:41 -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 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 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 --- 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 -- 2.38.1