Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1464199

Re: [PATCH v1] power: reset: reboot mode: fix build error of missing ioremap/iounmap on UM

From Sebastian Reichel <sre@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v1] power: reset: reboot mode: fix build error of missing ioremap/iounmap on UM
Date 2016-08-17 00:10 +0200
Message-ID <s6UIx-r4-15@gated-at.bofh.it> (permalink)
References <s5hzA-if-13@gated-at.bofh.it> <s5k4q-1GM-25@gated-at.bofh.it> <s6Kg9-20U-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Andy,

On Tue, Aug 16, 2016 at 06:55:49PM +0800, Andy Yan wrote:
> On 2016年08月12日 20:48, Krzysztof Kozlowski wrote:
> > On 08/12/2016 12:01 PM, Andy Yan wrote:
> > > commit 4fcd504edbf7 ("power: reset: add reboot mode driver") uses api from
> > > syscon, and syscon uses ioremap/iounmap which depends on HAS_IOMEM, so
> > > let's depend on MFD_SYSCON instead of selecting it directly to avoid the
> > > um-allyesconfig like build error on archs that without iomem:
> > > 
> > > drivers/mfd/syscon.c: In function 'of_syscon_register':
> > > drivers/mfd/syscon.c:67:9: error: implicit declaration of function 'ioremap' [-Werror=implicit-function-declaration]
> > >    base = ioremap(res.start, resource_size(&res));
> > >           ^
> > > drivers/mfd/syscon.c:67:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
> > >    base = ioremap(res.start, resource_size(&res));
> > >         ^
> > > drivers/mfd/syscon.c:109:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration]
> > >    iounmap(base);
> > >    ^
> > > 
> > > Reported-by: Kbuild test robot <fengguang.wu@intel.com>
> > > Fixes: 4fcd504edbf7("power: reset: add reboot mode driver")
> > > Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
> > > 
> > > ---
> > > 
> > > Changes in v1:
> > > - let this driver depend on MFD_SYSCON
> > > - add Reported-by tag, which suggested by Krzysztof Kozlowski
> > > - add Fixes tag, which suggested by Matthias Brugger
> > > 
> > >   drivers/power/reset/Kconfig | 2 +-
> > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
>
>  Will you please take this patch to avoid the Kbuild test robot warning ?

https://git.kernel.org/cgit/linux/kernel/git/sre/linux-power-supply.git/commit/?h=fixes&id=7a4947cf6f26b7d0a5db260d212f6df41a563d23

-- Sebastian

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v1] power: reset: reboot mode: fix build error of missing ioremap/iounmap on UM Andy Yan <andy.yan@rock-chips.com> - 2016-08-12 12:10 +0200
  Re: [PATCH v1] power: reset: reboot mode: fix build error of missing  ioremap/iounmap on UM Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-08-12 14:50 +0200
    Re: [PATCH v1] power: reset: reboot mode: fix build error of missing  ioremap/iounmap on UM Andy Yan <andy.yan@rock-chips.com> - 2016-08-16 13:00 +0200
      Re: [PATCH v1] power: reset: reboot mode: fix build error of missing  ioremap/iounmap on UM Sebastian Reichel <sre@kernel.org> - 2016-08-17 00:10 +0200

csiph-web