Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: hci_serdev: make hci_serdev_client_ops static

The structure hci_serdev_client_ops does not need to be in global scope
and is not modified, so make it static.

Cleans up sparse warning:
"symbol 'hci_serdev_client_ops' was not declared. Should it be static?"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

authored by

Colin Ian King and committed by
Marcel Holtmann
640e32c9 4b943fae

+2 -2
+2 -2
drivers/bluetooth/hci_serdev.c
··· 31 31 32 32 #include "hci_uart.h" 33 33 34 - struct serdev_device_ops hci_serdev_client_ops; 34 + static struct serdev_device_ops hci_serdev_client_ops; 35 35 36 36 static inline void hci_uart_tx_complete(struct hci_uart *hu, int pkt_type) 37 37 { ··· 268 268 return count; 269 269 } 270 270 271 - struct serdev_device_ops hci_serdev_client_ops = { 271 + static struct serdev_device_ops hci_serdev_client_ops = { 272 272 .receive_buf = hci_uart_receive_buf, 273 273 .write_wakeup = hci_uart_write_wakeup, 274 274 };