linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Annotate pm_runtime_resume_and_get() as __must_check ?
@ 2021-07-31  9:08 Heiner Kallweit
  2021-08-03 13:07 ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Heiner Kallweit @ 2021-07-31  9:08 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Linux PM

Seeing an erroneous use of pm_runtime_resume_and_get() in a patch I wonder
whether we should annotate this function as __must_check. If the caller
doesn't check the return code he doesn't know whether usage counter was
bumped or not. Therefore I see a good chance that this results in a usage
counter imbalance.

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

end of thread, other threads:[~2021-12-23  6:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-31  9:08 Annotate pm_runtime_resume_and_get() as __must_check ? Heiner Kallweit
2021-08-03 13:07 ` Rafael J. Wysocki
2021-12-23  6:59   ` Heiner Kallweit

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).