From: Andrew Morton drivers/md/dm-ioctl.c: In function 'dm_compat_ctl_ioctl': drivers/md/dm-ioctl.c:1479: warning: passing argument 1 of 'dm_ctl_ioctl' makes pointer from integer without a cast drivers/md/dm-ioctl.c:1479: warning: passing argument 2 of 'dm_ctl_ioctl' makes integer from pointer without a cast drivers/md/dm-ioctl.c:1479: error: too few arguments to function 'dm_ctl_ioctl' Something like this - I didn't try very hard: Cc: Alasdair G Kergon Signed-off-by: Andrew Morton --- drivers/md/dm-ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/md/dm-ioctl.c~agk-dm-dm-ioctl-move-compat-code-fix drivers/md/dm-ioctl.c --- a/drivers/md/dm-ioctl.c~agk-dm-dm-ioctl-move-compat-code-fix +++ a/drivers/md/dm-ioctl.c @@ -1478,7 +1478,7 @@ static long dm_ctl_ioctl(struct file *fi #ifdef CONFIG_COMPAT static long dm_compat_ctl_ioctl(struct file *file, uint command, ulong u) { - return (long)dm_ctl_ioctl(file, command, compat_ptr(u)); + return (long)dm_ctl_ioctl(file, command, u); } #else #define dm_compat_ctl_ioctl NULL _