Skip to content

Commit 82a54d0

Browse files
Asias Hedavem330
authored andcommitted
VSOCK: Move af_vsock.h and vsock_addr.h to include/net
This is useful for other VSOCK transport implemented outside the net/vmw_vsock/ directory to use these headers. Signed-off-by: Asias He <asias@redhat.com> Acked-by: Andy King <acking@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a648ab5 commit 82a54d0

6 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎net/vmw_vsock/af_vsock.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@
9696
#include <linux/wait.h>
9797
#include <linux/workqueue.h>
9898
#include <net/sock.h>
99-
100-
#include "af_vsock.h"
99+
#include <net/af_vsock.h>
101100

102101
static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr);
103102
static void vsock_sk_destruct(struct sock *sk);

‎net/vmw_vsock/vmci_transport.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
#include <linux/wait.h>
3535
#include <linux/workqueue.h>
3636
#include <net/sock.h>
37+
#include <net/af_vsock.h>
3738

38-
#include "af_vsock.h"
3939
#include "vmci_transport_notify.h"
4040

4141
static int vmci_transport_recv_dgram_cb(void *data, struct vmci_datagram *dg);

‎net/vmw_vsock/vmci_transport.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#include <linux/vmw_vmci_defs.h>
2020
#include <linux/vmw_vmci_api.h>
2121

22-
#include "vsock_addr.h"
23-
#include "af_vsock.h"
22+
#include <net/vsock_addr.h>
23+
#include <net/af_vsock.h>
2424

2525
/* If the packet format changes in a release then this should change too. */
2626
#define VMCI_TRANSPORT_PACKET_VERSION 1

‎net/vmw_vsock/vsock_addr.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
#include <linux/socket.h>
1818
#include <linux/stddef.h>
1919
#include <net/sock.h>
20-
21-
#include "vsock_addr.h"
20+
#include <net/vsock_addr.h>
2221

2322
void vsock_addr_init(struct sockaddr_vm *addr, u32 cid, u32 port)
2423
{

0 commit comments

Comments
 (0)