Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1891490pxb; Fri, 10 Sep 2021 17:15:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCvdilqs0YeE3wufqIq4VaeS5+76eAh1Z4aGg6NrQImJVPXfbnGuIOdOMCcP+urM5ec06p X-Received: by 2002:a17:906:6dc1:: with SMTP id j1mr243203ejt.324.1631319350217; Fri, 10 Sep 2021 17:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631319350; cv=none; d=google.com; s=arc-20160816; b=Umqdk+Lj+To5EiTfDu2vZUpewkP3LJT5NOA3t4Df4L0wemxWKIh8cWQpq+QD6miUZf LJao79wCVyhjOrt13u9io9CC5w5h2Oof1mYN7/1GpKO3ZelRdK1oaVhVuuOqrb3NXxme Yruyh1FXVvAoaKlE+CM3fSCupJTgzOsX0z7ou4PacVkEdszd1UW7+7TL/GrDNVFZk7eD vN8f+hG5+sr8gz8qa8xUFPvqqADx7lcv5jpKpw2BRCqFuxGZctTOFwG+0j1/Zjfh4vzM +ShKGmM8/Yi8KH53VOa8/HLL2RaoVDXwZ42xSSJFGI4IjkIy3zwxXvzLvOeIppMOPL4r PzVQ== 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=Gc+zefWB7Xj2M7ZhQjT4u6FNHIxSXYXiqkE7iTfXbow=; b=n5LcUXldhBTZRCyTW9OW5WWG82H8aBd5HdNes0lYWEomfMNd73FNERaMaVUFHl756x jeOokbFsthOfSs1TNP5rv3GauRF68r2GEmOlmmMm8xOZj53sgXb0bwCq2OEK8ECzkhBr CCphc5ZbZJ6rLqEGHyF1VXeyk3MK9+bUxIdDAmqCFMedmj6F/mxqVGtvWz3Kv/qe/18l fwQzVT0p7mdnjY5isSo3DxmpOmrnGsgJO3cihNFmsI9TvI8WnkUk4F7moUg55j1VXHSU FlIMd47XeOZU2ozEA8m72n7jzKFdtTxvMweoXBAcbpZQr1J0WoK/7IJyUh2GCcqc0lHP k33w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rvvVA7Wp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si139167edw.207.2021.09.10.17.15.26; Fri, 10 Sep 2021 17:15:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rvvVA7Wp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234939AbhIKAN7 (ORCPT + 99 others); Fri, 10 Sep 2021 20:13:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:49244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233946AbhIKAN7 (ORCPT ); Fri, 10 Sep 2021 20:13:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8CCB461208; Sat, 11 Sep 2021 00:12:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631319167; bh=of31m9USNn0F2OSpITeIKlXCg0CVdcBvK/Ub7sxEVOM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rvvVA7WpLkJ9+3PWT3MoKPBT3rK+UWXq7C8BK2yCLPe8gIKWIFHgbjw5xwobYOE89 IhLz8d5pchiWZskoW+0rmfTh28tm8F8K3iCiZLiIWWwDXdmrvaireKTEXoXx1sQAkX 2Bn0LtAxwJgm6GwWPtSeUN8xEVkL66sGgwtkkskIaWQkB0O/LhvM1Jiv5Xd4UGgFKt sIUVvgtNBxx4L36cn1ls/81+i/fIj8w0cH6K5sgafwgbI2dyZNkQ0/qbQdfe/uWLo9 tjWwuZJeYaodPt94l/FM9H6B7500LmZC3e0to8apC+908Yz4xBUzCoXjI7WtdYNX/c QKh0Gr7K79WGw== Date: Fri, 10 Sep 2021 17:12:42 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: Andrew Morton , Linus Torvalds , Rasmus Villemoes , Masahiro Yamada , Joe Perches , Arnd Bergmann , Stephen Rothwell , llvm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/10] compiler-gcc.h: drop checks for older GCC versions Message-ID: References: <20210910234047.1019925-1-ndesaulniers@google.com> <20210910234047.1019925-10-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210910234047.1019925-10-ndesaulniers@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 10, 2021 at 04:40:46PM -0700, Nick Desaulniers wrote: > Now that GCC 5.1 is the minimally supported default, drop the values we > don't use. > > Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor > --- > include/linux/compiler-gcc.h | 4 +--- > tools/include/linux/compiler-gcc.h | 4 +--- > 2 files changed, 2 insertions(+), 6 deletions(-) > > diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h > index 3f7f6fa0e051..fd82ce169ce9 100644 > --- a/include/linux/compiler-gcc.h > +++ b/include/linux/compiler-gcc.h > @@ -98,10 +98,8 @@ > > #if GCC_VERSION >= 70000 > #define KASAN_ABI_VERSION 5 > -#elif GCC_VERSION >= 50000 > +#else > #define KASAN_ABI_VERSION 4 > -#elif GCC_VERSION >= 40902 > -#define KASAN_ABI_VERSION 3 > #endif > > #if __has_attribute(__no_sanitize_address__) > diff --git a/tools/include/linux/compiler-gcc.h b/tools/include/linux/compiler-gcc.h > index a590a1dfafd9..43d9a46d36f0 100644 > --- a/tools/include/linux/compiler-gcc.h > +++ b/tools/include/linux/compiler-gcc.h > @@ -16,9 +16,7 @@ > # define __fallthrough __attribute__ ((fallthrough)) > #endif > > -#if GCC_VERSION >= 40300 > -# define __compiletime_error(message) __attribute__((error(message))) > -#endif /* GCC_VERSION >= 40300 */ > +#define __compiletime_error(message) __attribute__((error(message))) > > /* &a[0] degrades to a pointer: a different type from an array */ > #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0])) > -- > 2.33.0.309.g3052b89438-goog > >