* drivers/clk/clkdev.c:173:17: warning: function 'vclkdev_alloc' might be a candidate for 'gnu_printf' format attribute
@ 2024-12-15 15:55 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-15 15:55 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: oe-kbuild-all, linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-12-15 15:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-15 15:55 drivers/clk/clkdev.c:173:17: warning: function 'vclkdev_alloc' might be a candidate for 'gnu_printf' format attribute kernel test robot
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®