All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] locking/mutex: Mark devm_mutex_init() as __must_check
@ 2025-02-04  6:52 Thomas Weißschuh
  2025-02-04  6:52 ` [PATCH v2 1/2] leds: st1202: Check for error code from devm_mutex_init() call Thomas Weißschuh
  2025-02-04  6:52 ` [PATCH v2 2/2] locking/mutex: Mark devm_mutex_init() as __must_check Thomas Weißschuh
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Weißschuh @ 2025-02-04  6:52 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Will Deacon, Waiman Long, Boqun Feng,
	Pavel Machek, Lee Jones, Vicentiu Galanopulo
  Cc: Andy Shevchenko, linux-kernel, linux-leds, Thomas Weißschuh

Even if it's not critical, the avoidance of checking the error code
from devm_mutex_init() call today diminishes the point of using devm
variant of it. Tomorrow it may even leak something. Enforce all callers
checking the return value through the compiler.

The series should go through the locking tree.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v2:
- Rebase on 6.14-rc1
- Fix up leds-1202 driver
- Link to v1: https://lore.kernel.org/r/20241202-must_check-devm_mutex_init-v1-1-e60eb97b8c72@weissschuh.net

---
Thomas Weißschuh (2):
      leds: st1202: Check for error code from devm_mutex_init() call
      locking/mutex: Mark devm_mutex_init() as __must_check

 drivers/leds/leds-st1202.c |  4 +++-
 include/linux/mutex.h      | 17 ++++++++---------
 2 files changed, 11 insertions(+), 10 deletions(-)
---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20241031-must_check-devm_mutex_init-cac583bda8fe

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>


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

end of thread, other threads:[~2025-02-11 13:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-04  6:52 [PATCH v2 0/2] locking/mutex: Mark devm_mutex_init() as __must_check Thomas Weißschuh
2025-02-04  6:52 ` [PATCH v2 1/2] leds: st1202: Check for error code from devm_mutex_init() call Thomas Weißschuh
2025-02-11 13:41   ` (subset) " Lee Jones
2025-02-04  6:52 ` [PATCH v2 2/2] locking/mutex: Mark devm_mutex_init() as __must_check Thomas Weißschuh
2025-02-04  9:01   ` Peter Zijlstra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.