vm_sockets_get_local_cid() is only used in virtio_transport_common.c. We can replace it calling the virtio_transport_get_ops() and using the get_local_cid() callback registered by the transport.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -10,6 +10,4 @@ · 9 unmodified lines | ||
| 10 | 10 | |
| 11 | 11 | #include <uapi/linux/vm_sockets.h> |
| 12 | 12 | |
| 13 | −int vm_sockets_get_local_cid(void); | |
| 14 | − | |
| 15 | 13 | #endif /* _VM_SOCKETS_H */ |