[PATCH 0/2] driver core: Improve warning backtrace in device probing

From: Geert Uytterhoeven
Date: Wed Nov 20 2019 - 09:36:29 EST


Hi Greg, Rafael,

Once in a while, the WARN_ON() in really_probe() is triggered due to a
bug in a driver or subsystem. While the backtrace provides some clues,
it does not reveal the offending device.

Hence this patch series adds a new dev_WARN_ON() helper, and uses that.

Thanks!

Geert Uytterhoeven (2):
driver core: Add dev_WARN_ON() helper
driver core: Print device in really_probe() warning backtrace

drivers/base/dd.c | 2 +-
include/linux/device.h | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)

--
2.17.1

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds