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 49DC827280E for ; Mon, 13 Oct 2025 14:14:54 +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=1760364898; cv=none; b=qobXyNsi4TlJb8EiyszqFxHaA6FMrPnREEntMNXdZk7I9LETT/VGfm9Mwwc8aBlcZWdAHVVdHkjDT24igfnfkMx3nhMM1+HSxMuIxxhGeRXPeFZwRa75nTJRrMh7DAQBltAc9SoTe+4gqkfmp0/q+j3V5Tk64Ia6x3xVTU1sSWo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760364898; c=relaxed/simple; bh=LrtS/QWSh262AIfz0Rm9zWkyxkdrbmKWBb/AyfTa1hs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sJ8qU1/OPFHg/81TcrK3390+KPBhpKlvIaHZOdZ0I/lslVtDPVsvhlyPzq3sbjRJVHNIrtzceYpVGg8YNHvl1RCAUN5U8ZOtNSEtH9gTtTgTFBX3/5ramn0VJ5SiYEvD/Lax1XkFn4vvjUYkdCDihS67y8vY+sWkPwc7TUlREEM= 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=SuAki+bU; 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="SuAki+bU" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-57e8e67aa3eso6501967e87.1 for ; Mon, 13 Oct 2025 07:14:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1760364893; x=1760969693; 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=Ytl5LFG4k2lvKI1fHaoSkPXZntuyxjUYygC+V2GNf2w=; b=SuAki+bU1+sqx91zjRb8n0EEi+aIjyMjLemVQFqsrIJpCHciqG21hNvV8WEtkcKM+o vHvQC2hJ540h5mhQpavdS0PHWmnynxTuPOf15tH8Y2KhQVesWzck+u5y+6Q4YKaQ6BiE zbeixceW/BlfyD6aRiAVkeWSPbm7E32Fw4zlI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760364893; x=1760969693; 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=Ytl5LFG4k2lvKI1fHaoSkPXZntuyxjUYygC+V2GNf2w=; b=WXIrgQONNPxQ/HPEBcHJ/7WR1MYsxR0zZdK1NLPsQOisBZPGjthy6SK7AE31tmgETf fz+/HTuyi8tYVuUbpLat+xc+pNEY1d2QVHRRyzI3Ty1PQ0I3GLoyNz0jE9Wuz3ZfNf7v Pw99R7avbVEEM3n6uuKGQ/Z5eLSfjESu8m0JsUoHM3OtM0Qa40RKCPilFB5jnyjr47bt 8KvqeXNnaSUl0uFfgAh2xISeuRXUpI8EuDypdgZFLJ9KJkpTiStOnwx7qEM3idO9Yk3B Blo7T6pzhzP+h/3mfPgqxpplPMj5azL9JtEtAzhw9tqdLitkrh9qy9wR3+zQNDm+9kB3 v1ww== X-Forwarded-Encrypted: i=1; AJvYcCUAemWVw3UVHXX5alyxlOlZAIwB8+Uu6KgX0WyQ+Ip8HKGm8QTja1MzlXkNx7un5oHWNv+AjgSbgSZTxXhIaqgAQw==@vger.kernel.org X-Gm-Message-State: AOJu0YxWAZamZjZVa0+i3GK1yKwW1g33N/K3eo+maW8vzfWK9blyirnf Fx8RwPX7/Qil+mXvdjJxLLBNziNVChICukeA47Iycp5ecmlTEH06E5aXnRRnAqVkFQ== X-Gm-Gg: ASbGncvIQnVfvpIMNfN1bvQC25b3DeYBY6anARwrT6JdyoWXozqRpDwLFSZfDuRm2sw Pl5kb9OP4En5XBKGgz6Ai8Pgp34+Xpg1jQAlLbsjM0/TlXx0xQGXJYJB+tL6HdQYnKvqO5vElsr KW4wtKdZ14v/un0HWoKLkTBQ2Ypri5ms/Bk6jzywlYNA+B5JfLCD/RWbA7F4qcM1IcArssufD61 VwD1LmE5X3sxQH/O0QGr5U4rrjWdJYvDzGu2ZqAb396Ok3utVY/vTSZZFC5pUquZ++wFyez+uGO cAikAUa/B6isFyzbCUgjJyhr0buOuNpxhvNIcNf2QFhPdqcDbw/LMgvg+dyxV7FKiK4M1VireLF pJmgByvJ3UIvbNWZP5NCK2o8HFem404eUGpRusEBNmx07DnS/QEMGL/aUBFmGl6biula4yg+Qip UqQw5cgNcbVYr/hHQDgwsHHVSqGHh2 X-Google-Smtp-Source: AGHT+IGVVbL5/vtkpaQMJQh0k7ML+5P3f5T7fpLYmv9ZzC8x6SpLBLD8o5pL52MoM0M8VLfq2lDuFQ== X-Received: by 2002:a05:6512:3d09:b0:571:75c8:43a5 with SMTP id 2adb3069b0e04-5905e1d36demr7120769e87.1.1760364892853; Mon, 13 Oct 2025 07:14:52 -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.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Oct 2025 07:14:52 -0700 (PDT) From: Ricardo Ribalda Date: Mon, 13 Oct 2025 14:14:45 +0000 Subject: [PATCH 05/32] media: ar0521: Use %pe format specifier Precedence: bulk X-Mailing-List: linux-renesas-soc@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-5-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: ./i2c/ar0521.c:1113:31-38: WARNING: Consider using %pe to print PTR_ERR() Signed-off-by: Ricardo Ribalda --- drivers/media/i2c/ar0521.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/ar0521.c b/drivers/media/i2c/ar0521.c index 939bf590d4b2107c6669b83903028744de1c2b30..f156058500e3dce5d7b5b831bf8ec4056e49ad5b 100644 --- a/drivers/media/i2c/ar0521.c +++ b/drivers/media/i2c/ar0521.c @@ -1109,8 +1109,8 @@ static int ar0521_probe(struct i2c_client *client) ar0521_supply_names[cnt]); if (IS_ERR(supply)) { - dev_info(dev, "no %s regulator found: %li\n", - ar0521_supply_names[cnt], PTR_ERR(supply)); + dev_info(dev, "no %s regulator found: %pe\n", + ar0521_supply_names[cnt], supply); return PTR_ERR(supply); } sensor->supplies[cnt] = supply; -- 2.51.0.760.g7b8bcc2412-goog