Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion drivers/gpio/gpiolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@

#define dont_test_bit(b,d) (0)

#define REJECT_HOTPLUG_TAX 1
/*
* The SRCU bypass below skips srcu_read_lock() while the core retains its
* lockdep_assert_held(&gc->gpiodev->srcu) checks, so every gpiod_*() call
* splats under lockdep. Keep the optimisation for production builds only.
*/
#define REJECT_HOTPLUG_TAX (!IS_ENABLED(CONFIG_LOCKDEP))

#if REJECT_HOTPLUG_TAX

Expand Down
Loading