From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: linux-media@vger.kernel.org,
Daniel Scally <dan.scally@ideasonboard.com>,
Hans de Goede <hansg@kernel.org>,
platform-driver-x86@vger.kernel.org
Subject: Re: [PATCH 1/2] platform/x86: int3472: Address Coccinelle warning on an error print
Date: Fri, 21 Aug 2026 11:14:42 +0300 (EEST) [thread overview]
Message-ID: <6e27b82f-5579-8cd2-7dea-298ae2a79100@linux.intel.com> (raw)
In-Reply-To: <20260820205148.2910639-2-sakari.ailus@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]
On Thu, 20 Aug 2026, Sakari Ailus wrote:
> Fix the following Coccinelle warning:
>
> ./tps68470.c:164:58-65: WARNING: Consider using %pe to print PTR_ERR()
It seems coccinelle scripts too employ scare tactics. :-/
The change is fine,
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
> by using %pe specifier for printing an error code.
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---
> drivers/platform/x86/intel/int3472/tps68470.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/intel/int3472/tps68470.c b/drivers/platform/x86/intel/int3472/tps68470.c
> index a77ed32abe55..dc777dbac61f 100644
> --- a/drivers/platform/x86/intel/int3472/tps68470.c
> +++ b/drivers/platform/x86/intel/int3472/tps68470.c
> @@ -161,7 +161,7 @@ static int skl_int3472_tps68470_probe(struct i2c_client *client)
>
> regmap = devm_regmap_init_i2c(client, &tps68470_regmap_config);
> if (IS_ERR(regmap)) {
> - dev_err(&client->dev, "Failed to create regmap: %ld\n", PTR_ERR(regmap));
> + dev_err(&client->dev, "Failed to create regmap: %pe\n", regmap);
> return PTR_ERR(regmap);
> }
>
>
--
i.
next prev parent reply other threads:[~2026-08-21 8:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-20 20:51 [PATCH 0/2] Fix static analyser and compiler warnings in int3472 Sakari Ailus
2026-08-20 20:51 ` [PATCH 1/2] platform/x86: int3472: Address Coccinelle warning on an error print Sakari Ailus
2026-08-21 8:14 ` Ilpo Järvinen [this message]
2026-08-20 20:51 ` [PATCH 2/2] platform/x86: int3472: Fix uninitialised variable warning Sakari Ailus
2026-08-21 8:34 ` Ilpo Järvinen
2026-08-21 18:56 ` Sakari Ailus
2026-08-24 7:43 ` Ilpo Järvinen
2026-08-24 10:18 ` Sakari Ailus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6e27b82f-5579-8cd2-7dea-298ae2a79100@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=dan.scally@ideasonboard.com \
--cc=hansg@kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox