mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Improve handling of -ENOMEM in dev_err_probe()
@ 2024-06-13 21:23 Uwe Kleine-König
  2024-06-13 21:23 ` [PATCH v2 1/2] driver core: Make dev_err_probe() silent for -ENOMEM Uwe Kleine-König
  2024-06-13 21:23 ` [PATCH RFC v2 2/2] driver core: Don't allow passing a -ENOMEM to dev_err_probe() Uwe Kleine-König
  0 siblings, 2 replies; 7+ messages in thread
From: Uwe Kleine-König @ 2024-06-13 21:23 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Uwe Kleine-König, Rafael J. Wysocki, Petr Mladek,
	Andy Shevchenko, Xiubo Li, Geert Uytterhoeven, linux-kernel

From: Uwe Kleine-König <u.kleine-koenig@baylibre.com>

Hello,

the first patch is just a (trivial) forward port of
https://lore.kernel.org/lkml/20240412164405.335657-2-u.kleine-koenig@pengutronix.de
to today's next.

In reply to the above mentioned patch submission Andy Shevchenko
suggested to make passing -ENOMEM unconditionally to dev_err_probe()
(i.e. handling the return value of a function that can only succeed or
return -ENOMEM) a build error. I'm not convinced, but for the purpose to
show good will and get the first patch in, I implemented that in the 2nd
patch. See the comments in that mail for my concerns.

After some discussion about Andy's concern the (implicit) v1 thread
died. To get the discussion going again here comes another patch
submission for these ideas.

Best regards
Uwe

Uwe Kleine-König (2):
  driver core: Make dev_err_probe() silent for -ENOMEM
  driver core: Don't allow passing a -ENOMEM to dev_err_probe()

 drivers/base/core.c        | 21 ++++++++++++++++-----
 include/linux/dev_printk.h |  8 +++++++-
 2 files changed, 23 insertions(+), 6 deletions(-)

base-commit: 6906a84c482f098d31486df8dc98cead21cce2d0
-- 
2.43.0


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

end of thread, other threads:[~2024-06-14 12:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-13 21:23 [PATCH v2 0/2] Improve handling of -ENOMEM in dev_err_probe() Uwe Kleine-König
2024-06-13 21:23 ` [PATCH v2 1/2] driver core: Make dev_err_probe() silent for -ENOMEM Uwe Kleine-König
2024-06-14  7:02   ` Geert Uytterhoeven
2024-06-13 21:23 ` [PATCH RFC v2 2/2] driver core: Don't allow passing a -ENOMEM to dev_err_probe() Uwe Kleine-König
2024-06-14  7:26   ` Geert Uytterhoeven
2024-06-14  9:15     ` Uwe Kleine-König
2024-06-14 12:10       ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®