Re: [PATCH printk v1] printk: use gnu_printf format attribute for printk_sprint()
From: Petr Mladek
Date: Mon Oct 04 2021 - 05:24:39 EST
On Mon 2021-09-27 16:28:03, John Ogness wrote:
> Fix the following W=1 kernel build warning:
>
> kernel/printk/printk.c: In function 'printk_sprint':
> kernel/printk/printk.c:1913:9: warning: function 'printk_sprint' might be
> a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: John Ogness <john.ogness@xxxxxxxxxxxxx>
The patch has been committed into printk/linux.git, branch for-5.16.
Best Regards,
Petr