[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdYtgZ-iMeDBXYhtW94Vkvcj81QhqAfz3z-zajCNJV7j3w@mail.gmail.com>
Date: Mon, 7 Aug 2017 15:14:12 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: "linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Alessandro Rubini <rubini@...pv.it>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] pinctrl: nomadik: fix incorrect type in return expression
On Fri, Aug 4, 2017 at 6:49 AM, Masahiro Yamada
<yamada.masahiro@...ionext.com> wrote:
> Sparse reports "warning: incorrect type in return expression (different
> address spaces)" because nmk_gpio_populate_chip() is supposed to return
> (struct nmk_gpio_chip *) whereas devm_ioremap_resource() returns
> (void __iomem *). ERR_CAST() is needed to fix the warning.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
Patch applied.
Yours,
Linus Walleij
Powered by blists - more mailing lists