Bartosz Golaszewski
0d7fa0eda4
gpio: don't let lockdep complain about inherently dangerous RCU usage
...
There are two legacy, deprecated functions - gpiod_to_chip() and
gpio_device_get_chip() - that still have users in tree. They return the
address of the SRCU-protected chip outside of the read-only critical
sections. They are inherently dangerous and the users should convert to
safer alternatives. Let's explicitly silence lockdep warnings by using
rcu_dereference_check(ptr, 1). While at it: reuse
gpio_device_get_chip() in gpiod_to_chip().
Fixes: d83cee3d2bb1 ("gpio: protect the pointer to gpio_chip in gpio_device with SRCU")
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202402122234.d85cca9b-lkp@intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2024-02-15 08:39:29 +01:00
..
2023-07-29 16:03:17 +02:00
2023-07-27 09:37:33 +02:00
2023-04-11 21:08:31 +02:00
2023-08-11 14:23:29 +02:00
2023-05-23 10:09:11 +02:00
2023-06-16 11:02:07 +02:00
2023-08-03 15:58:45 +02:00
2023-10-02 08:53:57 +02:00
2022-11-30 17:18:35 +01:00
2023-10-02 08:54:09 +02:00
2022-10-19 17:03:55 +03:00
2023-03-10 16:17:20 +01:00
2023-11-04 10:23:22 +01:00
2023-07-19 13:24:01 +02:00
2023-07-19 13:26:22 +02:00
2023-10-02 08:54:20 +02:00
2023-10-02 08:54:26 +02:00
2023-08-03 15:58:46 +02:00
2023-07-19 13:24:01 +02:00
2022-06-06 14:09:16 +03:00
2022-10-19 17:03:55 +03:00
2023-10-09 09:08:08 +02:00
2023-10-02 08:54:31 +02:00
2023-07-29 15:56:33 +02:00
2024-01-02 14:16:17 +01:00
2024-02-12 10:12:41 +01:00
2023-11-13 17:59:48 +02:00
2023-11-04 10:23:23 +01:00
2024-01-15 23:15:35 +01:00
2023-01-27 14:05:38 +01:00
2023-07-29 16:04:38 +02:00
2023-09-11 09:03:44 +02:00
2023-10-02 08:54:36 +02:00
2023-10-02 08:58:01 +02:00
2023-07-27 09:33:07 +02:00
2023-01-30 15:55:28 +01:00
2023-10-02 08:54:41 +02:00
2023-05-23 10:09:11 +02:00
2023-10-13 08:39:30 +02:00
2023-07-19 13:24:01 +02:00
2023-01-30 15:55:28 +01:00
2023-01-30 15:55:28 +01:00
2023-03-09 16:08:39 +02:00
2023-08-11 14:23:32 +02:00
2023-08-11 14:23:32 +02:00
2023-03-10 16:17:30 +01:00
2023-08-11 16:20:02 +02:00
2023-12-01 10:48:32 +01:00
2022-10-26 14:52:01 +02:00
2023-10-11 11:33:38 +02:00
2023-07-29 16:05:50 +02:00
2023-03-23 14:31:18 +01:00
2023-09-27 09:06:50 +02:00
2022-06-10 14:51:36 +02:00
2023-08-01 21:14:48 +02:00
2022-06-10 14:51:36 +02:00
2023-10-02 08:54:50 +02:00
2023-08-03 15:58:49 +02:00
2023-12-07 09:24:08 +01:00
2023-08-03 15:56:30 +02:00
2023-08-03 15:58:50 +02:00
2023-05-23 10:09:11 +02:00
2023-08-01 21:15:23 +02:00
2023-10-02 08:54:55 +02:00
2022-04-25 12:10:02 +02:00
2023-03-06 17:10:46 +02:00
2022-05-20 19:20:35 +02:00
2023-03-10 16:17:32 +01:00
2024-01-15 11:11:29 +01:00
2023-10-02 08:55:00 +02:00
2023-12-18 13:43:06 +01:00
2023-11-20 14:24:50 +01:00
2023-10-02 08:55:09 +02:00
2023-10-02 08:55:04 +02:00
2023-07-19 13:24:01 +02:00
2022-10-08 09:46:29 -07:00
2023-11-09 13:47:52 -08:00
2023-08-21 14:11:16 +02:00
2023-08-11 16:21:46 +02:00
2024-01-03 11:25:41 +01:00
2023-10-04 11:37:25 +02:00
2023-08-01 21:22:38 +02:00
2023-10-02 08:57:48 +02:00
2023-08-21 10:39:58 +02:00
2023-08-22 11:41:17 +02:00
2022-06-21 18:01:11 +03:00
2023-08-11 14:23:31 +02:00
2023-08-11 14:23:33 +02:00
2023-07-20 17:22:10 +02:00
2022-10-24 12:29:26 +03:00
2024-01-03 09:50:47 +01:00
2023-11-04 10:23:22 +01:00
2023-08-03 15:58:52 +02:00
2023-08-01 21:26:48 +02:00
2023-11-04 10:23:21 +01:00
2023-03-23 14:31:18 +01:00
2022-08-31 17:46:30 +02:00
2023-03-06 12:33:02 +02:00
2023-03-06 12:33:02 +02:00
2023-11-04 10:23:22 +01:00
2024-01-15 11:07:46 +01:00
2023-05-17 11:56:24 +02:00
2023-08-01 21:27:38 +02:00
2023-05-17 11:52:14 +02:00
2023-08-03 15:44:46 +02:00
2023-11-15 15:39:40 +01:00
2023-12-08 09:37:30 +01:00
2023-03-23 14:31:18 +01:00
2022-11-15 15:41:45 +01:00
2022-06-10 14:51:35 +02:00
2023-07-19 13:24:01 +02:00
2023-12-08 09:26:28 +01:00
2023-07-19 13:24:01 +02:00
2023-08-03 15:44:49 +02:00
2023-11-20 13:33:31 +02:00
2023-11-13 17:59:48 +02:00
2023-10-31 17:21:54 -10:00
2022-10-03 20:56:46 +02:00
2023-07-19 13:24:01 +02:00
2023-11-04 10:23:23 +01:00
2023-03-23 14:31:18 +01:00
2023-09-27 08:51:28 +02:00
2022-02-25 09:59:35 +01:00
2023-05-23 10:09:11 +02:00
2023-07-19 13:24:01 +02:00
2023-05-17 11:40:40 +02:00
2023-08-03 15:55:34 +02:00
2023-12-27 15:56:48 +01:00
2023-07-19 13:24:01 +02:00
2023-07-19 13:22:13 +02:00
2023-08-03 15:47:58 +02:00
2023-07-19 13:24:01 +02:00
2023-07-19 13:24:01 +02:00
2023-10-02 08:55:27 +02:00
2023-05-31 17:01:34 +02:00
2023-10-02 08:55:32 +02:00
2023-11-04 10:23:22 +01:00
2023-03-23 14:31:18 +01:00
2023-08-03 15:48:15 +02:00
2023-07-19 13:24:01 +02:00
2022-06-06 14:09:16 +03:00
2022-06-23 16:29:55 +02:00
2023-12-08 09:26:20 +01:00
2022-10-24 12:29:41 +03:00
2023-12-08 09:26:25 +01:00
2023-08-29 10:21:56 -07:00
2023-10-02 08:55:38 +02:00
2023-10-02 08:55:42 +02:00
2023-12-18 09:56:21 +01:00
2023-03-23 14:31:19 +01:00
2023-08-03 15:58:54 +02:00
2023-08-03 15:48:27 +02:00
2023-10-02 08:55:50 +02:00
2024-02-12 10:18:31 +01:00
2023-03-06 12:33:02 +02:00
2024-02-15 08:39:18 +01:00
2023-01-30 15:55:28 +01:00
2024-01-22 09:43:33 +01:00
2024-02-12 10:50:24 +01:00
2023-03-06 12:33:02 +02:00
2023-10-04 13:36:23 +02:00
2022-11-15 11:21:43 +01:00
2024-02-15 08:39:25 +01:00
2024-01-17 09:52:37 +01:00
2024-02-15 08:39:29 +01:00
2024-02-15 08:39:25 +01:00
2024-02-02 14:32:12 +01:00
2024-01-03 11:25:41 +01:00
2023-03-06 12:33:01 +02:00