summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-04-26 06:03:39 +0000
committerEric Anholt <anholt@freebsd.org>2005-04-26 06:03:39 +0000
commit2fcf66a02fb0f6f31c0d02026c8c7a4d36b45f58 (patch)
tree536da5b469f9700b6383fc7454450404c5d66372
parentec111d70fee0647c4c68a02c723d4a3729c93b56 (diff)
Clean up some const qualifier cast warnings.
-rw-r--r--shared-core/savage_state.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/shared-core/savage_state.c b/shared-core/savage_state.c
index cc386527..5fb07638 100644
--- a/shared-core/savage_state.c
+++ b/shared-core/savage_state.c
@@ -814,9 +814,9 @@ static int savage_dispatch_clear(drm_savage_private_t *dev_priv,
if (nbox == 0)
return 0;
- DRM_GET_USER_UNCHECKED(mask, &((drm_savage_cmd_header_t*)data)
+ DRM_GET_USER_UNCHECKED(mask, &((const drm_savage_cmd_header_t*)data)
->clear1.mask);
- DRM_GET_USER_UNCHECKED(value, &((drm_savage_cmd_header_t*)data)
+ DRM_GET_USER_UNCHECKED(value, &((const drm_savage_cmd_header_t*)data)
->clear1.value);
clear_cmd = BCI_CMD_RECT | BCI_CMD_RECT_XP | BCI_CMD_RECT_YP |
@@ -944,7 +944,7 @@ static int savage_dispatch_draw(drm_savage_private_t *dev_priv,
case SAVAGE_CMD_VB_PRIM:
ret = savage_dispatch_vb_prim(
dev_priv, &cmd_header,
- (uint32_t __user *)usr_vtxbuf,
+ (const uint32_t __user *)usr_vtxbuf,
vb_size, vb_stride);
break;
case SAVAGE_CMD_DMA_IDX:
@@ -952,7 +952,7 @@ static int savage_dispatch_draw(drm_savage_private_t *dev_priv,
/* j was check in savage_bci_cmdbuf */
ret = savage_dispatch_dma_idx(
dev_priv, &cmd_header,
- (uint16_t __user *)usr_cmdbuf,
+ (const uint16_t __user *)usr_cmdbuf,
dmabuf);
usr_cmdbuf += j;
break;
@@ -961,8 +961,8 @@ static int savage_dispatch_draw(drm_savage_private_t *dev_priv,
/* j was check in savage_bci_cmdbuf */
ret = savage_dispatch_vb_idx(
dev_priv, &cmd_header,
- (uint16_t __user *)usr_cmdbuf,
- (uint32_t __user *)usr_vtxbuf,
+ (const uint16_t __user *)usr_cmdbuf,
+ (const uint32_t __user *)usr_vtxbuf,
vb_size, vb_stride);
usr_cmdbuf += j;
break;