Skip to content

Commit

Permalink
vsock: remove include/linux/vm_sockets.h file
Browse files Browse the repository at this point in the history
This header file now only includes the "uapi/linux/vm_sockets.h".
We can include directly it when needed.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stefano Garzarella authored and David S. Miller committed Nov 15, 2019
1 parent db205c7 commit 3603a2e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 16 deletions.
13 changes: 0 additions & 13 deletions include/linux/vm_sockets.h

This file was deleted.

2 changes: 1 addition & 1 deletion include/net/af_vsock.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include <linux/kernel.h>
#include <linux/workqueue.h>
#include <linux/vm_sockets.h>
#include <uapi/linux/vm_sockets.h>

#include "vsock_addr.h"

Expand Down
2 changes: 1 addition & 1 deletion include/net/vsock_addr.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#ifndef _VSOCK_ADDR_H_
#define _VSOCK_ADDR_H_

#include <linux/vm_sockets.h>
#include <uapi/linux/vm_sockets.h>

void vsock_addr_init(struct sockaddr_vm *addr, u32 cid, u32 port);
int vsock_addr_validate(const struct sockaddr_vm *addr);
Expand Down
1 change: 0 additions & 1 deletion net/vmw_vsock/vmci_transport_notify.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <linux/types.h>
#include <linux/vmw_vmci_defs.h>
#include <linux/vmw_vmci_api.h>
#include <linux/vm_sockets.h>

#include "vmci_transport.h"

Expand Down

0 comments on commit 3603a2e

Please sign in to comment.