aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorJoe MacDonald <[email protected]>2012-08-21 08:22:28 +0000
committerBenjamin Herrenschmidt <[email protected]>2012-09-10 14:37:31 +1000
commit6b5e7229bbd59f0cfce7015fd46736fc93d8c8c3 (patch)
tree123e1d096d08b19db3ec32e9272a8a81335fdc7c /lib/mpi/mpi-inline.h
parent11f63d3fb9c4257b1f005db8d11deba9f992bdf6 (diff)
powerpc/mm: Match variable types to API
sys_subpage_prot() takes an unsigned long for 'addr' then does some stuff with it and the result is stored in a signed int, i, which is eventually used as the size parameter in a copy_from_user call. Update 'i' to be an unsigned long as well and since 'nw' is used in a size_t context which, depending on whether this is 32- or 64-bit may be unsigned int or unsigned long, switch that to a size_t and always be right. Finally, since we're in the neighbourhood, make the same changes to subpage_prot_clear(). Cc: Paul Mackerras <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Joe MacDonald <[email protected]> Signed-off-by: Paul Gortmaker <[email protected]> Acked-by: Paul Mackerras <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions