Received: by 10.223.176.46 with SMTP id f43csp2180263wra; Sun, 21 Jan 2018 13:17:48 -0800 (PST) X-Google-Smtp-Source: AH8x227oqfcSzRKytjKoQbDTtMZlIEAaU0TOGHzAUXzsje8nWi1C0yXQUhiP9LSxb2G2F3MaJuFf X-Received: by 10.99.55.5 with SMTP id e5mr5313660pga.237.1516569468677; Sun, 21 Jan 2018 13:17:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516569468; cv=none; d=google.com; s=arc-20160816; b=nq/EO14Pjc5sDl8w5Kg31bsFTKjsnjBWPdyJMMAvttcisOgmjSrYMumQhFctfmYaie wCla/yfZvkFB0zh6KxoCB2ew/Dj78NM5RDdLbO34tC1ZnwlLHKjcxYerlGl521rv7vyA v1uzwZidXlmaf4MHkM2e1ofwUH05DDzqsvW1yRff4rDNA+AKI48kYqTa7R19Ig2vQuPt hjuo039x0E9qcItvhF1KkpjKKhIUhmhAPSKJoBHDkLFcffI93NJJg2uRH145zKusoPIx 71m53bfjI8YpcBzyOqud1OjnoHTKGhW4r2U4cZU18IUW4EpVwR1FSu0wz302BB625dQ0 wiGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=lneKkhSM0ZVb5UZaq4qjD/4XjdSZ9bXQMBgWJj3jujE=; b=JE8T63WRmbqznFRCGwm4u1pFT7YDt+F4dNfw4oOKHaLvBoeA/gKj/HmBonSHL1pZtg JePfTkNCJAKRjkN1hevbkLqmEV7gDDKrwb8XtTEDbCub1leejIB1S8zU4VIr21VenU9g 30oTXqGr4poWPkR4zh35R8FUtnrXI1AwOOccEKCB/xhW30YY2HONJ5LiY9ZkiCoLGdZz 9t2SNZS+BxFmymc2n0x07N7bB0jQYNHMygB/GaQ59twQu58m+o/hSrVW3rf2no/3k8YI mWAYCEgw8b+knlR8o696tdZrIAsiXDy9/AdBsIJN4DCGoFHliFbLWG8VPh1rI/PC6FKY cGcw== 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 f29si14051911pfk.117.2018.01.21.13.17.34; Sun, 21 Jan 2018 13:17:48 -0800 (PST) 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 S1751183AbeAUVQH (ORCPT + 99 others); Sun, 21 Jan 2018 16:16:07 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:39738 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047AbeAUVQG (ORCPT ); Sun, 21 Jan 2018 16:16:06 -0500 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23992521AbeAUVQFPNoFG (ORCPT + 1 other); Sun, 21 Jan 2018 22:16:05 +0100 Date: Sun, 21 Jan 2018 22:16:04 +0100 From: Ladislav Michl To: Bjorn Helgaas , Wei Yongjun Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Dmitry Torokhov Subject: [PATCH 3/5] devres: Make devm_ioremap_release() static Message-ID: <20180121211604.GD15151@lenoch> References: <20180121211432.GA15151@lenoch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180121211432.GA15151@lenoch> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org devm_ioremap_release() is an implementation detail and shouldn't be public. Signed-off-by: Ladislav Michl --- include/linux/device.h | 1 - lib/devres.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/device.h b/include/linux/device.h index 91f508edb266..e99d41a6190b 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -734,7 +734,6 @@ void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset, void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res); void devm_iounmap(struct device *dev, void __iomem *addr); -void devm_ioremap_release(struct device *dev, void *res); void *devm_memremap(struct device *dev, resource_size_t offset, size_t size, unsigned long flags); diff --git a/lib/devres.c b/lib/devres.c index f2f80c233aa4..e9aad136f667 100644 --- a/lib/devres.c +++ b/lib/devres.c @@ -5,7 +5,7 @@ #include #include -void devm_ioremap_release(struct device *dev, void *res) +static void devm_ioremap_release(struct device *dev, void *res) { iounmap(*(void __iomem **)res); } -- 2.15.1