X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=mm%2Fusercopy.c;h=c1ee15a98633834c7cdf5ed1c7d786f930fedf75;hb=746fc76b820dce8cbb17a1e5e70a1558db4d7406;hp=4e1da708699bbb6b9fc69496b9c380cdc6607b38;hpb=b167fdffe9e737007cbf7c691cde5fa489ca58d7;p=linux-2.6-microblaze.git diff --git a/mm/usercopy.c b/mm/usercopy.c index 4e1da708699b..c1ee15a98633 100644 --- a/mm/usercopy.c +++ b/mm/usercopy.c @@ -161,7 +161,7 @@ static inline void check_bogus_address(const unsigned long ptr, unsigned long n, static inline void check_heap_object(const void *ptr, unsigned long n, bool to_user) { - uintptr_t addr = (uintptr_t)ptr; + unsigned long addr = (unsigned long)ptr; unsigned long offset; struct folio *folio;