summaryrefslogtreecommitdiff
path: root/vmwgfx_ldu.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2015-11-10 10:22:56 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2015-11-18 02:45:34 -0800
commit70b080c24669353d97e99f34befede23c5c50b7b (patch)
treec99d6d372082e654bb67a75092be5bfdd7e94b20 /vmwgfx_ldu.c
parent23c50374e6574cc41921d0b98e4516e0224f106f (diff)
vmwgfx: Fix address-space- visibility- and endian warnings and errors
Found by sparse. Also annotate and fix code to avoid confusing sparse with unusual locking patterns. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'vmwgfx_ldu.c')
-rw-r--r--vmwgfx_ldu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vmwgfx_ldu.c b/vmwgfx_ldu.c
index 1f22fd6..fc43efe 100644
--- a/vmwgfx_ldu.c
+++ b/vmwgfx_ldu.c
@@ -482,11 +482,11 @@ int vmw_kms_ldu_do_dmabuf_dirty(struct vmw_private *dev_priv,
memset(cmd, 0, fifo_size);
for (i = 0; i < num_clips; i++, clips += increment) {
- cmd[i].header = cpu_to_le32(SVGA_CMD_UPDATE);
- cmd[i].body.x = cpu_to_le32(clips->x1);
- cmd[i].body.y = cpu_to_le32(clips->y1);
- cmd[i].body.width = cpu_to_le32(clips->x2 - clips->x1);
- cmd[i].body.height = cpu_to_le32(clips->y2 - clips->y1);
+ cmd[i].header = SVGA_CMD_UPDATE;
+ cmd[i].body.x = clips->x1;
+ cmd[i].body.y = clips->y1;
+ cmd[i].body.width = clips->x2 - clips->x1;
+ cmd[i].body.height = clips->y2 - clips->y1;
}
vmw_fifo_commit(dev_priv, fifo_size);