]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: Fix the no return statement warning
authorKevin Hao <haokexin@gmail.com>
Thu, 16 Jan 2020 09:50:03 +0000 (17:50 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Jan 2020 10:27:12 +0000 (11:27 +0100)
commitf1490e7e83fbeafd3b8e2c170ee1e077a510280c
tree6080fb230b4ca675f0a6ad13ba2c91db56c78602
parente847a471bbb8bc0c9041a6bf0fc359c1ae4ac36d
gpio: Fix the no return statement warning

In commit 16b6d93b6652 ("gpiolib: Add support for the irqdomain which
doesn't use irq_fwspec as arg") we have changed the return type of
gpiochip_populate_parent_fwspec_twocell/fourcell() from void to void *,
but forgot to add a return statement for these two dummy functions.
Add "return NULL" to fix the build warnings.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Link: https://lore.kernel.org/r/20200116095003.30324-1-haokexin@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/gpio/driver.h