Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp929134ybl; Thu, 23 Jan 2020 10:18:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzZXoESHCTMja5bHdHuux5ElArUA9StdPsBkjkq9DJBALFnG1KeSobqSDnzkr6Xg47s3jOR X-Received: by 2002:a9d:d0b:: with SMTP id 11mr12848921oti.287.1579803482248; Thu, 23 Jan 2020 10:18:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579803482; cv=none; d=google.com; s=arc-20160816; b=e/i49khJ/V2yQc+svm6V1JXvBpSlwooVSB+gCJcDToq+6pXmxftNjF8YDfv7TMGc/H DeBiLjZvEyWQZcS36qDu3oJ29IUQQ0Mm2Jc8D0sCTEO2zAGaUV7HMdyG9+l0UQWVybrh bPCAO4u2jUwDL2hdLDusWVBWcMEaPo1TQqCOt37iZwIl64tJnsMYKCJH2aax86KfCFVl FUIaVqmUwDNclYQUj9eheZpXNOQr4DIC6mTe37ohmivee+776drR18GAQaSDkEozh1vh BNM6mmjv1Qb3QQBS5IBkM6tE7fT/Zk5inY7+lYBbjnlZNI1nT5NLXP827xuBaRzmNin4 c7ig== 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:dkim-signature; bh=wA0Wlh+bd+MxRm3pbZVk/Z3ATg06ui/SAg+IeXpD4OE=; b=WbpprPUx5pJjvR53s7DvU+dgXhD006374AfKV7LU+tckKitqE2pVkj5hgo1K18M+gc 6oVRd9m+fnGSRG5u2KzQiSL0pTXGEoGpyxMOfJZGR96BngDPLzaQd/VU0Ugr99zQO8G0 CC/45FO1os5ytxNfR7fbcMUIZuMe2C7sdk99WDFrIfQhUBNK0ZSdiQCOHGhRLXnY37Mg UOoHrzAV9UmTs2AIdNMwAbT0eS1wlJEI55b4dnHvCaBxa9mI3lYMXtbUY6enqgyzzi24 nVKIAKqrS7ssZz6ipkZexMwq4rx+r/fUGrvpWRQqb2PUXvgdX0dBUQf7mvsMuKtaHCi/ +NSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PBWUy2bh; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si176194oia.15.2020.01.23.10.17.49; Thu, 23 Jan 2020 10:18:02 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PBWUy2bh; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728797AbgAWSQs (ORCPT + 99 others); Thu, 23 Jan 2020 13:16:48 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39430 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727278AbgAWSQs (ORCPT ); Thu, 23 Jan 2020 13:16:48 -0500 Received: by mail-wm1-f67.google.com with SMTP id 20so3516798wmj.4 for ; Thu, 23 Jan 2020 10:16:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wA0Wlh+bd+MxRm3pbZVk/Z3ATg06ui/SAg+IeXpD4OE=; b=PBWUy2bhRdikggryP8vrrfs3us8jT66cGBG5UclsBcCOs55TitHn/AqOsbVMM8s+JC YhOdYvXE58Q6IEU7ZHXgZKpOMmV7WED4iplM/r9eq+5r+BebcB2VOxBdoENXeU01abfb ZkMRMxJIhNmHAY8WHyx4PWkAZaB8awa/PNMgaDtlUBogkdXz11wk2V1HG+5o+RETq5eb xHMRXyp+kM2yyzQ7Wmrcib0v7RW7JlkVN7aBIUfBAZvO9AzJQmVyI8Xy5fLYOO0pDdkW nzHJk80MGXYxaAuVDl8ABfFKdtccGsPVYVlWOaKkQqosxP26SrXZFCunZpEOxNZiAJQn 6rAA== 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=wA0Wlh+bd+MxRm3pbZVk/Z3ATg06ui/SAg+IeXpD4OE=; b=o15Kr2uNR4nj8ZC5fZsQlZYwbPN8DBKOBEw53hXdaRJt9YCq51XNcDKkf5gWTzoGuN lFyR/RmB+Tpra7KcLaprKoS7RMxIVP9vnioWxnrs2loVhUgHNOIkJXXKveU9VkTYTEAe GjYY+yCk3dgAImtxMyyZUjZUsd6lhthDrFn4wAJR50/nWYP3q2ekTg3+8Y6ii5EVnwBU hpMIcBInlbh2xsz0tzHGtN5J+pGuW8LOp71JXigno8xiIS5oYSbDtjA0Or0KJgHVcl/F uoO3887gTXK3qCur+91b00AM8EtMOer264R2u1JymYN9QSf54RrIUYFJ8OeqvsbBsd+Q EQxg== X-Gm-Message-State: APjAAAUKEW0HSV1q0n6Ccv7Z1cUwibXs/qdqYUeJl/9bhzZ+Xpk7aqnL N49nId3wES8gBNAeFd7TST+GoL2t3AYcFh5giA4= X-Received: by 2002:a7b:cfc2:: with SMTP id f2mr5207959wmm.44.1579803406444; Thu, 23 Jan 2020 10:16:46 -0800 (PST) MIME-Version: 1.0 References: <20200123154706.5831-1-daniel.baluta@oss.nxp.com> <20200123175658.GB1796501@kroah.com> In-Reply-To: <20200123175658.GB1796501@kroah.com> From: Daniel Baluta Date: Thu, 23 Jan 2020 20:16:35 +0200 Message-ID: Subject: Re: [PATCH] lib: devres: Export devm_ioremap_resource_wc To: "gregkh@linuxfoundation.org" Cc: "Daniel Baluta (OSS)" , "bgolaszewski@baylibre.com" , "arnd@arndb.de" , "akpm@linux-foundation.org" , "info@metux.net" , "ztuowen@gmail.com" , "sergei.shtylyov@cogentembedded.com" , "linux-kernel@vger.kernel.org" , Daniel Baluta 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 On Thu, Jan 23, 2020 at 7:57 PM gregkh@linuxfoundation.org wrote: > > On Thu, Jan 23, 2020 at 03:47:21PM +0000, Daniel Baluta (OSS) wrote: > > From: Daniel Baluta > > > > So that modules can also use it. > > > > Fixes: b873af620e58863b ("lib: devres: provide devm_ioremap_resource_wc()") > > Signed-off-by: Daniel Baluta > > --- > > lib/devres.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/lib/devres.c b/lib/devres.c > > index 6ef51f159c54..7fe2bd75dfa3 100644 > > --- a/lib/devres.c > > +++ b/lib/devres.c > > @@ -182,6 +182,7 @@ void __iomem *devm_ioremap_resource_wc(struct device *dev, > > { > > return __devm_ioremap_resource(dev, res, DEVM_IOREMAP_WC); > > } > > +EXPORT_SYMBOL(devm_ioremap_resource_wc); > > EXPORT_SYMBOL_GPL() perhaps? > > What in-tree driver needs this? I was experimenting with an out of tree driver and I also was using it wrong :D. Indeed looks like there is no real potential user so far in the kernel tree. Perhaps: drivers/net/ethernet/amazon/ena/ena_netdev.c Also, I chose EXPORT_SYMBOL because the same way its cousin devm_ioremap_resource. Daniel.