Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751888AbdFTNyT (ORCPT ); Tue, 20 Jun 2017 09:54:19 -0400 Received: from foss.arm.com ([217.140.101.70]:39054 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025AbdFTNyS (ORCPT ); Tue, 20 Jun 2017 09:54:18 -0400 Subject: Re: [PATCH] arm64: remove a redundancy in sysreg.h To: Stefan Traby References: <20170620133042.mlqgpx5vddgvoe6k@hello-penguin.com> Cc: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Marc Zyngier Organization: ARM Ltd Message-ID: <6d18962d-5557-1d57-95da-2ae1c437440b@arm.com> Date: Tue, 20 Jun 2017 14:54:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170620133042.mlqgpx5vddgvoe6k@hello-penguin.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1084 Lines: 36 On 20/06/17 14:30, Stefan Traby wrote: > This is really trivial; there is a dup > (1 << 16) in the code > > Signed-off-by: Stefan Traby > --- > arch/arm64/include/asm/sysreg.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h > index 2d3e155b185f..580965129fea 100644 > --- a/arch/arm64/include/asm/sysreg.h > +++ b/arch/arm64/include/asm/sysreg.h > @@ -139,8 +139,8 @@ > #define SCTLR_ELx_M 1 > > #define SCTLR_EL2_RES1 ((1 << 4) | (1 << 5) | (1 << 11) | (1 << 16) | \ > - (1 << 16) | (1 << 18) | (1 << 22) | (1 << 23) | \ > - (1 << 28) | (1 << 29)) > + (1 << 18) | (1 << 22) | (1 << 23) | (1 << 28) | \ > + (1 << 29)) > > #define SCTLR_ELx_FLAGS (SCTLR_ELx_M | SCTLR_ELx_A | SCTLR_ELx_C | \ > SCTLR_ELx_SA | SCTLR_ELx_I) > Acked-by: Marc Zyngier Catalin, Will: do you want to get that through arm64? Alternatively, I get stash it in the KVM tree. Thanks, M. -- Jazz is not dead. It just smells funny...