linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Add printf/scanf -Wformat checking
@ 2025-10-16 11:04 Ben Dooks
  2025-10-16 11:04 ` [PATCH RESEND 1/4] parse: initial parsing of __attribute__((format)) Ben Dooks
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Ben Dooks @ 2025-10-16 11:04 UTC (permalink / raw)
  To: linux-sparse, Luc Van Oostenryck, Chris Li

[re-send as I can't type sparse and messages didn't get to the list]

This series (which was initially sent back in 2020) adds the
ability to deal with __attribute__((format) and checking the
arguments to formatted variadic functions.

I have been considering adding a -Wformat-linux to this as
the kernel now has a number of extra formatting options and
checking the type of these would be useful. An even nicer
extension would be some way of informing the compiler/sparse
of these at compile time (but would need to get agreement on
how to do this with the compilers too)

Another quesiton is to leave this as 4 patches or merge down?



^ permalink raw reply	[flat|nested] 9+ messages in thread
* Add printf/scanf -Wformat checking
@ 2025-10-20 15:39 Ben Dooks
  0 siblings, 0 replies; 9+ messages in thread
From: Ben Dooks @ 2025-10-20 15:39 UTC (permalink / raw)
  To: linux-sparse, Luc Van Oostenryck, Chris Li

[re-send as outgoing mail setup had a DKIM issue pointed out
by Linus]

This series (which was initially sent back in 2020) adds the
ability to deal with __attribute__((format) and checking the
arguments to formatted variadic functions.

I have been considering adding a -Wformat-linux to this as
the kernel now has a number of extra formatting options and
checking the type of these would be useful. An even nicer
extension would be some way of informing the compiler/sparse
of these at compile time (but would need to get agreement on
how to do this with the compilers too)

Another quesiton is to leave this as 4 patches or merge down?



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-10-20 15:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-16 11:04 Add printf/scanf -Wformat checking Ben Dooks
2025-10-16 11:04 ` [PATCH RESEND 1/4] parse: initial parsing of __attribute__((format)) Ben Dooks
2025-10-16 11:04 ` [PATCH RESEND 2/4] add -Wformat Ben Dooks
2025-10-16 11:04 ` [PATCH RESEND 3/4] evaluate: check variadic argument types against formatting info Ben Dooks
2025-10-16 11:04 ` [PATCH RESEND 4/4] tests: add varargs printf format tests Ben Dooks
2025-10-16 17:12 ` Add printf/scanf -Wformat checking Linus Torvalds
2025-10-17  7:47   ` Ben Dooks
2025-10-20 10:01   ` Ben Dooks
  -- strict thread matches above, loose matches on Subject: below --
2025-10-20 15:39 Ben Dooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).