Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2440370ybl; Mon, 19 Aug 2019 02:01:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6KWKUxVrenJ0UV7hNbIduJX9BaCMLUCIf6KWXnbcMVfIboTwF84IGwuGw1hr+au90QHXt X-Received: by 2002:a63:1b66:: with SMTP id b38mr7368995pgm.54.1566205306427; Mon, 19 Aug 2019 02:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566205306; cv=none; d=google.com; s=arc-20160816; b=FLGETiUzfUhHok3isl87D6q46QCiYFvFrYMrH/tow26Vob74BzmQP9qp/BPXhznOLF 4AjS1vPbdP4poG0cjArsieNLUiYVYqkSGlw99AadlYOOzqZBNJVaetGz1zNcjBY9+iT5 ZRsJuQVqIc5Kn0SaZ6rp+m/nhjsIK0I6FZusc+RdS/GWOjEVOE+01J1503XxowzsnGxR 6PcDXOnVy55We/SmPlBdBhNBGqZgXbaN+PWTVbDq3Ai3IeF5zk5uW6qT1JG4JguVaQdZ 4VwsU1GYD8RhDe+WS/NeqnzTOLjvyV33U1wtP9ozJi9YpBpna6xqcIZXkPfoCnFBR/FV tDng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=fmtPnJSRI0zndYON4lQ0lxZkTiNZNjENxpxxDRXsGjM=; b=MXj0t0RHlDWTtob2Ssa7keXi2fHrHLM5R0/KzZDJsq12X4VBIplOcOeRAPIyfiIQ6h hVgJcNy6YbSq34P27xam933H0Emwg4nPaKzw7mkq3TV0RzUUKwIC4TmoSMGC01tdOr1i WenD5MdPbhLbWNWuuEZn81MnPai7BD4jC/wE8X92oU6gBHlvTstgv8hRumevXG+mZ0e2 LF9DFw2ujx2Yc9cNQsoNFmiTeZAkZLS5C0meL/JsWw4LCTHcXn4Cl+03ncQdK7YY758d W6w4AfVa7PRIguQBFaKKVSrkGSZGCJgTiivzMhufzcnT6iCXcKTtJEPQZBnUwBj7S+ZP gF6Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b188si10075683pfb.279.2019.08.19.02.01.31; Mon, 19 Aug 2019 02:01:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727341AbfHSJAi (ORCPT + 99 others); Mon, 19 Aug 2019 05:00:38 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38949 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726661AbfHSJAh (ORCPT ); Mon, 19 Aug 2019 05:00:37 -0400 Received: by mail-ot1-f68.google.com with SMTP id b1so984848otp.6; Mon, 19 Aug 2019 02:00:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fmtPnJSRI0zndYON4lQ0lxZkTiNZNjENxpxxDRXsGjM=; b=Twp0IvHs1SbWYDIfvY9lRbdliTRa1qImMneYt75ss1CYps6QV50PsHgukHKgigYMX1 KZ3J/sbnwZC832lbHdqLWAfvDoaU/kWtBqscTiEbVu0o6DdJVP644cin7a/Nfobrcz84 1vuZlFT9/trwJy7zdA9DE6iLrjnnvcmxwhGCmMCEsvF7xHkhkWv3RO5w0tO1JCGF8Kp4 J1BRFGTmc29uYYGueEBkK9dVZ8I+1ovhq8ppJh6rcWTT7jmvaGYyT8bRJR1WFdaCRcng /k74H2C8dCMRlQQRBZmByt5ez4AfFs0ZYvBiVk7xGbXZq31EbMZsUlLO3wuCUJIZ1Y/P KmoA== X-Gm-Message-State: APjAAAUhPPqIh69LSyYj5i+o13f5SldJXKMkwVYioyQG7wmd18VfWF9T HjO6STAyf2Dbstf1AvM1AcsYNSXGoLDQ9R/1aEY= X-Received: by 2002:a9d:68c5:: with SMTP id i5mr17294497oto.250.1566205235743; Mon, 19 Aug 2019 02:00:35 -0700 (PDT) MIME-Version: 1.0 References: <20190817073253.27819-1-hch@lst.de> <20190817073253.27819-19-hch@lst.de> In-Reply-To: <20190817073253.27819-19-hch@lst.de> From: Geert Uytterhoeven Date: Mon, 19 Aug 2019 11:00:24 +0200 Message-ID: Subject: Re: [PATCH 18/26] m68k: rename __iounmap and mark it static To: Christoph Hellwig Cc: Arnd Bergmann , Guo Ren , Michal Simek , Greentime Hu , Vincent Chen , Guan Xuetao , "the arch/x86 maintainers" , alpha , arcml , Linux ARM , "open list:QUALCOMM HEXAGON..." , "linux-ia64@vger.kernel.org" , linux-m68k , linux-mips@vger.kernel.org, nios2-dev@lists.rocketboards.org, Openrisc , Parisc List , linux-riscv@lists.infradead.org, linux-s390 , Linux-sh list , sparclinux , linux-xtensa@linux-xtensa.org, MTD Maling List , Linux-Arch , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On Sat, Aug 17, 2019 at 9:49 AM Christoph Hellwig wrote: > m68k uses __iounmap as the name for an internal helper that is only > used for some CPU types. Mark it static and give it a better name. > > Signed-off-by: Christoph Hellwig Thanks for your patch! > --- a/arch/m68k/mm/kmap.c > +++ b/arch/m68k/mm/kmap.c > @@ -52,6 +52,7 @@ static inline void free_io_area(void *addr) > > #define IO_SIZE (256*1024) > > +static void __free_io_area(void *addr, unsigned long size); > static struct vm_struct *iolist; > > static struct vm_struct *get_io_area(unsigned long size) > @@ -90,7 +91,7 @@ static inline void free_io_area(void *addr) > if (tmp->addr == addr) { > *p = tmp->next; > /* remove gap added in get_io_area() */ > - __iounmap(tmp->addr, tmp->size - IO_SIZE); > + __free_io_area(tmp->addr, tmp->size - IO_SIZE); > kfree(tmp); > return; > } > @@ -249,12 +250,13 @@ void iounmap(void __iomem *addr) > } > EXPORT_SYMBOL(iounmap); > > +#ifndef CPU_M68040_OR_M68060_ONLY Cant you move this block up, to avoid adding more #ifdef cluttery? The rest looks good to me. > /* > - * __iounmap unmaps nearly everything, so be careful > + * __free_io_area unmaps nearly everything, so be careful > * Currently it doesn't free pointer/page tables anymore but this > * wasn't used anyway and might be added later. > */ > -void __iounmap(void *addr, unsigned long size) > +static void __free_io_area(void *addr, unsigned long size) > { > unsigned long virtaddr = (unsigned long)addr; > pgd_t *pgd_dir; > @@ -297,6 +299,7 @@ void __iounmap(void *addr, unsigned long size) > > flush_tlb_all(); > } > +#endif /* CPU_M68040_OR_M68060_ONLY */ > > /* > * Set new cache mode for some kernel address space. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds