Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2813100rwi; Fri, 21 Oct 2022 08:12:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ucmTbC3C+De4pMR0x/lEngrId0V6D2ogCtJDxsaCac1Xcj2n7ku4xJyQUhMCF5wW7SnW+ X-Received: by 2002:a17:90b:1c8d:b0:203:cc25:4eb5 with SMTP id oo13-20020a17090b1c8d00b00203cc254eb5mr22803101pjb.132.1666365137880; Fri, 21 Oct 2022 08:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666365137; cv=none; d=google.com; s=arc-20160816; b=M3l972zFtuDob9mDEzdj9jRUEt77HRfqUiDriFu5M6Ow3AIFOSzxJz258eW3dzreSN lGb7Ex96NrtM1uxGdh+GPEpiA56TvPC5JoulIwA9dwI7+jhBk2gc4sBXzh8B7zjXclrb 5MJ2do3nFwwZlXjVerktYG5DRvfGXGyqXWhPGZU7lBuDyB8i04l4L+JaMzrtP2Q+WEn8 ogrNLt0h70Shap8AcPptUS/Su3rULGu806KStZB18CSCXvie8U1xgyCBg0aVmjoXxddF eItmeoVXkpZMfoMspMd3egprXkwTnXPtG8U8E6SehIjo8ezpZFnmDETHIwg479RofsEV JpWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MXszQBjZ98W1JNjl7z/CBVn21I8z5KCWI0YYK8AF+nY=; b=f9TpyHkXy5ROODQyJJ15sJPOsnuBLCrtVlB5Ued57vHGYZpKjfbiWEgs55MxGHrRoV q0QjeQOxVHti3OyLs0rQag2DvvwP4ZN1poiWmFN0+sa+cBKQSs0fC8wTeu5Mi8RYzASA fjGtUN8yrSdmg4qS6h+ERd/dObwvtrh94zar977pcYQr6am6n/0Csq6DMdn6kKiSG5dQ dgYK9kTwnXqtSxT9oOh2apPTB5C0A2r6tiled9eMZfTS6vymG4G4HemdgCeYG5g5P6o0 mKxb4mJlnj+ImnUsSUuy8mq0P3nhQ1lZkIN3U2cSQygErVaLCHNGCLFJ7CmCEB93rnJn LjXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bXIrDbN3; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mq11-20020a17090b380b00b0020a7e0138d2si8206038pjb.50.2022.10.21.08.12.02; Fri, 21 Oct 2022 08:12: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=@google.com header.s=20210112 header.b=bXIrDbN3; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229728AbiJUO4k (ORCPT + 99 others); Fri, 21 Oct 2022 10:56:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiJUO4h (ORCPT ); Fri, 21 Oct 2022 10:56:37 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 080B8230A97 for ; Fri, 21 Oct 2022 07:56:35 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id l145so3717318ybl.0 for ; Fri, 21 Oct 2022 07:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MXszQBjZ98W1JNjl7z/CBVn21I8z5KCWI0YYK8AF+nY=; b=bXIrDbN3pFGsi0/VbTuqtGrpylburRM87bqjUFvrV+L6k6rbOrKzys6SfHq7BqpXun R7Uw5dLtiQshT8+7iHdmhQUbsXH1WRshh3XauTBdlHa41yrRPAfdo8/WPOnJzJLUXdtI SXoqjpdZTPLd8Hlbc5s30YVLXqcmd/QcSiQIkEnJu5uRJOOzH0tkdFEuQePNdlEZP+ZU IPrHzrRgdpoS+VW9mB5n/nmnVRaZCsR16aYLGSGL2Q8HmH2O66Z+wsrf0FHMWQsqCGfI md15SU4X3IZ76IY9rbDpAM2Lit2za2JJ62nCKp73W3KIaqUyNLhp0O133Zui1YZRjg6J I6lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MXszQBjZ98W1JNjl7z/CBVn21I8z5KCWI0YYK8AF+nY=; b=YmreDwgXscuEOVPp2kuLSvWV2OSqhfxFmQ/xR0igX/OGi64xhEgneGKmxLEBOGTUeS t7tT27Y+Al1O/6if0lkb86vDKFejuIcA8Kmmpe0ProsOf2Jv3n9casUQ4OV5zlM5Aekr yptcGNXU0Qjt9OxrACjjN6bxovQuS9nzAfhQmkPMqYkqhqJieS3sCjXEU2mEuATCtK9W vTlhRQ88PyPFsPj8uVnAvaz6zMyjj2H0cHiM85rszwYhhLLnBAe6FcLurbHjN87Zzg9i qKg5jnUkXn+SkLe2IyrIVpgaiAoOxSWsUbturPVWHtAELlr3Xma6Bc3eE+9J/vznhh2z 0wvA== X-Gm-Message-State: ACrzQf1T4vPmRm/ZaRNthhSNnJnrCzBEbQWeSQA3QZFgi5mrPOq6rDat IF53hxxCwmlX8NTUxAQHKVZrPjyGY6qqzcuNIAhwYw== X-Received: by 2002:a05:6902:1542:b0:6ca:675a:fdee with SMTP id r2-20020a056902154200b006ca675afdeemr3590982ybu.125.1666364194126; Fri, 21 Oct 2022 07:56:34 -0700 (PDT) MIME-Version: 1.0 References: <20221021115956.9947-1-ojeda@kernel.org> <20221021115956.9947-3-ojeda@kernel.org> In-Reply-To: <20221021115956.9947-3-ojeda@kernel.org> From: Marco Elver Date: Fri, 21 Oct 2022 07:55:57 -0700 Message-ID: Subject: Re: [PATCH 3/5] compiler-gcc: remove attribute support check for `__no_sanitize_thread__` To: Miguel Ojeda Cc: Andrey Konovalov , Kees Cook , Arnd Bergmann , Andrew Morton , Kumar Kartikeya Dwivedi , Nick Desaulniers , Nathan Chancellor , Uros Bizjak , Dan Li , Alexander Potapenko , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, 21 Oct 2022 at 05:00, 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 Acked-by: Marco Elver > --- > 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 >