Przeglądaj źródła

drm: cast handle to a pointer to avoid warning

Andrew reported a warning on this line, just case to void *.

Signed-off-by: Dave Airlie <airlied@linux.ie>
Dave Airlie 19 lat temu
rodzic
commit
13e4a9c851
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/char/drm/drm_bufs.c

+ 1 - 1
drivers/char/drm/drm_bufs.c

@@ -309,7 +309,7 @@ int drm_addmap_ioctl(struct inode *inode, struct file *filp,
 
 	if (copy_to_user(argp, maplist->map, sizeof(drm_map_t)))
 		return -EFAULT;
-	if (put_user(maplist->user_token, &argp->handle))
+	if (put_user((void *)maplist->user_token, &argp->handle))
 		return -EFAULT;
 	return 0;
 }