Re: [RFC] Detecting unchecked return values (with SmPL)?

From: Markus Elfring

Date: Tue Dec 01 2026 - 03:46:52 EST


> CWE-252: Unchecked Return Value

Would it become helpful to add the annotation “__must_check” to any more programming interfaces?
https://elixir.bootlin.com/linux/v7.4-rc2/source/include/linux/compiler_attributes.h#L374-L377

Would you become overwhelmed by corresponding compilation warnings (or even error messages)?

Regards,
Markus