Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp574535ybg; Wed, 23 Oct 2019 02:32:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxW/x6CqnAN0Lbmd4QaHeRvn5aT+xryXlqxt3dEBrq0QCnZGuMyQ7vIknuc5GLienkp7INt X-Received: by 2002:a50:b685:: with SMTP id d5mr14405343ede.276.1571823164422; Wed, 23 Oct 2019 02:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571823164; cv=none; d=google.com; s=arc-20160816; b=BtGe6FPSdHfsyVEi9zIgPJ/df0s74DvmrJR6igv1N14wJtSnEtHmaZvzwtaRYKeLwv 8k7yBSldfe71Xqk540++WH1rAvIfe70FMsWEVqU6lh/UyO7cm6XJFLcyTIZ6UDRBncJZ PDvCastNpZYQhtzL7MUo4mK0thKlqxQyT4nf32DrkNAENDy65Vb2Eeyhq8DXa/8HXUG8 694GTYneC7ihTFZDBJfPYFYIl8EZFbIhkuDaYr8z6CDVw6jq6xiOGEZuF0eti312vDow 9Wtu2wOBXM3rP8QBfcfV4sUr61qMUq5nV6QamkiSbXycVWTghjWHnh5OOXfUbWXxUdyp Ljkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=/KVRSTljshgVvcNEmjjaFjW6DhtpeuYQ12wwX/o8tKU=; b=BkWlltJDvXISFTIR8z1FYXPlElPwwlg761tyvsiREzN4BsbUGKNqbx8suLAjR6LIoH 4kjE+718fF0lT9cP9kq4OA2/+Xq0yyIQLbXD9O8NLWFnQ2oVvJYMMLYxYYmr2nPHWEwD 5BP8PrkSjPlJWFzlwDuylySuAGPZ0l8xRGJ3aDj9/fXhPfWqlwiXMQI4MRErANyylyVr ePg9gcdu5UtSIv+Aobb5LSJpSr+XGhGR4qwNDVa7TPxGm9KBMJ1vbpoZdiL2QHvUgN+s VuEEd+GnA3/bFux2QkjurSNLen6bMwP9kXJhIcLaV/X2MOeU3KR/bAzOTQkFyT4cpisU saDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mxeGbjHe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gh2si11838199ejb.330.2019.10.23.02.32.20; Wed, 23 Oct 2019 02:32:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mxeGbjHe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404030AbfJWJap (ORCPT + 99 others); Wed, 23 Oct 2019 05:30:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:40714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403790AbfJWJao (ORCPT ); Wed, 23 Oct 2019 05:30:44 -0400 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 2165321929; Wed, 23 Oct 2019 09:30:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571823044; bh=ss5iwOCaTTohO1+h+WanXEa9AqPGBFhd7er3FFF4krg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mxeGbjHegPpv6m01wl7sD2y/NPmPe4vZ6pdqJL2/RyuDRnUZh6FrnqqbInZAv6qgi JigLf8jRNnqoTvEJf9oemgFkcivNpHAI9ROeIWlqb8hA7AmECUqpp1opI/D0LYY6ys ItEUOMC7ou7303Uzev0WZmSn88Wl5ctOHkP/aUBY= 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 , Richard Weinberger , 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 10/12] um: remove unused pxx_offset_proc() and addr_pte() functions Date: Wed, 23 Oct 2019 12:28:59 +0300 Message-Id: <1571822941-29776-11-git-send-email-rppt@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571822941-29776-1-git-send-email-rppt@kernel.org> References: <1571822941-29776-1-git-send-email-rppt@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Rapoport The pxx_offset_proc() and addr_pte() functions are never used. Remove them. Signed-off-by: Mike Rapoport --- 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) { /* -- 2.7.4