aboutsummaryrefslogtreecommitdiff
path: root/shared-core/via_map.c
diff options
context:
space:
mode:
authorThomas Hellstrom <unichrome@shipmail.org>2005-07-15 21:22:51 +0000
committerThomas Hellstrom <unichrome@shipmail.org>2005-07-15 21:22:51 +0000
commit567113788c030b367a28ea9253fbf34beef2789e (patch)
tree440552ee7a5cbd7b72b07f41fa5a0d036e349d6a /shared-core/via_map.c
parent5a5478de7ab4ee2eef0308d8b4ce5c53222cd55e (diff)
VIA: Fix sparse warnings (Alexey Dobriyan)
Diffstat (limited to 'shared-core/via_map.c')
-rw-r--r--shared-core/via_map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared-core/via_map.c b/shared-core/via_map.c
index 0be829b6..bb171139 100644
--- a/shared-core/via_map.c
+++ b/shared-core/via_map.c
@@ -95,7 +95,8 @@ int via_map_init(DRM_IOCTL_ARGS)
DRM_DEBUG("%s\n", __FUNCTION__);
- DRM_COPY_FROM_USER_IOCTL(init, (drm_via_init_t *) data, sizeof(init));
+ DRM_COPY_FROM_USER_IOCTL(init, (drm_via_init_t __user *) data,
+ sizeof(init));
switch (init.func) {
case VIA_INIT_MAP: