From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B52A6C433E1 for ; Fri, 21 Aug 2020 05:49:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7FF57204EA for ; Fri, 21 Aug 2020 05:49:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7FF57204EA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=csgroup.eu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 28F2D6B007D; Fri, 21 Aug 2020 01:49:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2636A6B0081; Fri, 21 Aug 2020 01:49:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1A2A76B0082; Fri, 21 Aug 2020 01:49:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0224.hostedemail.com [216.40.44.224]) by kanga.kvack.org (Postfix) with ESMTP id 07E3D6B007D for ; Fri, 21 Aug 2020 01:49:03 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id C090F282B for ; Fri, 21 Aug 2020 05:49:02 +0000 (UTC) X-FDA: 77173497324.24.birds25_33084db27036 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id 933381A4A5 for ; Fri, 21 Aug 2020 05:49:02 +0000 (UTC) X-HE-Tag: birds25_33084db27036 X-Filterd-Recvd-Size: 3510 Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) by imf13.hostedemail.com (Postfix) with ESMTP for ; Fri, 21 Aug 2020 05:49:01 +0000 (UTC) Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4BXrDW3DBnz9vD3p; Fri, 21 Aug 2020 07:48:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id VpnWpAjDVMm5; Fri, 21 Aug 2020 07:48:59 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4BXrDW28hTz9vD3n; Fri, 21 Aug 2020 07:48:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 347958B87B; Fri, 21 Aug 2020 07:49:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id OrIyz0STq1FM; Fri, 21 Aug 2020 07:49:00 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 479D18B75F; Fri, 21 Aug 2020 07:48:59 +0200 (CEST) Subject: Re: [PATCH v5 6/8] mm: Move vmap_range from lib/ioremap.c to mm/vmalloc.c To: Nicholas Piggin , linux-mm@kvack.org, Andrew Morton Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Zefan Li , Jonathan Cameron , linuxppc-dev@lists.ozlabs.org References: <20200821044427.736424-1-npiggin@gmail.com> <20200821044427.736424-7-npiggin@gmail.com> From: Christophe Leroy Message-ID: <75f426b3-fcaf-c8fc-65b8-a6f501bae1da@csgroup.eu> Date: Fri, 21 Aug 2020 07:48:53 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200821044427.736424-7-npiggin@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr X-Rspamd-Queue-Id: 933381A4A5 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Le 21/08/2020 =C3=A0 06:44, Nicholas Piggin a =C3=A9crit=C2=A0: > This is a generic kernel virtual memory mapper, not specific to ioremap= . >=20 > Signed-off-by: Nicholas Piggin > --- > include/linux/vmalloc.h | 2 + > mm/ioremap.c | 192 ---------------------------------------= - > mm/vmalloc.c | 191 +++++++++++++++++++++++++++++++++++++++ > 3 files changed, 193 insertions(+), 192 deletions(-) >=20 > diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h > index 787d77ad7536..e3590e93bfff 100644 > --- a/include/linux/vmalloc.h > +++ b/include/linux/vmalloc.h > @@ -181,6 +181,8 @@ extern struct vm_struct *remove_vm_area(const void = *addr); > extern struct vm_struct *find_vm_area(const void *addr); > =20 > #ifdef CONFIG_MMU > +extern int vmap_range(unsigned long addr, unsigned long end, phys_addr= _t phys_addr, pgprot_t prot, > + unsigned int max_page_shift); extern keyword is useless on function prototypes and deprecated. Please=20 don't add new function prototypes with that keyword. > extern int map_kernel_range_noflush(unsigned long start, unsigned lon= g size, > pgprot_t prot, struct page **pages); > int map_kernel_range(unsigned long start, unsigned long size, pgprot_= t prot, Christophe