From patchwork Tue Nov 5 07:15:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 11227061 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E03D61390 for ; Tue, 5 Nov 2019 07:17:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF0FA21D7F for ; Tue, 5 Nov 2019 07:17:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572938251; bh=wZAI463nkQMXnr0r7OISHGkceNVdyUrXS15CSDJgufE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=V8aI2RHuOcNV8fKgGmlBQrbe88N7/OCJvd5SZmeOdpGZz7Zr0tVo/gtPDSHDBqFdn Wpu3buFDxzjzndwcOmQpcIuKfzzOgdvV5pZrCf782DsQgxP2NJH0NxfX8L/RLru+Dh sWTWSpB6SDD0BanQ3jzj0C/ffuqzgA8ftHJiT0AE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387966AbfKEHRb (ORCPT ); Tue, 5 Nov 2019 02:17:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:36892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387715AbfKEHRb (ORCPT ); Tue, 5 Nov 2019 02:17:31 -0500 Received: from aquarius.haifa.ibm.com (nesher1.haifa.il.ibm.com [195.110.40.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C0BE12190F; Tue, 5 Nov 2019 07:17:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572938250; bh=wZAI463nkQMXnr0r7OISHGkceNVdyUrXS15CSDJgufE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MdXdxwSke9uPWH+TUxrr1Up9Jq/ZWIXwimoFcc0eqPDQ0GxadenxOxQMAyB/FyJ1b WNhWFs+Htcc37w/iHJ7w1abfpzpmnP6ejvR8KNeKExt5FjzrAyyBTmwk6WpFCEu4ko EhWRG31UG0vhlqDboTgOSevDK1rMwu1iCdLWfV0U= From: Mike Rapoport To: linux-mm@kvack.org Cc: Andrew Morton , Anton Ivanov , Arnd Bergmann , "David S. Miller" , Geert Uytterhoeven , Greentime Hu , Greg Ungerer , Helge Deller , "James E.J. Bottomley" , Jeff Dike , "Kirill A. Shutemov" , Linus Torvalds , Mark Salter , Matt Turner , Michal Simek , Peter Rosin , Richard Weinberger , Rolf Eike Beer , Russell King , Sam Creasey , Vincent Chen , Vineet Gupta , Mike Rapoport , linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-parisc@vger.kernel.org, linux-um@lists.infradead.org, sparclinux@vger.kernel.org, Mike Rapoport Subject: [PATCH v4 11/13] um: remove unused pxx_offset_proc() and addr_pte() functions Date: Tue, 5 Nov 2019 09:15:33 +0200 Message-Id: <1572938135-31886-12-git-send-email-rppt@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1572938135-31886-1-git-send-email-rppt@kernel.org> References: <1572938135-31886-1-git-send-email-rppt@kernel.org> Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org From: Mike Rapoport The pxx_offset_proc() and addr_pte() functions are never used. Remove them. Signed-off-by: Mike Rapoport Acked-by: Richard Weinberger --- arch/um/kernel/tlb.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/arch/um/kernel/tlb.c b/arch/um/kernel/tlb.c index b7eaf65..8425a22 100644 --- a/arch/um/kernel/tlb.c +++ b/arch/um/kernel/tlb.c @@ -490,35 +490,6 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long address) force_sig(SIGKILL); } -pgd_t *pgd_offset_proc(struct mm_struct *mm, unsigned long address) -{ - return pgd_offset(mm, address); -} - -pud_t *pud_offset_proc(pgd_t *pgd, unsigned long address) -{ - return pud_offset(pgd, address); -} - -pmd_t *pmd_offset_proc(pud_t *pud, unsigned long address) -{ - return pmd_offset(pud, address); -} - -pte_t *pte_offset_proc(pmd_t *pmd, unsigned long address) -{ - return pte_offset_kernel(pmd, address); -} - -pte_t *addr_pte(struct task_struct *task, unsigned long addr) -{ - pgd_t *pgd = pgd_offset(task->mm, addr); - pud_t *pud = pud_offset(pgd, addr); - pmd_t *pmd = pmd_offset(pud, addr); - - return pte_offset_map(pmd, addr); -} - void flush_tlb_all(void) { /*