Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4215310pxj; Mon, 21 Jun 2021 16:45:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUwIUi9PZ+YB8v/Y+A5GQlwIDNn/N78L4aoaEH2BbjuCVuvjMEXVyiRxVP3diepJLv6tUW X-Received: by 2002:a17:906:e108:: with SMTP id gj8mr700505ejb.90.1624319141176; Mon, 21 Jun 2021 16:45:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624319141; cv=none; d=google.com; s=arc-20160816; b=wVGxWUTVQ+NeTlHHvDndy01h58idk1r+SHdQqOTKLkvFmbK85fXvodeVBFLNK2TJ+P Vt/QivSVLtCNFv4izwQLd+jNSnoFJML+K9SdV1wwV9JJ23aGAq8q/p5P2/znK6Dzz+lG deo+wSbcpdhAIGys1uDyrgLNeAdNvOKkN1AhpB+srHIlv2MVeUr+4p0ysoTUIp1hk98+ KOD3/vVcyuOuCs6Zevzhx0rkSpIb/906E8J56zhl8FykYpbVzGDZp4YoFc7Sv4NrXKB1 BdTXY33rUYGx3obpMYr6JzEsyvfRVdysXX1AjFAxcdsF4PjjeWrGOST3Mf9mKGIqYCWb 6k9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=uvx/GfAJwNsjuZxyem8Ohxj3lS1zP4+9JG8Rd4G4B/Q=; b=L8KVP1rEh/juG+TU48cRG6ncnTUSO8vaeJBRJGsvpSull7Hhg35w6OFbHuoHDJxDCB zcpnJVHm5uT1xEM2dkn5oHNHWUMXreLcOPVPa/m+fua5oZcJhmi7lqfxL20GNdzI+FPE 9IazpIjd1pV6KomMbiTwBsE0vN7i+1X86HByfV0kMPepx+8UF1EyAYkVwN38Y2xP1sWq bcZnuK7xqV1mAdNxsvl3ax42LuwyQ97GBW+KBVA4N1MxZi7q6Z8wd+AC2Y3c0XZYIJUL rKiEfKpoCtkNpO4Nf19LYrKPjvdoF2ayTKLrJ/7PQtIMKcFd5iP4+Z6oph1lrgP2RLV9 J6Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="e/XBiSb7"; 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 x1si1476020edd.279.2021.06.21.16.45.17; Mon, 21 Jun 2021 16:45:41 -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="e/XBiSb7"; 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 S231975AbhFUXo2 (ORCPT + 99 others); Mon, 21 Jun 2021 19:44:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:39678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231268AbhFUXo1 (ORCPT ); Mon, 21 Jun 2021 19:44:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EB77E611BD; Mon, 21 Jun 2021 23:42:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624318932; bh=DvDLPnl1T2QLDOKnX2hy+Vza+bRnQ7CiMwP0kyUwRkA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=e/XBiSb7nbvYw6tmWEfExCE2S4NXYz0QkQqOO91wmZOXqeyoLebODJvSnzdo39vbA jE0i8gPiQL8omNOvog2a/xIkMZ7aG2X5EMY8JnHkBjW0kAIp1T7ZtMohnT+VH/k6OI 8v35NgOnTDWaN3PSLLLGVd/csN3MRV5BjtxxMO9g1KhrPI5uQVDhvmpE7vRTzhR13K ISU6RIX9/sSloKt0j5/6RzbmMboGUtvtMfAF85E2dvzGkygkQYUVU4p2veIvjUnaF2 LDuB/b7YN1Lo6BSqKOGb1ebLu0fvdBkQiy8hptNrZk9erfG3FJNluUhzkgv+pJljQp lfHFjU71LCNUQ== Subject: Re: [PATCH v2 2/3] compiler_attributes.h: cleanups for GCC 4.9+ To: Nick Desaulniers , Kees Cook Cc: Peter Zijlstra , Bill Wendling , Sami Tolvanen , Peter Oberparleiter , Masahiro Yamada , Miguel Ojeda , Luc Van Oostenryck , Ard Biesheuvel , Will Deacon , Arnd Bergmann , Andrew Morton , Rasmus Villemoes , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, x86@kernel.org, Borislav Petkov , Martin Liska , Marco Elver , Jonathan Corbet , Fangrui Song , linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org, Dmitry Vyukov , johannes.berg@intel.com, linux-toolchains@vger.kernel.org, Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Miguel Ojeda References: <20210621231822.2848305-1-ndesaulniers@google.com> <20210621231822.2848305-3-ndesaulniers@google.com> From: Nathan Chancellor Message-ID: Date: Mon, 21 Jun 2021 16:42:09 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210621231822.2848305-3-ndesaulniers@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/21/2021 4:18 PM, 'Nick Desaulniers' via Clang Built Linux wrote: > Since > commit 6ec4476ac825 ("Raise gcc version requirement to 4.9") > we no longer support building the kernel with GCC 4.8; drop the > preprocess checks for __GNUC_MINOR__ version. It's implied that if > __GNUC_MAJOR__ is 4, then the only supported version of __GNUC_MINOR__ > left is 9. > > Cc: Miguel Ojeda > Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor > --- > include/linux/compiler_attributes.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h > index 225511b17223..84b1c970acb3 100644 > --- a/include/linux/compiler_attributes.h > +++ b/include/linux/compiler_attributes.h > @@ -27,7 +27,7 @@ > */ > #ifndef __has_attribute > # define __has_attribute(x) __GCC4_has_attribute_##x > -# define __GCC4_has_attribute___assume_aligned__ (__GNUC_MINOR__ >= 9) > +# define __GCC4_has_attribute___assume_aligned__ 1 > # define __GCC4_has_attribute___copy__ 0 > # define __GCC4_has_attribute___designated_init__ 0 > # define __GCC4_has_attribute___externally_visible__ 1 > @@ -35,8 +35,8 @@ > # define __GCC4_has_attribute___noclone__ 1 > # define __GCC4_has_attribute___no_profile_instrument_function__ 0 > # define __GCC4_has_attribute___nonstring__ 0 > -# define __GCC4_has_attribute___no_sanitize_address__ (__GNUC_MINOR__ >= 8) > -# define __GCC4_has_attribute___no_sanitize_undefined__ (__GNUC_MINOR__ >= 9) > +# define __GCC4_has_attribute___no_sanitize_address__ 1 > +# define __GCC4_has_attribute___no_sanitize_undefined__ 1 > # define __GCC4_has_attribute___fallthrough__ 0 > #endif > >