Tag config space fields as having virtio endian-ness.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -25,7 +25,7 @@ · 24 unmodified lines | |||
| 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 25 | * 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 OF | 26 | * 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 | ||
| 37 | struct virtio_9p_config { | 37 | struct 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)); |