Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3312309rwi; Fri, 21 Oct 2022 14:43:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ziHzhkcpwykKALivM/VUydT5A9sl3mmDRmfKuMNbQJqwxLvlxJQBGpIevWTmPLQlxKlNE X-Received: by 2002:a17:906:6a0b:b0:78d:b81d:c2e4 with SMTP id qw11-20020a1709066a0b00b0078db81dc2e4mr16822178ejc.218.1666388597426; Fri, 21 Oct 2022 14:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666388597; cv=none; d=google.com; s=arc-20160816; b=AxljjxyL5fVexbXgAI8RsmJBfQI0lK0gn+ynWX+iHQd0GxRRM9aVGWgAeQ2pNY0oco FuC6s8u/ybpmmZ9rXUSjAhEhzkXLDK5cYJ2pvb3HED4o7gXdWBvN/BNRB+rG9dlkM7pT PAYfwjY2foC0ecMu98J0UbkuIBsxydHOk3JTyYdJ55Vsh8wJpMxJuQivyQXV/tk4jPxP jDT+eFoAAPodihFj4ciL2u6WiwQFiv9W+dzx/wHdQ0uXkFxQhpLIaK2SFhl2bKUCKkMP kqeNfnwBMXcyfI9noAGJrtHcA6r/lGwZH3eXSbD4VS/tF8OdlALG/J3X1ae3IH0Askv7 OGJA== 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=1zqL+6rlWF5WcKmPppld4R3Hq6PAGUDJeQlq1WLBz/Q=; b=0zOT3uMimCS9H6J3nX/J3dIA383dpH2O2TpOu4ze7R3Ek8h1M7FUEmju++ZCxSc5KQ VWM9gjFcBZPjxPg1UISBDY4Bx4eq70lGITrGxdra+fMHNKZ+q4AkKJO34oVujW03Hs48 iGPCI6lrL7zb4BWey1ZK5F+f0CtHcYvPS48PFVqnmCzE6JKe5jxtcsTtquHNZ3HOQOKb n3ANuJkF2BemReFXCvQN9nUFtBhFPXAgedJKMa4wnbb+jpH++jpupqsORAVv2TtcVNiP 9veKGgukV9LuyZAvg/9LJSRJaCAtx0QrizL466cWrUv5Ib5UQNUDY4reqoWZdknwCKcl 2O3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="oS6ib6/L"; 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 hb14-20020a170907160e00b0078b41dcf4b8si22293542ejc.479.2022.10.21.14.42.51; Fri, 21 Oct 2022 14:43:17 -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="oS6ib6/L"; 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 S230385AbiJUVTJ (ORCPT + 99 others); Fri, 21 Oct 2022 17:19:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230295AbiJUVS5 (ORCPT ); Fri, 21 Oct 2022 17:18:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A6E72A6840 for ; Fri, 21 Oct 2022 14:18:42 -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 E11BF61F75 for ; Fri, 21 Oct 2022 21:18:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6AF1C433D6; Fri, 21 Oct 2022 21:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666387121; bh=2FFkvVZkTQ0PEfbYfPFvB9iZXcB1wpS7dr0mDk8aJ0k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oS6ib6/LIiPT2vSvTz+OGN+caOtzyRlmDcCxFXLZSeUGVvrI9ol4o0x26Oikuj8QQ c/aFCV0tQXJMgdmx2bOR2MIB/wFG2PDOBax4W0rFvOzD7mw41KzVgKAn5p2V+mXibU ONdB0wtmjqmA8LyoMEPsL839AcxvuemQXTgcMuEUX7ql4yAgyJ6pUDTc72xOpVxkFI JRTze+sz99w2x1Lfm9KINIOCGV1alx3u0tR3xgFy4pW5EOsu1OziriEuu/x6pTrGyS /BTurvNg1HbI2Vrx6UPaHbVkXg4E6L8h2arfqvA2HP/pAmQ+G1mPSDqhHtlgZS5IhK h3/MMzfaNgkhg== Date: Fri, 21 Oct 2022 14:18:38 -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 3/5] compiler-gcc: remove attribute support check for `__no_sanitize_thread__` Message-ID: References: <20221021115956.9947-1-ojeda@kernel.org> <20221021115956.9947-3-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221021115956.9947-3-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:54PM +0200, Miguel Ojeda wrote: > 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 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 > -- > 2.38.1 > >