Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1445927pxb; Fri, 24 Sep 2021 04:53:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU4IQG3vgddw7Svb92Ujt4LHfXaDUkkn/TwfjCarxn2P5QzPwtnswBmo/PVJkLTwytEk1t X-Received: by 2002:aa7:da91:: with SMTP id q17mr4439872eds.276.1632484385340; Fri, 24 Sep 2021 04:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632484385; cv=none; d=google.com; s=arc-20160816; b=lSXBQYCfluW/lzi1iEUsoyYRqOtth0XhIXq7qjDAXLTJpiSFRJii8QDgjDlmH1dmpE Sm1d8UDDytQXt0lim7WAy5WnSrUxex7sS21xNRoer9UYsSZV43gQFiOsp5VEIj1qBc9B 2l/XmULwJLz7oGGnm3lk+q/OAOhfhk7LU9FrLtEnwKwlZq53mB1xcoieu85FZ9RINKk4 tEBAXrZgDmOSV8f/+ssBVvgyetZS+6o56GLZ39/32wH/KRjD9IRlpKCbUACHCsgmw5Ve DdVYt9jdJd7u5rCvPeSrdahn11ln5olzdKffE/kSjwEQl2UJHRVbFWrJJO+OtkPKeeFo 47jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature:dkim-filter; bh=6J74lWd/6CyVUNTeXTJr/cLogZniLMul6d8MzGOSJS0=; b=yNlXoeraaqmNJxUZrO4lfcay/lXRLiCYYd8J6vsFuUJJBOFb8u4se2RMAfsyQYilp8 O/GIbQEi/+l/IPY3TBwtqEoPXn3gfTdmyemiJu/QAFvNbJDEIDW03imAjgbiByhsLMTm UDzjZvcG3DjqLQX3ttxC8T+mSso6UapPx1hdJGAKL068MLc0gsFhnC8qLrzWWn8zH1uc AbO566JsF9q9kIv+wTvOXdpCbxOb6FmN0LurplGIUF5Fv4no9b69MEaoH1gkFMx6V0ib YS2xcXqGfpXepw+9iQ4W6T2ZsHjOOm/hgeH5bNsKmnOl49VsbwlgbcTbbdyziUEn/L31 26Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=jRWNVqsK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz20si9157142ejb.263.2021.09.24.04.52.40; Fri, 24 Sep 2021 04:53:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=jRWNVqsK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343558AbhIXLob (ORCPT + 99 others); Fri, 24 Sep 2021 07:44:31 -0400 Received: from linux.microsoft.com ([13.77.154.182]:40882 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244321AbhIXLob (ORCPT ); Fri, 24 Sep 2021 07:44:31 -0400 Received: from [192.168.1.87] (unknown [223.184.74.135]) by linux.microsoft.com (Postfix) with ESMTPSA id B7EE420A3A05; Fri, 24 Sep 2021 04:42:55 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B7EE420A3A05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1632483778; bh=6J74lWd/6CyVUNTeXTJr/cLogZniLMul6d8MzGOSJS0=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=jRWNVqsKRfiizxQADhHcgkJDxWAl8h/Iy1IJ0/sHZD9c3lSCsnHBXM747S10ga9ZT n4HG4MIut8vWrigJRFqcAqmZq5TRU94qLdsxwfxQAA5cLc3Fgl0gYXqQDUUdnbvWPO HMaRuqMjcUzG8Q37AxbMgUz/ROMzZL9KaiDsR1t8= Subject: Re: [PATCH] media: atomisp: restore missing 'return' statement From: Praveen Kumar To: Arnd Bergmann , Mauro Carvalho Chehab , Greg Kroah-Hartman , Pavel Skripkin Cc: Arnd Bergmann , Sakari Ailus , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20210802143820.1150099-1-arnd@kernel.org> Message-ID: Date: Fri, 24 Sep 2021 17:12:50 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24-09-2021 17:01, Praveen Kumar wrote: > On 02-08-2021 20:08, Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> The input_system_configure_channel_sensor() function lost its final >> return code in a previous patch: >> >> drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c: In function 'input_system_configure_channel_sensor': >> drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c:1649:1: error: control reaches end of non-void function [-Werror=return-type] >> >> Restore what was there originally. >> >> Fixes: 728a5c64ae5f ("media: atomisp: remove dublicate code") >> Signed-off-by: Arnd Bergmann >> --- >> .../media/atomisp/pci/hive_isp_css_common/host/input_system.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c >> index 8e085dda0c18..712e01c37870 100644 >> --- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c >> +++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c >> @@ -1646,6 +1646,8 @@ static input_system_err_t input_system_configure_channel_sensor( >> default: >> return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; >> } >> + >> + return INPUT_SYSTEM_ERR_NO_ERROR; > > I would recommend to return "status" instead of INPUT_SYSTEM_ERR_NO_ERROR, > this will take care of sending correct return code, we encounter in different case statements. > Something like below would be better. Thanks. > > - return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; > + status = INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; > } > + return status; Please ignore this comment. My bad, we don't reach anytime here during failure. Regards, ~Praveen.