Add the __user annotations to pointers in structures.
Signed-off-by: David Sterba <dsterba@suse.cz>
extern "C" {
#endif
+#ifndef __user
+#define __user
+#endif
+
#define BTRFS_IOCTL_MAGIC 0x94
#define BTRFS_VOL_NAME_MAX 255
union {
struct {
__u64 size;
- struct btrfs_qgroup_inherit *qgroup_inherit;
+ struct btrfs_qgroup_inherit __user *qgroup_inherit;
};
__u64 unused[4];
};
struct btrfs_ioctl_send_args {
__s64 send_fd; /* in */
__u64 clone_sources_count; /* in */
- __u64 *clone_sources; /* in */
+ __u64 __user *clone_sources; /* in */
__u64 parent_root; /* in */
__u64 flags; /* in */
__u64 reserved[4]; /* in */