Message ID | 20170714043052.GA27345@embeddedgus (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D423860212 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 14 Jul 2017 04:31:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBDCE28748 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 14 Jul 2017 04:31:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C051028756; Fri, 14 Jul 2017 04:31:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A3E4A28748 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 14 Jul 2017 04:31:39 +0000 (UTC) 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:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1PbPnBJUJTfH1IEn4TqPDbi6fuo2xyP/LzKw5DUoWDY=; b=jMEt8cMrC4wEFN qOmm6BgadrzoT4Ohqkoiae2kCAAEExN1ke7hDdpnu3M/r8TZZ9xHBCAZwHh47n6ApVOfyyBDAf71E cMUzZ9tgHY7/SUUYo1weK9e70cMwJ0MVzG5asSyd9VBHK+YZSvW16Lcbjr4EfP8BT4V28Frl8yK3N MYF8WsHaX940pma4ArH7TAk3CQ4yHoSG3yqMdwQoTJGUVxhcdtPQSlweUHhX6lapoW/Gg4SGKIzo3 E9JRs2j4gnjrFViPlZVVZbI41kMFkbccNnf7bVoheDrc1NoM75gsy01l1splRzkyaURDycrPiOI9i asES8TjhGcFZJsMF91sw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dVsGO-0003hN-TQ; Fri, 14 Jul 2017 04:31:36 +0000 Received: from gateway34.websitewelcome.com ([192.185.148.196]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dVsGL-0003fK-OW for linux-arm-kernel@lists.infradead.org; Fri, 14 Jul 2017 04:31:35 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway34.websitewelcome.com (Postfix) with ESMTP id E37C1188E2 for <linux-arm-kernel@lists.infradead.org>; Thu, 13 Jul 2017 23:30:53 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id VsFIdpe6jUWWCVsFIdJuyh; Thu, 13 Jul 2017 23:30:28 -0500 Received: from [189.152.152.176] (port=48578 helo=embeddedgus) by gator4166.hostgator.com with esmtpa (Exim 4.87) (envelope-from <garsilva@embeddedor.com>) id 1dVsFh-003ljC-KB; Thu, 13 Jul 2017 23:30:53 -0500 Date: Thu, 13 Jul 2017 23:30:52 -0500 From: "Gustavo A. R. Silva" <garsilva@embeddedor.com> To: Russell King <linux@armlinux.org.uk> Subject: [PATCH] ARM: mm: iomap: use is_vmalloc_addr Message-ID: <20170714043052.GA27345@embeddedgus> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - lists.infradead.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.152.152.176 X-Exim-ID: 1dVsFh-003ljC-KB X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedgus) [189.152.152.176]:48578 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 2 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170713_213133_883273_1E4F6B2D X-CRM114-Status: UNSURE ( 6.61 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/mm/iomap.c b/arch/arm/mm/iomap.c index 4614208..4bf5457 100644 --- a/arch/arm/mm/iomap.c +++ b/arch/arm/mm/iomap.c @@ -34,8 +34,7 @@ EXPORT_SYMBOL(pcibios_min_mem); void pci_iounmap(struct pci_dev *dev, void __iomem *addr) { - if ((unsigned long)addr >= VMALLOC_START && - (unsigned long)addr < VMALLOC_END) + if (is_vmalloc_addr(addr)) iounmap(addr); } EXPORT_SYMBOL(pci_iounmap);
Instead of manually checking the bounds of VMALLOC_START and VMALLOC_END, use is_vmalloc_addr. Such function was specifically designed for that purpose. Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> --- arch/arm/mm/iomap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)