From patchwork Mon Jan 13 08:57:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 13936962 Received: from mx08-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B781B2397B5; Mon, 13 Jan 2025 09:00:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736758841; cv=none; b=kVpMMVhq36b8MRssgnrfVrYphFel42ow0GzaZBTndrztfzT8KdfMe2Odpdg1qhGOlM29LYmuveZx/6XbDAm31gBxC0XQ53dmsP3zZ34CZxzUWcrOBnapiEEZtd+rtBFE6KicdMr4ILeVWMfCLDjbW015cLfLZugXoTgSRnPfDdM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736758841; c=relaxed/simple; bh=BSLa1jmCYdZQhxAaMpIwIwlCD6uOwgNXGopzVM6Bmig=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=eD9FjPI+Ddc/9B4fv2seVgmJuOOD9euupoZK933jerIsPGZUmzn/FBIF60MeyuU0nxHTZmstb7gy6q/X9Ntxkhpv/tLIRT9sG+QCsEuQIJPDO4O8/KKoRjn2g3ULPZONa5vR3NVB2AAFnzCzAWPGK2N/w9uovIPoSEkH7ffwMh0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=b8BsM6Ok; arc=none smtp.client-ip=91.207.212.93 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="b8BsM6Ok" Received: from pps.filterd (m0369457.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50D4YHlO013631; Mon, 13 Jan 2025 10:00:10 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= x1bsQJ2ko4AQU0XqRWQ9Cw+Ol5kmhhV4BUyjb/RUyC4=; b=b8BsM6Ok6jYdInrN w6/pCLSsiIkv/aup8BIx6Hr7DpjGaV3I/bvm1faZ76tvT8PqFZ8ExTDPXNUzsxRS M1bEckrEQ+1+UuQf6mSbL4aD4YfItBg6S2HCmxM8XCdNjGgM7vzZ6f2QGSwmatL8 9P+M+R3ZSqKUcH6I+tQwubR0Ztzx/t1aN3FpKMXb/0H/Ygi5tag7FMyGVQxnkDPY 136svFCb3rR0YcDTUDxKPy15w5ISO/zHw5JnJwV12wvW4qPyNUgP5TFLACJR11Rj dHUCl1zyBvSGgMLZDfzx2lYED0lFWwgxH1qdTtRcCDXGZmnpD7Wseum9LiGrxad3 jpzgAg== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 4444fmub4s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jan 2025 10:00:10 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 4F8664004A; Mon, 13 Jan 2025 09:59:01 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E028B23456A; Mon, 13 Jan 2025 09:58:12 +0100 (CET) Received: from localhost (10.129.178.39) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Mon, 13 Jan 2025 09:58:12 +0100 From: Alain Volmat Date: Mon, 13 Jan 2025 09:57:51 +0100 Subject: [PATCH v3 1/9] media: stm32: dcmipp: correct ret type in dcmipp_graph_notify_bound Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20250113-csi_dcmipp_mp25_enhancements-v3-1-33b96744df46@foss.st.com> References: <20250113-csi_dcmipp_mp25_enhancements-v3-0-33b96744df46@foss.st.com> In-Reply-To: <20250113-csi_dcmipp_mp25_enhancements-v3-0-33b96744df46@foss.st.com> To: Hugues Fruchet , Mauro Carvalho Chehab , Maxime Coquelin , Alexandre Torgue , Hans Verkuil , Sakari Ailus , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , , Alain Volmat X-Mailer: b4 0.14.1 X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 The ret variable used within the function dcmipp_graph_notify_bound is wrongly defined as unsigned int while it can also be signed. Signed-off-by: Alain Volmat --- drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c index 71acf539e1f3..5a04018a6a9d 100644 --- a/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c +++ b/drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-core.c @@ -296,7 +296,7 @@ static int dcmipp_graph_notify_bound(struct v4l2_async_notifier *notifier, struct v4l2_async_connection *asd) { struct dcmipp_device *dcmipp = notifier_to_dcmipp(notifier); - unsigned int ret; + int ret; int src_pad, i; struct dcmipp_ent_device *sink; struct v4l2_fwnode_endpoint vep = { 0 };