All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Andy Yan <andy.yan@rock-chips.com>
Cc: sre@kernel.org, richard@nod.at, matthias.bgg@gmail.com,
	moritz.fischer@ettus.com, fengguang.wu@intel.com,
	alexandre.belloni@free-electrons.com, linux-pm@vger.kernel.org,
	linux-kernel@vger.kernel.org, dbaryshkov@gmail.com,
	k.kozlowski@samsung.com, dwmw2@infradead.org,
	nicolas.ferre@atmel.com
Subject: Re: [PATCH] power: reset: reboot mode: fix build error of missing ioremap/iounmap on UM
Date: Mon, 8 Aug 2016 18:54:10 +0200	[thread overview]
Message-ID: <20160808165410.GA5959@kozik-book> (raw)
In-Reply-To: <1470575661-22325-1-git-send-email-andy.yan@rock-chips.com>

On Sun, Aug 07, 2016 at 09:14:21PM +0800, Andy Yan wrote:
> Add missing HAS_IOMEM dependency for MFD_SYSCON to fix the um-allyesconfig
> build error:
> 
> 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);
>   ^
> 
> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>

Missing credits for reported by.

That does not look proper... The driver itself is not using ioremap.
Error is triggered by selecting MFD_SYSCON... Some time ago I sent a
bulk of similar fixes for stuff like this but there were some comments
against. Finally the fixes were merged but ultimately the COMPILE_TEST
was changed to !UM. Here it happens even without COMPILE_TEST... Maybe
it should just depend on MFD_SYSCON?

Best regards,
Krzysztof


> ---
> 
>  drivers/power/reset/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig
> index 7053abc..1388be3 100644
> --- a/drivers/power/reset/Kconfig
> +++ b/drivers/power/reset/Kconfig
> @@ -190,6 +190,7 @@ config REBOOT_MODE
>  config SYSCON_REBOOT_MODE
>  	tristate "Generic SYSCON regmap reboot mode driver"
>  	depends on OF
> +	depends on HAS_IOMEM
>  	select REBOOT_MODE
>  	select MFD_SYSCON
>  	help
> -- 
> 2.7.4
> 
> 

      parent reply	other threads:[~2016-08-08 16:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-07 13:14 [PATCH] power: reset: reboot mode: fix build error of missing ioremap/iounmap on UM Andy Yan
2016-08-08  7:25 ` Matthias Brugger
2016-08-08 16:54 ` Krzysztof Kozlowski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160808165410.GA5959@kozik-book \
    --to=krzk@kernel.org \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=andy.yan@rock-chips.com \
    --cc=dbaryshkov@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=fengguang.wu@intel.com \
    --cc=k.kozlowski@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=moritz.fischer@ettus.com \
    --cc=nicolas.ferre@atmel.com \
    --cc=richard@nod.at \
    --cc=sre@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.