[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <f6a514d1-44cb-4577-af07-fd2f3fefc974@www.fastmail.com>
Date: Wed, 11 Dec 2019 08:42:35 +1030
From: "Andrew Jeffery" <andrew@...id.au>
To: "Arnd Bergmann" <arnd@...db.de>,
"Linus Walleij" <linus.walleij@...aro.org>,
"Bartosz Golaszewski" <bgolaszewski@...libre.com>,
"Joel Stanley" <joel@....id.au>
Cc: "Hongwei Zhang" <hongweiz@....com>, linux-gpio@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-aspeed@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] gpio: aspeed: avoid return type warning
On Wed, 11 Dec 2019, at 06:58, Arnd Bergmann wrote:
> gcc has a hard time tracking whether BUG_ON(1) ends
> execution or not:
>
> drivers/gpio/gpio-aspeed-sgpio.c: In function 'bank_reg':
> drivers/gpio/gpio-aspeed-sgpio.c:112:1: error: control reaches end of
> non-void function [-Werror=return-type]
>
> Use the simpler BUG() that gcc knows cannot continue.
>
> Fixes: f8b410e3695a ("gpio: aspeed-sgpio: Rename and add Kconfig/Makefile")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Acked-by: Andrew Jeffery <andrew@...id.au>
Powered by blists - more mailing lists