virtio: let header files include virtio_ids.h
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 30 Sep 2009 09:17:21 +0000 (11:17 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Oct 2009 06:09:28 +0000 (16:39 +1030)
commite95646c3ec33c8ec0693992da4332a6b32eb7e31
tree7855767cc4dccdefc4ea64584cc01b64f92176f3
parentf8b12e513b953aebf30f8ff7d2de9be7e024dbbe
virtio: let header files include virtio_ids.h

Rusty,

commit 3ca4f5ca73057a617f9444a91022d7127041970a
    virtio: add virtio IDs file
moved all device IDs into a single file. While the change itself is
a very good one, it can break userspace applications. For example
if a userspace tool wanted to get the ID of virtio_net it used to
include virtio_net.h. This does no longer work, since virtio_net.h
does not include virtio_ids.h.
This patch moves all "#include <linux/virtio_ids.h>" from the C
files into the header files, making the header files compatible with
the old ones.

In addition, this patch exports virtio_ids.h to userspace.

CC: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
14 files changed:
Documentation/lguest/lguest.c
drivers/block/virtio_blk.c
drivers/char/hw_random/virtio-rng.c
drivers/char/virtio_console.c
drivers/net/virtio_net.c
drivers/virtio/virtio_balloon.c
include/linux/Kbuild
include/linux/virtio_9p.h
include/linux/virtio_balloon.h
include/linux/virtio_blk.h
include/linux/virtio_console.h
include/linux/virtio_net.h
include/linux/virtio_rng.h
net/9p/trans_virtio.c