Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2579158rwi; Fri, 21 Oct 2022 05:39:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7lbAR5DPGL8OIrwpv+2UfpemXN48fSS+APT+3OS8wbJnXlX3nrpqn9iTmcbBedvVG0bvww X-Received: by 2002:a17:90b:1bcb:b0:20d:75b8:ee64 with SMTP id oa11-20020a17090b1bcb00b0020d75b8ee64mr22137005pjb.162.1666355999149; Fri, 21 Oct 2022 05:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666355999; cv=none; d=google.com; s=arc-20160816; b=RJvKoJmII522Kr2bXu/ar3lb22j3p8rsWKHHG80H+nIS+ERPyxcD+o558FChoBsh/z Nyu/hmG4ymkAOGVSOIk+8dco6p2je3woRgHkpqZuLnpnIZIi1m8m/fTY3KZYEhm5QEz5 UkREjm1VYL9LwhD9GXbh7sWJUuCiFvtrNByv2nhOk8nNtWZsrDO+1nGoozsD4pILz6ZE 2bFCdzbnC00/4n4ZCjw29IBAcNxLkMdnAacCU1sk98HcHS0hW48xbkmA2TSyqqSMSD7Q ggqLxfmyYVWVG0lgZJ7z7qddM683rWmToyEKANfl2QZwUl7vmjIJIpQzXHiIe4RRlgu2 a8QQ== 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=I4P2tE5oWucC8aGI3RZWMoRLHFoWTLfht54HVZDfiB8=; b=J4uaFsns+hdBseJtW/gBU2/vE45buPjZJy7HNEpo4A0QJl5VakWoQ6t+nwAmlt2bkJ asdL90cG2aWc+eDu0JivRSSP8K3R8KTHqyQ9WYh/GAl17t0xCNgMfDjSMCLxohUwLwuL 6bIR20cAQRzUsaiEJjPpOuTj+HtU3AD0BgdZgZTKg/dLgNdyW7/hvEYXgpYHAZrylmXA ehJLwMC/WmQagyYFgkQ3Itj8q6JdgZQJUhOrFJogx5wePzhJlzbpA1GeX2GeBM2p2WJB GcDocUtnhkpLEBvdq8MDhIF+A6JyLHSRRHgEqMc7sGQKxMMUqZzCvlwDFXY63iPxPMJn C4Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lRRUVqO3; 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 n5-20020a63e045000000b004554963e1d2si25977462pgj.172.2022.10.21.05.39.47; Fri, 21 Oct 2022 05:39:59 -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=lRRUVqO3; 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 S229862AbiJUMAq (ORCPT + 99 others); Fri, 21 Oct 2022 08:00:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230226AbiJUMAj (ORCPT ); Fri, 21 Oct 2022 08:00:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CECCC251F6C for ; Fri, 21 Oct 2022 05:00:35 -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 ams.source.kernel.org (Postfix) with ESMTPS id 10A68B82B92 for ; Fri, 21 Oct 2022 12:00:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7330C433C1; Fri, 21 Oct 2022 12:00:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666353632; bh=XzdFROMipXdmkMLqEBVG7r+Qq/ycFDav+ihm+nprFco=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lRRUVqO3E1qBngvZkiPsbDUe43N8i1GrfX46QurdSPQ8voWfgv5owS7cY8PQ85VB/ uAyj13Y3I3p5za42OA6G2hnIOtHOrD3xWSuiwZa0u60g3+pyWDgIYxSIyrVSPXBx/i 1Ew1lwcs6Z7f0zL0Wy5H5SyOWFnoP6VVXEpiePRCxbwB+nPaKhKilN4t0I0IsNh8y9 wIbdTTau6kSZ8p39Hh5vs+Q5FI03DRkAUZLfOP0knGELWSnJY9CDjbGQw7tW3EKD2n kQMmF/IywkBz24C7AADfw6a02EuB83ACvZBXHvryDeeSbrBp64AKTwXXsWt4eLvksJ KY/QwSJ5NttcQ== 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 4/5] compiler-gcc: remove attribute support check for `__no_sanitize_undefined__` Date: Fri, 21 Oct 2022 13:59:55 +0200 Message-Id: <20221021115956.9947-4-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.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 --- 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