mm-gup-fix-access_ok-argument-type.patch removed from -mm tree
The patch titled
Subject: mm/gup.c: fix access_ok() argument type
has been removed from the -mm tree. Its filename was
mm-gup-fix-access_ok-argument-type.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Arnd Bergmann <[email protected]>
Subject: mm/gup.c: fix access_ok() argument type
MIPS just got changed to only accept a pointer argument for access_ok(), causing one warning in drivers/scsi/pmcraid.c. I tried changing x86 the same way and found the same warning in __get_user_pages_fast() and nowhere else in the kernel during randconfig testing:
mm/gup.c: In function '__get_user_pages_fast':mm/gup.c:1578:6: error: passing argument 1 of '__chk_range_not_ok' makes pointer from integer without a cast [-Werror=int-conversion]
It would probably be a good idea to enforce type-safety in general, so let's change this file to not cause a warning if we do that.
I don't know why the warning did not appear on MIPS.
---
mm/gup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/gup.c renamed from mm/gup.c~mm-gup-fix-access_ok-argument-type +1 -1
@@ -1575,7 +1575,7 @@ int __get_user_pages_fast(unsigned long end = start + len;if (unlikely (!access_ok (write ?VERIFY_WRITE :VERIFY_READ , - start, len))) + (void __user *)start, len)))return 0 ;/*
_
Patches currently in -mm which might be from [email protected] are
initramfs-use-vfs_stat-lstat-directly.patch