From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E4382BFC60 for ; Mon, 13 Oct 2025 14:15:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760364924; cv=none; b=PchDIOB6yB2DQWOdbfiPchXpr0G9yNkiP78nPVoS/HXQnocXCSsb+G7Y9KnYe5s+rPxxhM9sdsgbnXXfAitHLoKolBuJoA8isSv8NXvIl4YB2BJbDBMOWGTiR72XJosc3/XOO6h1Dzb2s2dqmdoE90hUe58UmqF0P5Help1JtwE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760364924; c=relaxed/simple; bh=8Y3wF3Ogu1PTCQAe9QDSmk3/csBKQwAsoOPfpiyO1ec=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=icDzOWEJPYVAn6fXJVGc3oOyO9GmnZFQGqn6GemWnB/tLa/JDLEh7q2qygk+9Io0W3JoKf2fGD5dGYwab5mC9n0RlDueP9KcENlQUA+g2XNRG8F6Gg3UMYeSIUpNN45mJkvOwVhRd2j9G3SsQNhYxUyaHSY1LDFFirx1PHhCVH0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=Bl/3tNe+; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Bl/3tNe+" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-57992ba129eso5322376e87.3 for ; Mon, 13 Oct 2025 07:15:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1760364904; x=1760969704; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gUxX/9XhZ4PnNBB1T7MELmfGG4IHXE3ZwCx+Au9dRPU=; b=Bl/3tNe+OMMoqxBGlH6akwvTnEU8G6RsNcggPSiD9hGBCwDdEQs71Bgxo8Za378RgX /MB97qA3nXh1x/5buObh6r6jao7WvrEEF30YmUNo322omVolR98+vhmahoGG6ahTCHuL 9lxi1eoWGySnesHvejd0Vnj5kVDtbAMnSNHdE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760364904; x=1760969704; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gUxX/9XhZ4PnNBB1T7MELmfGG4IHXE3ZwCx+Au9dRPU=; b=YOxB22blNv3xDHFo/rUzqeXmejmqWhiRYf7AuaFGKuQbdCNEXJsgaF0MaWp57CigzQ u+xM7T3GN/tNa/9itTirnSB+TkAoXt+yjHpHisedIqijFopMh2sOJCVHTf7Z1TxdosVS Odq1yITo4IvjOLWbaVF+b8LQvvDeHWRkkzPBKHG4lKsYvzSQ5BAyeO8+se3WNPTIiZua xkpwYpfpspvo1oaAjjsHj/5ozwwhcdkhDk0iXkNYQgj9+yEh9kCaQewYigTdMjpBv3Y7 bi2fpacDQQtq+uVqQB1LApochk44z5oYfCo+K9qMWWimw1c1irSiWupaGU9I149GYk0+ rpSg== X-Gm-Message-State: AOJu0Yyqac/qfPbhQ1yiF7mM8/uwVEZM1fq/RwohRLffUWkuVfHCVmPU yldx9d2r/pi40+8GdRyi3ktX2WTivbcYsCrzWB5+2SNgbuISmVOwfsd5tZd/6ypMeg== X-Gm-Gg: ASbGnctGL2My8ade+0icaSk4UAKK1SiXAulZwwbbaKidGRFld7m+S6rYj/kQ54THU+B gNcGIHERaX7TkULwJOBM+mwe4P/CjVpUsxRnqEvlqb+ZzvnCtj5vB+6YY5ZCqbhhYbP0Z+EgVH+ 2TZrsXAaAnRFlCxlzYl0B5swGsq5zKo4NPUOHJJBrXDeuBhIQkvAdjnqjRYstnRp0vn5mvFf8Z/ dk+0An+ouA6tI/UqQthBk0QiWFpDVnZxAnlFNmpzWLCIfL/JvMvGRVea/QQby2OAS5jBIgDzLEg Hyq9d/qxmIGcU7L8SWdm8WHcHTfSRfXEWCyzV6mekQe8WIEt30Zx4ELXE0bdoJoMNKOpiuf99as 6EvuKBtWU67CzQGAUzpp8aFwsUAEnvcNl9UyS9b8wW8YvgK07vz6aTaLpuFq2Wk3p0aW5o1cD2L XBxvdJxEXjTqzrkm8Ldg== X-Google-Smtp-Source: AGHT+IFTTHLDJWS3Dn9Gd32yhET2ji8RYegzhadBkm4NFBADg/24WPxUjewhK5Qa14H7toVcPkN+hQ== X-Received: by 2002:a05:6512:3f28:b0:590:656c:d11f with SMTP id 2adb3069b0e04-5906de88e60mr5677489e87.44.1760364904333; Mon, 13 Oct 2025 07:15:04 -0700 (PDT) Received: from ribalda.c.googlers.com (56.213.88.34.bc.googleusercontent.com. [34.88.213.56]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-590881e4e58sm4165256e87.25.2025.10.13.07.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Oct 2025 07:15:03 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 13 Oct 2025 14:15:05 +0000 Subject: [PATCH 25/32] media: imx8mq-mipi-csi2: Use %pe format specifier Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20251013-ptr_err-v1-25-2c5efbd82952@chromium.org> References: <20251013-ptr_err-v1-0-2c5efbd82952@chromium.org> In-Reply-To: <20251013-ptr_err-v1-0-2c5efbd82952@chromium.org> To: Linus Walleij , Dmitry Torokhov , Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus , =?utf-8?q?Krzysztof_Ha=C5=82asa?= , Tomi Valkeinen , Leon Luo , Kieran Bingham , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Niklas_S=C3=B6derlund?= , Julien Massot , Jacopo Mondi , Daniel Scally , Dave Stevenson , Benjamin Mugnier , Sylvain Petinot , Yong Zhi , Bingbu Cao , Tianshu Qiu , Tiffany Lin , Andrew-CT Chen , Yunfei Dong , Matthias Brugger , AngeloGioacchino Del Regno , Rui Miguel Silva , Laurent Pinchart , Martin Kepplinger , Purism Kernel Team , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Dafna Hirschfeld , Heiko Stuebner , Sylwester Nawrocki , Krzysztof Kozlowski , Alim Akhtar , Yemike Abhilash Chandra , Greg Kroah-Hartman Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, imx@lists.linux.dev, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-staging@lists.linux.dev, Ricardo Ribalda X-Mailer: b4 0.14.2 The %pe format specifier is designed to print error pointers. It prints a symbolic error name (eg. -EINVAL) and it makes the code simpler by omitting PTR_ERR(). This patch fixes this cocci report: ./platform/nxp/imx8mq-mipi-csi2.c:422:23-30: WARNING: Consider using %pe to print PTR_ERR() Signed-off-by: Ricardo Ribalda --- drivers/media/platform/nxp/imx8mq-mipi-csi2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/nxp/imx8mq-mipi-csi2.c b/drivers/media/platform/nxp/imx8mq-mipi-csi2.c index 3a4645f59a44028fdca82a4d8393e1a0a6ba88f0..d333ff43539f061b8b9cf88af2cda8c44b3ec2a9 100644 --- a/drivers/media/platform/nxp/imx8mq-mipi-csi2.c +++ b/drivers/media/platform/nxp/imx8mq-mipi-csi2.c @@ -418,8 +418,8 @@ static int imx8mq_mipi_csi_calc_hs_settle(struct csi_state *state, src_pad = media_entity_remote_source_pad_unique(&sd_state->sd->entity); if (IS_ERR(src_pad)) { - dev_err(state->dev, "can't get source pad of %s (%ld)\n", - sd_state->sd->name, PTR_ERR(src_pad)); + dev_err(state->dev, "can't get source pad of %s (%pe)\n", + sd_state->sd->name, src_pad); return PTR_ERR(src_pad); } -- 2.51.0.760.g7b8bcc2412-goog