Arnd Bergmann
664760c49d
xhci: use pm_ptr() instead of #ifdef for CONFIG_PM conditionals
...
commit 130eac4170 upstream.
A recent patch caused an unused-function warning in builds with
CONFIG_PM disabled, after the function became marked 'static':
drivers/usb/host/xhci-pci.c:91:13: error: 'xhci_msix_sync_irqs' defined but not used [-Werror=unused-function]
91 | static void xhci_msix_sync_irqs(struct xhci_hcd *xhci)
| ^~~~~~~~~~~~~~~~~~~
This could be solved by adding another #ifdef, but as there is
a trend towards removing CONFIG_PM checks in favor of helper
macros, do the same conversion here and use pm_ptr() to get
either a function pointer or NULL but avoid the warning.
As the hidden functions reference some other symbols, make
sure those are visible at compile time, at the minimal cost of
a few extra bytes for 'struct usb_device'.
Fixes: 9abe15d55d ("xhci: Move xhci MSI sync function to to xhci-pci")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Link: https://lore.kernel.org/r/20230328131114.1296430-1-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2025-02-01 18:22:34 +01:00
..
2023-08-30 16:23:11 +02:00
2023-11-08 17:30:47 +01:00
2024-06-16 13:32:19 +02:00
2024-10-22 15:39:23 +02:00
2023-06-28 10:28:13 +02:00
2024-12-14 19:48:21 +01:00
2024-01-25 14:37:54 -08:00
2024-10-22 15:39:29 +02:00
2024-06-21 14:54:12 +02:00
2023-11-20 11:06:52 +01:00
2025-02-01 18:22:27 +01:00
2024-06-16 13:32:33 +02:00
2024-02-23 08:42:31 +01:00
2024-04-13 12:58:29 +02:00
2023-12-13 18:26:57 +01:00
2023-06-05 09:07:02 +02:00
2024-08-19 05:40:47 +02:00
2023-06-28 10:28:08 +02:00
2024-08-19 05:41:03 +02:00
2024-11-17 14:59:37 +01:00
2024-12-14 19:48:16 +01:00
2025-02-01 18:22:34 +01:00
2023-09-23 11:01:05 +02:00
2023-10-10 21:53:33 +02:00
2023-09-19 12:20:28 +02:00
2024-02-23 08:41:53 +01:00
2024-09-04 13:17:42 +02:00
2024-09-04 13:17:30 +02:00
2025-02-01 18:22:30 +01:00
2024-12-14 19:48:14 +01:00
2023-07-27 08:43:37 +02:00
2024-07-18 13:05:43 +02:00
2023-10-10 21:53:35 +02:00
2024-10-17 15:07:38 +02:00
2024-09-12 11:06:42 +02:00
2024-01-25 14:37:49 -08:00
2023-08-30 16:23:19 +02:00
2024-07-05 09:12:55 +02:00
2024-08-19 05:41:22 +02:00
2024-11-08 16:22:02 +01:00
2024-12-19 18:06:13 +01:00
2024-04-13 12:58:59 +02:00
2023-12-13 18:26:56 +01:00
2024-09-04 13:17:30 +02:00
2023-08-30 16:23:17 +02:00
2023-12-20 15:44:30 +01:00
2024-12-14 19:47:56 +01:00
2023-05-30 12:57:45 +01:00
2024-01-25 14:37:50 -08:00
2024-02-23 08:42:18 +01:00
2024-06-21 14:53:27 +02:00
2024-12-14 19:48:32 +01:00
2024-07-18 13:05:50 +02:00
2024-06-21 14:53:19 +02:00
2024-05-02 16:23:44 +02:00
2023-09-19 12:20:06 +02:00
2024-06-21 14:54:13 +02:00
2024-06-16 13:32:17 +02:00
2024-06-21 14:53:46 +02:00
2024-06-21 14:52:49 +02:00
2024-03-26 18:21:50 -04:00
2024-11-17 14:59:37 +01:00
2024-09-12 11:06:41 +02:00
2024-07-18 13:05:43 +02:00
2025-02-01 18:22:24 +01:00
2024-04-13 12:59:22 +02:00
2023-12-08 08:46:08 +01:00
2025-02-01 18:22:29 +01:00
2024-03-15 10:48:22 -04:00
2024-09-12 11:06:41 +02:00
2025-01-09 13:24:54 +01:00
2024-10-17 15:07:44 +02:00
2023-11-20 11:06:56 +01:00
2023-09-19 12:20:22 +02:00
2023-10-10 21:53:28 +02:00
2025-01-09 13:25:03 +01:00
2024-03-26 18:21:53 -04:00
2023-07-27 08:43:37 +02:00
2024-03-26 18:21:45 -04:00
2024-07-05 09:12:27 +02:00
2023-08-26 15:26:43 +02:00
2023-10-25 11:54:20 +02:00
2023-10-25 11:54:14 +02:00
2024-08-19 05:41:10 +02:00
2024-08-19 05:41:07 +02:00
2024-05-02 16:23:36 +02:00
2024-06-21 14:52:45 +02:00
2024-08-19 05:40:58 +02:00
2024-12-14 19:47:45 +01:00
2024-10-17 15:08:29 +02:00
2023-11-08 17:30:43 +01:00
2024-07-05 09:12:41 +02:00
2023-06-21 15:45:35 +02:00
2024-01-05 15:12:25 +01:00
2023-06-21 15:45:35 +02:00
2024-06-21 14:53:28 +02:00
2024-12-14 19:48:30 +01:00
2023-10-10 21:53:35 +02:00
2024-12-14 19:48:09 +01:00
2024-07-18 13:05:44 +02:00
2024-03-15 10:48:20 -04:00
2023-10-25 11:54:15 +02:00
2023-08-26 15:26:48 +02:00
2024-11-08 16:22:03 +01:00
2024-12-14 19:47:40 +01:00
2024-07-18 13:05:45 +02:00
2024-07-05 09:12:43 +02:00
2024-10-17 15:08:29 +02:00
2023-09-02 09:18:12 +02:00
2024-06-16 13:32:26 +02:00
2024-03-26 18:21:53 -04:00
2024-12-14 19:48:05 +01:00
2023-11-20 11:06:46 +01:00
2023-06-21 15:45:38 +02:00
2023-06-21 15:45:38 +02:00
2024-12-14 19:47:56 +01:00
2024-06-21 14:54:09 +02:00
2024-10-17 15:08:33 +02:00
2024-04-13 12:58:31 +02:00
2023-10-10 21:53:24 +02:00
2024-06-21 14:54:10 +02:00
2024-06-21 14:53:36 +02:00
2024-06-21 14:53:03 +02:00
2023-09-19 12:20:04 +02:00
2023-07-27 08:43:40 +02:00
2024-07-05 09:12:50 +02:00
2024-08-19 05:40:45 +02:00
2024-04-13 12:59:39 +02:00
2024-01-25 14:37:40 -08:00
2023-11-20 11:06:44 +01:00
2023-11-20 11:06:52 +01:00
2024-10-17 15:08:31 +02:00
2024-07-05 09:12:45 +02:00
2023-12-13 18:27:04 +01:00
2023-07-27 08:43:58 +02:00
2024-11-17 14:59:35 +01:00
2024-06-21 14:53:16 +02:00
2024-02-23 08:41:59 +01:00
2023-11-08 17:30:47 +01:00
2024-02-23 08:42:32 +01:00
2023-08-11 11:57:55 +02:00
2025-02-01 18:22:28 +01:00
2023-06-05 09:07:03 +02:00
2023-05-17 11:48:19 +02:00
2024-10-17 15:07:44 +02:00
2023-11-28 16:54:53 +00:00
2023-10-25 11:54:13 +02:00
2023-10-25 11:54:13 +02:00
2023-08-30 16:23:18 +02:00
2023-07-27 08:44:13 +02:00
2024-03-26 18:22:04 -04:00
2024-03-15 10:48:23 -04:00
2024-03-26 18:22:01 -04:00
2023-11-08 17:30:47 +01:00
2024-05-17 11:48:07 +02:00
2025-02-01 18:22:32 +01:00
2024-07-18 13:05:44 +02:00
2024-12-14 19:47:45 +01:00
2023-07-27 08:44:31 +02:00
2024-05-02 16:23:46 +02:00
2025-01-09 13:24:59 +01:00
2024-07-27 10:40:22 +02:00
2024-03-01 13:16:50 +01:00
2024-03-15 10:48:20 -04:00
2024-12-19 18:06:14 +01:00
2024-02-23 08:41:54 +01:00
2023-06-21 15:45:35 +02:00
2024-07-05 09:12:55 +02:00
2024-06-21 14:53:18 +02:00
2024-08-19 05:40:57 +02:00
2023-07-27 08:44:43 +02:00
2024-04-13 12:57:58 +02:00
2025-01-09 13:25:00 +01:00
2023-05-17 11:48:09 +02:00
2024-05-02 16:23:33 +02:00
2024-04-13 12:59:31 +02:00
2024-02-23 08:41:51 +01:00
2025-02-01 18:22:34 +01:00
2024-06-21 14:53:06 +02:00
2024-12-14 19:48:17 +01:00
2024-10-17 15:07:57 +02:00
2024-04-13 12:59:20 +02:00
2023-08-26 15:26:53 +02:00
2024-02-23 08:41:55 +01:00
2025-01-09 13:24:56 +01:00
2025-01-09 13:24:55 +01:00
2023-12-08 08:46:13 +01:00