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
2525 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2626 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2727 * SUCH DAMAGE. */
28−#include <linux/types.h>
28+#include <linux/virtio_types.h>
2929 #include <linux/virtio_ids.h>
3030 #include <linux/virtio_config.h>
3131
@@ -36,7 +36,7 @@ · 4 unmodified lines
3636
3737 struct virtio_9p_config {
3838 /* length of the tag name */
39− __u16 tag_len;
39+ __virtio16 tag_len;
4040 /* non-NULL terminated tag name */
4141 __u8 tag[0];
4242 } __attribute__((packed));