[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DESPFV5ANWM5.QON75G6PESZ5@google.com>
Date: Mon, 08 Dec 2025 08:50:17 +0000
From: Brendan Jackman <jackmanb@...gle.com>
To: Peter Zijlstra <peterz@...radead.org>, Brendan Jackman <jackmanb@...gle.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, <linux-kernel@...r.kernel.org>,
<kees@...nel.org>, <acarmina@...hat.com>, <jpoimboe@...nel.org>,
<mark.rutland@....com>, <maciej.wieczor-retman@...el.com>
Subject: Re: [PATCH] bug: hush suggest-attribute=format for __warn_printf()
On Mon Dec 8, 2025 at 8:38 AM UTC, Peter Zijlstra wrote:
> On Sun, Dec 07, 2025 at 03:53:18AM +0000, Brendan Jackman wrote:
>> Recent additions to this function cause GCC 14.3.0 to get excited and
>> suggest a missing attribute:
>>
>> lib/bug.c: In function ‘__warn_printf’:
>> lib/bug.c:187:25: error: function ‘__warn_printf’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]
>> 187 | vprintk(fmt, *args);
>> | ^~~~~~~
>>
>> Disable the diagnostic locally, following the pattern used for stuff
>> like va_format().
>
> No real objection, but why haven't I seen this in my own builds? Most of
> my machines are on gcc-14 / gcc-15.
Ah, yeah, apparently it only shows up with W=1.
Powered by blists - more mailing lists