From: chalianis1@gmail.com
To: s.hauer@pengutronix.de
Cc: barebox@lists.infradead.org, Chali Anis <chalianis1@gmail.com>
Subject: [PATCH] clk: clkdev: fix format security.
Date: Sat, 30 Aug 2025 14:29:17 -0400 [thread overview]
Message-ID: <20250830182917.1378282-1-chalianis1@gmail.com> (raw)
From: Chali Anis <chalianis1@gmail.com>
not a string literal and no format
arguments [-Werror=format-security]
Fixes: 61da1fea5d3c ("clk: sifive: Fix missing conversion to struct clk_hw")
Signed-off-by: Chali Anis <chalianis1@gmail.com>
---
drivers/clk/sifive/sifive-prci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/sifive/sifive-prci.c b/drivers/clk/sifive/sifive-prci.c
index 349629d82aa9..dbbf05655850 100644
--- a/drivers/clk/sifive/sifive-prci.c
+++ b/drivers/clk/sifive/sifive-prci.c
@@ -508,7 +508,7 @@ static int __prci_register_clocks(struct device *dev, struct __prci_data *pd,
return PTR_ERR(clk);
}
- r = clk_register_clkdev(clk, pic->name, dev_name(dev));
+ r = clk_register_clkdev(clk, pic->name, "%s", dev_name(dev));
if (r) {
dev_warn(dev, "Failed to register clkdev for %s: %d\n",
clk_hw_get_name(&pic->hw), r);
--
2.34.1
next reply other threads:[~2025-08-30 18:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-30 18:29 chalianis1 [this message]
2025-09-01 8:54 ` Sascha Hauer
-- strict thread matches above, loose matches on Subject: below --
2025-07-29 4:56 chalianis1
2025-07-31 9:03 ` Ahmad Fatoum
2025-08-05 7:42 ` Sascha Hauer
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=20250830182917.1378282-1-chalianis1@gmail.com \
--to=chalianis1@gmail.com \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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