Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2561256rwi; Fri, 21 Oct 2022 05:26:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5LY2MOCxT4tO9AxNk9/KQB3Zcn95eXJZPez3yU02Liu3UisLPWNkuD5AfMG311WoghrKd+ X-Received: by 2002:aa7:dd57:0:b0:453:2d35:70bb with SMTP id o23-20020aa7dd57000000b004532d3570bbmr17223216edw.26.1666355193500; Fri, 21 Oct 2022 05:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666355193; cv=none; d=google.com; s=arc-20160816; b=PS51Cb27pAnXDksQxxzOV3XnEr0S2emjxuxckOZPzpNPIdgFU4Th10Kn4D6qy8HoHe PLn9k1b9D2CVG0Tz7qbHATVaUEwKMzKn0kEn4zKJyF2QguDRqL/iK/zNejYruuBuBUJf AdzU4nq/YIr+XpkILTxFD8foYu2eTmKsMvmlCgg52docJfUWZGA3mE8qSQ4Ex3OXAoOc dLUvz5oAq6+QBdyVKBCBumCUGbVrlCAd4Vp7W5SR4WEJA78x5EMQxUu3HMXLTJ4lyixU YfFKZLMbzN5ENIaEI/aMWkWKDeF1J/03nUXaq6ue7LqmDxxZ36gBFO1isPbcayJwkzJC RRCw== 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=a9XIqChclOmeQ7vZlCohsxnyI/Vmjxjw2nyGDEHlH9w=; b=Y3rUO486uywb8/tLtn/5uc8uniuwp6cpBtV1Xo1aLnnFXe9Jk6QQXqMU1uYY3cWsGp 34xesS9+0FxcTi9Dm6G03q7w5L3uj8K/CesaI2dwIFfpKfL7+vlOiMqsZ7kAROh5kk/T 3noV08PyIyEx2qUjRE+jCLz7+40cyXEA8MWqG5/cJn0B+i7UxZrm816VNW4FghizWMd4 +QoP94GvmpG3bVS1ebTwWheN6NRpXNiT5TLQnOiYivfaQYTmKG00jeTqmaAUHJPjPtxN dcXo+GtBdN5W35M3rEpLDURC6ze40AbbIyBhqw1h71AwJ0+mhaSTWqyT2PleJqPbuJsb XdhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oLdIZz3l; 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 y19-20020a056402271300b0045d9a3adf19si14675066edd.564.2022.10.21.05.26.07; Fri, 21 Oct 2022 05:26:33 -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=oLdIZz3l; 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 S230201AbiJUMAd (ORCPT + 99 others); Fri, 21 Oct 2022 08:00:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbiJUMA3 (ORCPT ); Fri, 21 Oct 2022 08:00:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBE7E24E42B for ; Fri, 21 Oct 2022 05:00:26 -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 4812361E67 for ; Fri, 21 Oct 2022 12:00:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC641C43470; Fri, 21 Oct 2022 12:00:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666353625; bh=wLiSsLCBvUemVPUmA7PVLvUAvaGVpUx35Yr4C7U15XA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oLdIZz3lKKkdU27FrbVGeSE2xW3GDlfWRHpAsKzY9gP9Jnv7umrhBCq3LbH/H7kf9 uCSueC8OBTd5ZBZU0YrD11bBheye3DDGBljEnh7o8I9LsuEXY8JDAJhhaQE/0GNznI XeqOeVn8rLwPKHUFc7ht/KjgoaTInYvnVYRPTK7yl0FY+8nk4Czzw1axmOioSo8pUv S4bT2Osu8sQaWSk193hDIJlHo71Uit0mZQ1+A+Hoa1Os3yS/3U/9+YkaIdvyc1a39a rU75eLuRQK2T4umxzqtkevP8lKTbVAV4mR7OHfkeqDg3nMM6rwP0asUEk5orrUAqmn jjBlBWx7TpJCw== 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 2/5] compiler-gcc: remove attribute support check for `__no_sanitize_address__` Date: Fri, 21 Oct 2022 13:59:53 +0200 Message-Id: <20221021115956.9947-2-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 4.8, while the minimum GCC version supported by the kernel is GCC 5.1. Therefore, remove the check. Link: https://godbolt.org/z/84v56vcn8 Signed-off-by: Miguel Ojeda --- 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 b9530d3515ac..bfce7f4d0978 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -82,11 +82,7 @@ #define __noscs __attribute__((__no_sanitize__("shadow-call-stack"))) #endif -#if __has_attribute(__no_sanitize_address__) #define __no_sanitize_address __attribute__((__no_sanitize_address__)) -#else -#define __no_sanitize_address -#endif #if defined(__SANITIZE_THREAD__) && __has_attribute(__no_sanitize_thread__) #define __no_sanitize_thread __attribute__((__no_sanitize_thread__)) -- 2.38.1