From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5A46C49EA4 for ; Mon, 21 Jun 2021 23:42:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 876B0611C1 for ; Mon, 21 Jun 2021 23:42:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232075AbhFUXo2 (ORCPT ); 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 > > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89C7EC48BE5 for ; Mon, 21 Jun 2021 23:43:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5760760FE7 for ; Mon, 21 Jun 2021 23:43:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5760760FE7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HACEpBhh4usfp7Muxl8KuEqEW6tf8M+ZKrzEs0pqwfE=; b=dZjvUrRHr1DygdEN8FtqCU6xqL Iv3uIzNSkOWDkf6T3d49QOm1EIElM9x8MsVCSSHCDrbY8FIyTw/u6uJ6k8xWxxCJHKRq+mg7LMSp0 0MthMw/ZHbIdkhj2YHavymWHvYCIJHaWlaGXK1FtnrRO0kDSAQnXpJcDIqLBmvBajTVIuQDETOjXC UJB6K4dbsVBLUL3a5zqlreSUUCgUYP2lRwGili+h9fCqYdodigwdsN9voqdgjUuqRZFKHuOjSDCvM TgQujoH6mAtIE7RFvGYgEMbg27Ab0NgZ3vAOReZ9Ly9/7q2GlTdgFss9vfOsP8lV+GFVAGkKFb5AD 0rPANnJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvTYX-0059Jc-7T; Mon, 21 Jun 2021 23:42:17 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvTYS-0059HS-IR for linux-arm-kernel@lists.infradead.org; Mon, 21 Jun 2021 23:42:15 +0000 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-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210621_164212_745902_A6598451 X-CRM114-Status: GOOD ( 14.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel