Skip to content

Commit

Permalink
virtio_net: add _UAPI prefix to virtio_net header guards
Browse files Browse the repository at this point in the history
This gives better namespacing and prevents conflicts with no-uapi version
of virtio_net header that will be introduced in the following patch.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Mike Rapoport authored and David S. Miller committed Jun 11, 2016
1 parent 231edca commit 678ece3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/uapi/linux/virtio_net.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _LINUX_VIRTIO_NET_H
#define _LINUX_VIRTIO_NET_H
#ifndef _UAPI_LINUX_VIRTIO_NET_H
#define _UAPI_LINUX_VIRTIO_NET_H
/* This header is BSD licensed so anyone can use the definitions to implement
* compatible drivers/servers.
*
Expand Down Expand Up @@ -245,4 +245,4 @@ struct virtio_net_ctrl_mq {
#define VIRTIO_NET_CTRL_GUEST_OFFLOADS 5
#define VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET 0

#endif /* _LINUX_VIRTIO_NET_H */
#endif /* _UAPI_LINUX_VIRTIO_NET_H */

0 comments on commit 678ece3

Please sign in to comment.