Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp907154ybv; Thu, 20 Feb 2020 09:21:01 -0800 (PST) X-Google-Smtp-Source: APXvYqw9/xeJOnxDaVRoMtOgBEV4uBTuhtj8nLhSvxtxaw+HZK/mPTjeNhscYyJGeypq6aPe3VK9 X-Received: by 2002:a05:6830:c7:: with SMTP id x7mr23381321oto.272.1582219261541; Thu, 20 Feb 2020 09:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582219261; cv=none; d=google.com; s=arc-20160816; b=e8ZcJnlAtK2XCIGfvQiWnZN9p0PSBP7y64sEXGCQhK/ivIey67zB8B18cF/fN6MovW PqPUys6v4K5371m99owqPRZodf/u5mGDWH5ukhPA673Q9dh1hsxblm6xe8oRVbnDz6rA V1C8RZeoKKveZDEKlx1QNsuNH1Z4fBRol+795h9hlr6O36RSNztD6PH4j8CN1dc+1KTN urJnSFTHXbDtJVDXXkmzGvGD4SWiZa2orafsxJw89N4aFFiCz0jW8twO0nLKcUvZFH6F pKS2tZIjXdttRxBSZ66rnIEN3L5vdtF4DIeInhV4tdYbomXGHqlxYTwUxjo5KlYl44c2 uvGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0wVnUMzC16jjmqRxcWNVsbbnKmTsNp/+Tzwi3/+4GgQ=; b=QmIQ5eWavGgxFyraMK22p/t1DDbTYzU5Ihl3nx9kizfzfN4teAHkeWG5TdIxt4gTpi w34t8wBcv/wfsdez5g9k503n6z4p8AjknRDjBcOnJhn/51EpuAUpBRWILWJQ7NN9HREZ O0+yYwRpLLDk6FQnYbiqUPGqIf8O7MBj6m6o/ULcpVAA6Il/fn6UflEGXqv9wTb1OFA0 SQpk66HiLuesTlbQs5GI8BgKTk6m9zlsiB6pLYDCXmly3INTDVyW6eId81psv2TAzk4L bDHo/KiXisJz5+w0Kqgju9L7s5evY+4Fgsn0d5oEhzPzAM/HAvuWu6Ko5scYHKy3nllD Lhtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HzXgcVxo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r82si11445804oie.116.2020.02.20.09.20.48; Thu, 20 Feb 2020 09:21:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HzXgcVxo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728706AbgBTRUL (ORCPT + 99 others); Thu, 20 Feb 2020 12:20:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:56970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727709AbgBTRUL (ORCPT ); Thu, 20 Feb 2020 12:20:11 -0500 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A15C9208E4; Thu, 20 Feb 2020 17:20:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582219210; bh=nISuG6svIwzof7JHQmMj7ZgoZJYtf5uXKsOvPPgXBsw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HzXgcVxojD9fCltFKaqoYXkNdpoi4yaKM5Zv2RduL6TzvqtjeQf/FBNHxB/Aq1DBf EV4WYvPyU7kHGli3k+0OKCwM1mWsB6ifYjh+es2/KnSm7R6+3Ep4W8BnQo5nydkjwC MJzv1KyUBmeotowmCURgfjmzmk+9OV3eDp/zZACw= Date: Thu, 20 Feb 2020 12:20:09 -0500 From: Sasha Levin To: Kevin Hao Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, kbuild test robot , Linus Walleij , linux-gpio@vger.kernel.org Subject: Re: [PATCH AUTOSEL 5.5 383/542] gpio: Fix the no return statement warning Message-ID: <20200220172009.GG1734@sasha-vm> References: <20200214154854.6746-1-sashal@kernel.org> <20200214154854.6746-383-sashal@kernel.org> <20200215004455.GA499724@pek-khao-d2.corp.ad.wrs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200215004455.GA499724@pek-khao-d2.corp.ad.wrs.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 15, 2020 at 08:44:55AM +0800, Kevin Hao wrote: >On Fri, Feb 14, 2020 at 10:46:15AM -0500, Sasha Levin wrote: >> 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 e2480ef94c559..5dce9c67a961e 100644 >> --- a/include/linux/gpio/driver.h >> +++ b/include/linux/gpio/driver.h >> @@ -553,6 +553,7 @@ static inline void gpiochip_populate_parent_fwspec_twocell(struct gpio_chip *chi >> unsigned int parent_hwirq, >> unsigned int parent_type) >> { >> + return NULL; > >Hi Sasha, > >This commit shouldn't go to the v5.5.x kernel. This is a fix for the >commit 242587616710, but that commit doesn't exist in the v5.5.x kernel, >then it will trigger a build warning due to the wrong returning type. Now dropped, thank you. -- Thanks, Sasha