Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3292211rwi; Fri, 21 Oct 2022 14:23:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46q1Mrp0h6UEXpp5fZnyYfX3CjSoHcrmRW6Z9HqEchGYc4/W/N9zMcgXd/xbtkzPVyxzfR X-Received: by 2002:a17:906:4795:b0:794:8b93:2e33 with SMTP id cw21-20020a170906479500b007948b932e33mr12012263ejc.265.1666387395142; Fri, 21 Oct 2022 14:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666387395; cv=none; d=google.com; s=arc-20160816; b=gapjXEW7rCEK5GrfzwahYldKNAvdSw9uz9bLiSypCEfTla+3Q0gZTB3M4DiagTNMjj oKLOxOOnxYDiVYcjVk+1iZJTJ3rvo9bcASi49sY4pRZ49xq3Vui7lIydwYapRPrEeJCY 6RQXaqgp/ct/iu13yeVr2nl17toZJlF9/c4/oXoMINhh0oXuRYXGoL0+AT/nFHVqdxki tWKMME2E6aDizK/wGzujoshAEUpd92LyAhJTMCLtoNJS9Dq5wfF+tgOgVd4LCqCJPqQG YnHBxzWvaAoD1fRO12v2AT6i7TqMeWSXqGon79+9EqbviB2/TCz7wJcEKxl6wPDaZF4C b8Zg== 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=43faYfK4AcdV0zV4h+uAnVoGQKyS2BlluV56G9ujMLY=; b=WV+DPM1wJY0CZC3a6Td93Nx6GEylN+3GnK7FRUJlfZZtdjHSRaJY1/SueqCguSOaiZ jnQuK8B0RHxp+4S4EqhcF3lAMM+IbCVUfVS5sRI1ZYSaKSNbbxVAWecIiHCH+nxfbmdb PmehI+6qGdndymR4gcN8wrSV8+Kw9BFp3b5eUelXM32JLF3fn/3CB0i9UQLvcMpoyour zG0zQo93BhenRudtOQZ4XvBgqckxzn9CaWdra5YCS1xyVHV896C7vFkZYA+oGtvSNfFU AvZ6t99jZafepWCe0mMs6PV+9I1kfCeNA92N4kJ5+AYd+vBcPCwfbF+mX7lBwef3wrvw Q+Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dXZQxGO6; 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 i31-20020a0564020f1f00b004603a95e1d3si5367412eda.135.2022.10.21.14.22.49; Fri, 21 Oct 2022 14:23:15 -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=dXZQxGO6; 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 S229849AbiJUVUR (ORCPT + 99 others); Fri, 21 Oct 2022 17:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230316AbiJUVTl (ORCPT ); Fri, 21 Oct 2022 17:19:41 -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 E04AA10A0 for ; Fri, 21 Oct 2022 14:19:20 -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 53C7461F74 for ; Fri, 21 Oct 2022 21:19:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A580C433D6; Fri, 21 Oct 2022 21:19:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666387151; bh=0ym+deWNf8WHQjZMGt7fR33IbFBn/5C/Mfi6MMKG+wY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dXZQxGO6ABpjSB/rCLtr+y4VAvY8vaEJuB0ZbDnqaG32/01ySyCIa4kH882hMG5Wa qv9boYmR/mlmTRp+k3lyGb+jy23gqXkbhQwKgMiopF0bF43btT5RTt8zdsN4UJbHiR PRZr2c4OrUNVwLUZAiK3fxWf9Dakf4ylH/YbIi4eMtnVYYDXe89K84FXHbSF7fPK83 gQbh27vCmB+XPBThhf83cnpwI652JH//w6dzVpT9qriZ6/fZL12UJacAregIXRzIET 6JA3/jh/KHAiks1RXm6SqEuiyQDylnhzzGFnHQcSFq6aLCsyNgP9DRMit5HhskIpPX pWsA6Z3ytfcQg== Date: Fri, 21 Oct 2022 14:19:09 -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 4/5] compiler-gcc: remove attribute support check for `__no_sanitize_undefined__` Message-ID: References: <20221021115956.9947-1-ojeda@kernel.org> <20221021115956.9947-4-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221021115956.9947-4-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:55PM +0200, Miguel Ojeda wrote: > The attribute was added in GCC 4.9, while the minimum GCC version > supported by the kernel is GCC 5.1. > > Therefore, remove the check. > > Link: https://godbolt.org/z/GrMeo6fYr > Signed-off-by: Miguel Ojeda Reviewed-by: Nathan Chancellor > --- > include/linux/compiler-gcc.h | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h > index ba207deb77ca..7f2c2bb73815 100644 > --- a/include/linux/compiler-gcc.h > +++ b/include/linux/compiler-gcc.h > @@ -90,11 +90,7 @@ > #define __no_sanitize_thread > #endif > > -#if __has_attribute(__no_sanitize_undefined__) > #define __no_sanitize_undefined __attribute__((__no_sanitize_undefined__)) > -#else > -#define __no_sanitize_undefined > -#endif > > #if defined(CONFIG_KCOV) && __has_attribute(__no_sanitize_coverage__) > #define __no_sanitize_coverage __attribute__((__no_sanitize_coverage__)) > -- > 2.38.1 > >