From: Nicholas Piggin Date: Fri, 03 Jul 2020 01:19:56 +0000 Subject: [PATCH v2 1/3] powerpc: remove stale calc_vm_prot_bits comment Message-Id: <20200703011958.1166620-2-npiggin@gmail.com> List-Id: References: <20200703011958.1166620-1-npiggin@gmail.com> In-Reply-To: <20200703011958.1166620-1-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linuxppc-dev@lists.ozlabs.org Cc: Nicholas Piggin , kvm-ppc@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org This comment is wrong, we wouldn't use calc_vm_prot_bits here because we are being called by calc_vm_prot_bits to modify its behaviour. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/mman.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/powerpc/include/asm/mman.h b/arch/powerpc/include/asm/mman.h index d610c2e07b28..4ba303ea27f5 100644 --- a/arch/powerpc/include/asm/mman.h +++ b/arch/powerpc/include/asm/mman.h @@ -13,10 +13,6 @@ #include #include -/* - * This file is included by linux/mman.h, so we can't use cacl_vm_prot_bits() - * here. How important is the optimization? - */ static inline unsigned long arch_calc_vm_prot_bits(unsigned long prot, unsigned long pkey) { -- 2.23.0