[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Za0iLa7akcaML096@smile.fi.intel.com>
Date: Sun, 21 Jan 2024 15:54:53 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: kernel test robot <lkp@...el.com>
Cc: Petr Mladek <pmladek@...e.com>, oe-kbuild-all@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Sergey Senozhatsky <sergey.senozhatsky@...il.com>
Subject: Re: lib/vsprintf.c:1528:9: warning: function 'va_format' might be a
candidate for 'gnu_printf' format attribute
On Thu, Jan 11, 2024 at 10:33:09AM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: acc657692aed438e9931438f8c923b2b107aebf9
> commit: 45c3e93d751ea50861c796da3cbfc848fa6ddf55 vsprintf: Factor out %pV handler as va_format()
> date: 4 years, 9 months ago
Blast from the past?!
..
> All warnings (new ones prefixed by >>):
>
> lib/vsprintf.c:625:7: warning: no previous prototype for 'pointer_string' [-Wmissing-prototypes]
> 625 | char *pointer_string(char *buf, char *end, const void *ptr,
> | ^~~~~~~~~~~~~~
ce9d3eceb7ff ("lib/vsprintf: Make function pointer_string static")
..
> lib/vsprintf.c: In function 'va_format':
> >> lib/vsprintf.c:1528:9: warning: function 'va_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
> 1528 | buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va);
> | ^~~
This might be still valid, but I have no idea how to properly fix it.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists