Message ID | alpine.DEB.2.10.1704241423030.16723@sstabellini-ThinkPad-X260 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 24 April 2017 at 22:25, Stefano Stabellini <sstabellini@kernel.org> wrote: > diff --git a/hw/9pfs/xen-9pfs.h b/hw/9pfs/xen-9pfs.h > new file mode 100644 > index 0000000..18f0ec0 > --- /dev/null > +++ b/hw/9pfs/xen-9pfs.h > @@ -0,0 +1,14 @@ > +/* > + * Xen 9p backend > + * > + * Copyright Aporeto 2017 > + * > + * Authors: > + * Stefano Stabellini <stefano@aporeto.com> > + * > + */ Trivial file, but I prefer it if we have a brief license statement in every file, just to be clear (it might accumulate more code later). > + > +#include <xen/io/protocols.h> > +#include "hw/xen/io/ring.h" > + > +DEFINE_XEN_FLEX_RING_AND_INTF(xen_9pfs); Is it worth a comment to dissuade people from thinking they can inline the file back into xen-9p-backend.c ? thanks -- PMM
diff --git a/hw/9pfs/xen-9p-backend.c b/hw/9pfs/xen-9p-backend.c index 7e962aa..9c7f41a 100644 --- a/hw/9pfs/xen-9p-backend.c +++ b/hw/9pfs/xen-9p-backend.c @@ -13,12 +13,9 @@ #include "hw/hw.h" #include "hw/9pfs/9p.h" #include "hw/xen/xen_backend.h" -#include "hw/xen/io/ring.h" +#include "hw/9pfs/xen-9pfs.h" #include "qemu/config-file.h" #include "fsdev/qemu-fsdev.h" -#include <xen/io/protocols.h> - -DEFINE_XEN_FLEX_RING_AND_INTF(xen_9pfs); #define VERSIONS "1" #define MAX_RINGS 8 diff --git a/hw/9pfs/xen-9pfs.h b/hw/9pfs/xen-9pfs.h new file mode 100644 index 0000000..18f0ec0 --- /dev/null +++ b/hw/9pfs/xen-9pfs.h @@ -0,0 +1,14 @@ +/* + * Xen 9p backend + * + * Copyright Aporeto 2017 + * + * Authors: + * Stefano Stabellini <stefano@aporeto.com> + * + */ + +#include <xen/io/protocols.h> +#include "hw/xen/io/ring.h" + +DEFINE_XEN_FLEX_RING_AND_INTF(xen_9pfs);