Commit 2eec6c81 authored by Daniel J Blueman's avatar Daniel J Blueman Committed by Josef Bacik

Fix minor type issues

Address some minor type issues identified by sparse checker.
Signed-off-by: default avatarDaniel J Blueman <daniel@quora.org>
parent 0d2450ab
...@@ -2916,7 +2916,7 @@ long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg) ...@@ -2916,7 +2916,7 @@ long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg)
up_read(&info->groups_sem); up_read(&info->groups_sem);
} }
user_dest = (struct btrfs_ioctl_space_info *) user_dest = (struct btrfs_ioctl_space_info __user *)
(arg + sizeof(struct btrfs_ioctl_space_args)); (arg + sizeof(struct btrfs_ioctl_space_args));
if (copy_to_user(user_dest, dest_orig, alloc_size)) if (copy_to_user(user_dest, dest_orig, alloc_size))
......
...@@ -95,7 +95,7 @@ EXPORT_SYMBOL(ulist_reinit); ...@@ -95,7 +95,7 @@ EXPORT_SYMBOL(ulist_reinit);
* *
* The allocated ulist will be returned in an initialized state. * The allocated ulist will be returned in an initialized state.
*/ */
struct ulist *ulist_alloc(unsigned long gfp_mask) struct ulist *ulist_alloc(gfp_t gfp_mask)
{ {
struct ulist *ulist = kmalloc(sizeof(*ulist), gfp_mask); struct ulist *ulist = kmalloc(sizeof(*ulist), gfp_mask);
...@@ -144,7 +144,7 @@ EXPORT_SYMBOL(ulist_free); ...@@ -144,7 +144,7 @@ EXPORT_SYMBOL(ulist_free);
* unaltered. * unaltered.
*/ */
int ulist_add(struct ulist *ulist, u64 val, unsigned long aux, int ulist_add(struct ulist *ulist, u64 val, unsigned long aux,
unsigned long gfp_mask) gfp_t gfp_mask)
{ {
int i; int i;
......
...@@ -59,10 +59,9 @@ struct ulist { ...@@ -59,10 +59,9 @@ struct ulist {
void ulist_init(struct ulist *ulist); void ulist_init(struct ulist *ulist);
void ulist_fini(struct ulist *ulist); void ulist_fini(struct ulist *ulist);
void ulist_reinit(struct ulist *ulist); void ulist_reinit(struct ulist *ulist);
struct ulist *ulist_alloc(unsigned long gfp_mask); struct ulist *ulist_alloc(gfp_t gfp_mask);
void ulist_free(struct ulist *ulist); void ulist_free(struct ulist *ulist);
int ulist_add(struct ulist *ulist, u64 val, unsigned long aux, int ulist_add(struct ulist *ulist, u64 val, unsigned long aux, gfp_t gfp_mask);
unsigned long gfp_mask);
struct ulist_node *ulist_next(struct ulist *ulist, struct ulist_node *prev); struct ulist_node *ulist_next(struct ulist *ulist, struct ulist_node *prev);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment