From: Mike Rapoport Subject: [PATCH 05/12] m68k/mm/motorola: move comment about page table allocation funcitons Date: Tue, 12 May 2020 21:44:15 +0300 Message-ID: <20200512184422.12418-6-rppt@kernel.org> References: <20200512184422.12418-1-rppt@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6WxEVL9kN7pCQ/Q0Y0gWtuj87VXv/dwsNB1eNpz7XRc=; b=cQNnLnE0pCD5gG qB+pgWgSiIB2v4HxbQdxsqqEDeJXeyv7Oi60bvioVrfYlg94FF/V99eqwH6yqkWeTdCfybOapWSZc O5JYiUhC+lEVuTFS/7c4grUrVhNLFJZT3HVRp1dxFSZwKGHgYamMb0i2BF9A8d3g5hURDa++tR4Pw DZCrFvYhS5midGAQW4JQwjE1DLwfqUW1kEqN78xIfZDfpKIh7J7w3Tqsbqi8GciTwEUH8P1qcAH1w 61wInUEF1TTi/nZ+ris5gC5+b9Zjf8n3fFCBMKeYX7rbFgzu7GHo4TTmvpoGramWWQnpmki/qCDpo 2I8X5TUNlCI5xzo1HfdQ==; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589309163; bh=atmnGCDoPk5y69B76HVx6bX3NRhp438vfpo6E2XojpU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QwfBouFsLRnlT2Sr0gTs8+RR8GI46zlRZcArZa598W3Uy1zK3eMrdG5MuObjTaeaa bmhU294WnwEVHg416fZA1TDU1TnGHodrvpucPLyNv0juuc+e7KsRaI9L4NL1IvKO4M m9kbRsjsEnI7m4NXHJxzZ7cZ79o0LcODoZOrkQjY= In-Reply-To: <20200512184422.12418-1-rppt@kernel.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+gla-linux-snps-arc=m.gmane-mx.org@lists.infradead.org To: linux-kernel@vger.kernel.org Cc: Rich Felker , linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Catalin Marinas , Heiko Carstens , Max Filippov , Guo Ren , linux-csky@vger.kernel.org, sparclinux@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-riscv@lists.infradead.org, Vincent Chen , Will Deacon , Greg Ungerer , linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, linux-c6x-dev@linux-c6x.org, Brian Cain , Michael Ellerman , Helge Deller , x86@kernel.org, Russell King , Ley Foon Tan , Mike Rapoport , Ingo Molnar , Geert Uytterhoeven , linux-parisc@vger.kernel.org, M From: Mike Rapoport The comment about page table allocation functions resides in include/asm/motorola_pgtable.h while the functions live in include/asm/motorola_pgaloc.h. Move the comment close to the code. Signed-off-by: Mike Rapoport --- arch/m68k/include/asm/motorola_pgalloc.h | 6 ++++++ arch/m68k/include/asm/motorola_pgtable.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/m68k/include/asm/motorola_pgalloc.h b/arch/m68k/include/asm/motorola_pgalloc.h index c66e42917912..f3cb453a07b7 100644 --- a/arch/m68k/include/asm/motorola_pgalloc.h +++ b/arch/m68k/include/asm/motorola_pgalloc.h @@ -18,6 +18,12 @@ extern void init_pointer_table(void *table, int type); extern void *get_pointer_table(int type); extern int free_pointer_table(void *table, int type); +/* + * Allocate and free page tables. The xxx_kernel() versions are + * used to allocate a kernel page table - this turns on ASN bits + * if any. + */ + static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm) { return get_pointer_table(TABLE_PTE); diff --git a/arch/m68k/include/asm/motorola_pgtable.h b/arch/m68k/include/asm/motorola_pgtable.h index 48f19f0ab1e7..9e5a3de21e15 100644 --- a/arch/m68k/include/asm/motorola_pgtable.h +++ b/arch/m68k/include/asm/motorola_pgtable.h @@ -227,12 +227,6 @@ static inline pte_t *pte_offset_kernel(pmd_t *pmdp, unsigned long address) #define pte_offset_map(pmdp,address) ((pte_t *)__pmd_page(*pmdp) + (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))) #define pte_unmap(pte) ((void)0) -/* - * Allocate and free page tables. The xxx_kernel() versions are - * used to allocate a kernel page table - this turns on ASN bits - * if any. - */ - /* Prior to calling these routines, the page should have been flushed * from both the cache and ATC, or the CPU might not notice that the * cache setting for the page has been changed. -jskov -- 2.26.1