X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=init%2Fdo_mounts_md.c;h=8cb6db54285ba64f81af9ba2b388a7c216ceec61;hb=f47b58b75f5e2a424834eb15f7565a7458a12f44;hp=32c4799b8c91bb483f418cd6a39e1e11eda0cd7a;hpb=be6786ac738801d39cfd264ec88c352efd029578;p=cascardo%2Flinux.git diff --git a/init/do_mounts_md.c b/init/do_mounts_md.c index 32c4799b8c91..8cb6db54285b 100644 --- a/init/do_mounts_md.c +++ b/init/do_mounts_md.c @@ -1,3 +1,13 @@ +/* + * Many of the syscalls used in this file expect some of the arguments + * to be __user pointers not __kernel pointers. To limit the sparse + * noise, turn off sparse checking for this file. + */ +#ifdef __CHECKER__ +#undef __CHECKER__ +#warning "Sparse checking disabled for this file" +#endif + #include #include #include @@ -283,7 +293,7 @@ static void __init autodetect_raid(void) wait_for_device_probe(); - fd = sys_open((const char __user __force *) "/dev/md0", 0, 0); + fd = sys_open("/dev/md0", 0, 0); if (fd >= 0) { sys_ioctl(fd, RAID_AUTORUN, raid_autopart); sys_close(fd);