History

virtio_9p: correct tags for config space fields

Tag config space fields as having virtio endian-ness.

Michael S. Tsirkin committed 6 years ago

Commit cae19a61 parent a4235ec1 file · +2 −2Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/virtio_9p.h+2−2
@@ -25,7 +25,7 @@ · 24 unmodified lines
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE. */27 * SUCH DAMAGE. */
28#include <linux/types.h>28#include <linux/virtio_types.h>
29#include <linux/virtio_ids.h>29#include <linux/virtio_ids.h>
30#include <linux/virtio_config.h>30#include <linux/virtio_config.h>
31 31
@@ -36,7 +36,7 @@ · 4 unmodified lines
36 36
37struct virtio_9p_config {37struct virtio_9p_config {
38 /* length of the tag name */38 /* length of the tag name */
39 __u16 tag_len;39 __virtio16 tag_len;
40 /* non-NULL terminated tag name */40 /* non-NULL terminated tag name */
41 __u8 tag[0];41 __u8 tag[0];
42} __attribute__((packed));42} __attribute__((packed));