diff options
author | grehan <grehan@FreeBSD.org> | 2012-09-13 00:42:56 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2012-09-13 00:42:56 +0000 |
commit | 6710f702eaa51fc057c667262fda0be950d477e3 (patch) | |
tree | 7e0dbe539ecb0c535fe0dc05567ba142217f5757 /sys/dev/virtio | |
parent | fe397696c6e8be3ef0f302060829081e6d5d9a5f (diff) | |
download | FreeBSD-src-6710f702eaa51fc057c667262fda0be950d477e3.zip FreeBSD-src-6710f702eaa51fc057c667262fda0be950d477e3.tar.gz |
No need to leak these into the includer's namespace.
Submitted by: Bryan Venteicher bryanv at daemoninthecloset org
Diffstat (limited to 'sys/dev/virtio')
-rw-r--r-- | sys/dev/virtio/virtio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/virtio/virtio.h b/sys/dev/virtio/virtio.h index 8c22b12..e8cdaf8 100644 --- a/sys/dev/virtio/virtio.h +++ b/sys/dev/virtio/virtio.h @@ -151,6 +151,8 @@ VIRTIO_RDWR_DEVICE_CONFIG(1, uint8_t); VIRTIO_RDWR_DEVICE_CONFIG(2, uint16_t); VIRTIO_RDWR_DEVICE_CONFIG(4, uint32_t); +#undef VIRTIO_RDWR_DEVICE_CONFIG + #define VIRTIO_READ_IVAR(name, ivar) \ static inline int \ __CONCAT(virtio_get_,name)(device_t dev) \ @@ -166,6 +168,8 @@ VIRTIO_READ_IVAR(device, VIRTIO_IVAR_DEVICE); VIRTIO_READ_IVAR(subvendor, VIRTIO_IVAR_SUBVENDOR); VIRTIO_READ_IVAR(subdevice, VIRTIO_IVAR_SUBDEVICE); +#undef VIRTIO_READ_IVAR + #define VIRTIO_WRITE_IVAR(name, ivar) \ static inline void \ __CONCAT(virtio_set_,name)(device_t dev, void *val) \ @@ -175,4 +179,6 @@ __CONCAT(virtio_set_,name)(device_t dev, void *val) \ VIRTIO_WRITE_IVAR(feature_desc, VIRTIO_IVAR_FEATURE_DESC); +#undef VIRTIO_WRITE_IVAR + #endif /* _VIRTIO_H_ */ |