From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8831FC2BA83 for ; Fri, 14 Feb 2020 17:25:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5EB482168B for ; Fri, 14 Feb 2020 17:25:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581701100; bh=mYIjXR2TDwDD7rXhlHDJq22WjdivDPfHAdeOikRsJ7c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=qB9FvU5yBkYz4HTpvBVQ7eWdMi2wAi3DfauCPZk10JTporFiULZj7z2Ta/eOwBlw/ rx8T65JS+4sQp7z6Az5kN8TiI7hp9VcR+aXJUUFJvM2oEtlQY6QxWiAo6mxxgVEpYl lpa3nOlTmvY4dvLpglesvchteRMMMdw8JXh3ySgM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391294AbgBNRY7 (ORCPT ); Fri, 14 Feb 2020 12:24:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:33032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391111AbgBNQI4 (ORCPT ); Fri, 14 Feb 2020 11:08:56 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4C55424650; Fri, 14 Feb 2020 16:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581696536; bh=mYIjXR2TDwDD7rXhlHDJq22WjdivDPfHAdeOikRsJ7c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B6X4kNXK6U+e2eWB2DzUgXkCheFS80Tjt2YssGl5K1r1vz/UWjNPUyVzV0o+KouZW ECrM0cSk6pwkL1e7b5VT2NBRUt/9ciV4+C7zHSjdO4xx/K/tl8ne6D5Og2gvUlkQOB 7P37+V0Q0MBDr+v3hWEI4/ZzsZ4T1wWIXw//prf8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Kevin Hao , kbuild test robot , Linus Walleij , Sasha Levin , linux-gpio@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 332/459] gpio: Fix the no return statement warning Date: Fri, 14 Feb 2020 10:59:42 -0500 Message-Id: <20200214160149.11681-332-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214160149.11681-1-sashal@kernel.org> References: <20200214160149.11681-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kevin Hao [ Upstream commit 9c6722d85e92233082da2b3623685bba54d6093e ] 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 Signed-off-by: Sasha Levin --- 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 5dd9c982e2cbe..d7dc2b425532e 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -545,6 +545,7 @@ static inline void gpiochip_populate_parent_fwspec_twocell(struct gpio_chip *chi unsigned int parent_hwirq, unsigned int parent_type) { + return NULL; } static inline void gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *chip, @@ -552,6 +553,7 @@ static inline void gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *ch unsigned int parent_hwirq, unsigned int parent_type) { + return NULL; } #endif /* CONFIG_IRQ_DOMAIN_HIERARCHY */ -- 2.20.1