From 0959dc305a6495a8375013ff9c509950367b39f7 Mon Sep 17 00:00:00 2001 From: Jessica Yu Date: Nov 04 2020 12:45:42 +0000 Subject: gpio: Fix the no return statement warning (bsc#1178431). --- diff --git a/patches.suse/gpio-Fix-the-no-return-statement-warning.patch b/patches.suse/gpio-Fix-the-no-return-statement-warning.patch new file mode 100644 index 0000000..50cc270 --- /dev/null +++ b/patches.suse/gpio-Fix-the-no-return-statement-warning.patch @@ -0,0 +1,45 @@ +From 9c6722d85e92233082da2b3623685bba54d6093e Mon Sep 17 00:00:00 2001 +From: Kevin Hao +Date: Thu, 16 Jan 2020 17:50:03 +0800 +Subject: [PATCH] gpio: Fix the no return statement warning +Patch-mainline: v5.6-rc1 +Git-commit: 9c6722d85e92233082da2b3623685bba54d6093e +References: bsc#1178431 + +In commit 242587616710 ("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 +Signed-off-by: Kevin Hao +Link: https://lore.kernel.org/r/20200116095003.30324-1-haokexin@gmail.com +Signed-off-by: Linus Walleij +Acked-by: Jessica Yu +--- + include/linux/gpio/driver.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h +index 9bb43467ed11..00d9f5b464c7 100644 +--- a/include/linux/gpio/driver.h ++++ b/include/linux/gpio/driver.h +@@ -549,12 +549,14 @@ static inline void *gpiochip_populate_parent_fwspec_twocell(struct gpio_chip *ch + unsigned int parent_hwirq, + unsigned int parent_type) + { ++ return NULL; + } + + static inline void *gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *chip, + unsigned int parent_hwirq, + unsigned int parent_type) + { ++ return NULL; + } + + #endif /* CONFIG_IRQ_DOMAIN_HIERARCHY */ +-- +2.16.4 + diff --git a/series.conf b/series.conf index 926718b..e7089c6 100644 --- a/series.conf +++ b/series.conf @@ -17524,6 +17524,7 @@ patches.suse/gpiolib-Set-lockdep-class-for-hierarchical-irq-domai.patch patches.suse/gpiolib-Add-support-for-the-irqdomain-which-doesn-t-.patch patches.suse/gpiolib-Add-the-support-for-the-msi-parent-domain.patch + patches.suse/gpio-Fix-the-no-return-statement-warning.patch patches.suse/pinctrl-tegra-fix-missing-__iomem-in-suspend-resume.patch patches.suse/pinctrl-sh-pfc-r8a77965-Fix-DU_DOTCLKIN3-drive-bias-.patch patches.suse/pinctrl-sh-pfc-r8a7778-Fix-duplicate-SDSELF_B-and-SD.patch