lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202412152318.z9ab4gLN-lkp@intel.com>
Date: Sun, 15 Dec 2024 23:55:28 +0800
From: kernel test robot <lkp@...el.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: drivers/clk/clkdev.c:173:17: warning: function 'vclkdev_alloc' might
 be a candidate for 'gnu_printf' format attribute

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@...el.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@...-67.arm.linux.org.uk>
:::::: CC: Russell King <rmk+kernel@....linux.org.uk>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ