Thread (6 messages) 6 messages, 4 authors, 2018-07-13

[PATCH] gpio: aspeed: fix compile testing warning

From: Linus Walleij <hidden>
Date: 2018-07-13 07:07:09
Also in: linux-aspeed, linux-gpio, lkml

On Tue, Jul 10, 2018 at 1:53 AM Benjamin Herrenschmidt
[off-list ref] wrote:
On Mon, 2018-07-09 at 16:56 +0200, Arnd Bergmann wrote:
quoted
Gcc cannot always see that BUG_ON(1) is guaranteed to not
return, so we get a warning message in some configurations:

drivers/gpio/gpio-aspeed.c: In function 'bank_reg':
drivers/gpio/gpio-aspeed.c:244:1: error: control reaches end of non-void function [-Werror=return-type]

Using a plain BUG() is easier here and avoids the problem.

Fixes: 44ddf559d579 ("gpio: aspeed: Rework register type accessors")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Linus, can you plonk that on top of the patches in that topic branch
you created ?
I put it on top of my devel branch where I merged in the topic
branch.

As it's a fringe thing anyways I don't think we need to recreate the
topic branch for this.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help