From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: drivers/clk/clkdev.c:173:17: warning: function 'vclkdev_alloc' might be a candidate for 'gnu_printf' format attribute
Date: Sun, 15 Dec 2024 23:55:28 +0800 [thread overview]
Message-ID: <202412152318.z9ab4gLN-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2d8308bf5b67dff50262d8a9260a50113b3628c6
commit: 63aadb77669a6856b26d73da85b4f788731524a3 m68k: coldfire: use clkdev_lookup on most coldfire
date: 3 years, 6 months ago
config: m68k-allnoconfig (https://download.01.org/0day-ci/archive/20241215/202412152318.z9ab4gLN-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241215/202412152318.z9ab4gLN-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412152318.z9ab4gLN-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/clk/clkdev.c: In function 'vclkdev_alloc':
>> drivers/clk/clkdev.c:173:17: warning: function 'vclkdev_alloc' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
173 | vscnprintf(cla->dev_id, sizeof(cla->dev_id), dev_fmt, ap);
| ^~~~~~~~~~
vim +173 drivers/clk/clkdev.c
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 155
bd721ea73e1f965 drivers/clk/clkdev.c Fabian Frederick 2016-08-02 156 static struct clk_lookup * __ref
d5622a9c13752be drivers/clk/clkdev.c Russell King 2015-03-02 157 vclkdev_alloc(struct clk_hw *hw, const char *con_id, const char *dev_fmt,
e9d7f4065408e92 drivers/clk/clkdev.c Russell King 2012-05-02 158 va_list ap)
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 159 {
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 160 struct clk_lookup_alloc *cla;
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 161
0d4e3d005cb3c7b drivers/clk/clkdev.c Stephen Boyd 2018-01-02 162 cla = kzalloc(sizeof(*cla), GFP_KERNEL);
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 163 if (!cla)
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 164 return NULL;
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 165
d5622a9c13752be drivers/clk/clkdev.c Russell King 2015-03-02 166 cla->cl.clk_hw = hw;
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 167 if (con_id) {
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 168 strlcpy(cla->con_id, con_id, sizeof(cla->con_id));
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 169 cla->cl.con_id = cla->con_id;
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 170 }
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 171
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 172 if (dev_fmt) {
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 @173 vscnprintf(cla->dev_id, sizeof(cla->dev_id), dev_fmt, ap);
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 174 cla->cl.dev_id = cla->dev_id;
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 175 }
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 176
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 177 return &cla->cl;
0318e693d3a5683 arch/arm/common/clkdev.c Russell King 2008-11-09 178 }
e9d7f4065408e92 drivers/clk/clkdev.c Russell King 2012-05-02 179
:::::: The code at line 173 was first introduced by commit
:::::: 0318e693d3a56836632bf1a2cfdafb7f34bcc703 [ARM] clkdev: add generic clkdev infrastructure
:::::: TO: Russell King <rmk@dyn-67.arm.linux.org.uk>
:::::: CC: Russell King <rmk+kernel@arm.linux.org.uk>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-12-15 15:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202412152318.z9ab4gLN-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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
all inboxes | Powered by JetHome®