Prev: [080/139] x86, cacheinfo: Calculate L3 indices
Next: [139/139] MIPS: Sibyte: Fix M3 TLB exception handler workaround.
From: Greg KH on 22 Apr 2010 16:10 2.6.33-stable review patch. If anyone has any objections, please let us know. ------------------ From: KOSAKI Motohiro <kosaki.motohiro(a)jp.fujitsu.com> commit 8bc037fb89bb3104b9ae290d18c877624cd7d9cc upstream. Using the proper type fixes the following compiler warning: kernel/sched.c:4850: warning: comparison of distinct pointer types lacks a cast Signed-off-by: KOSAKI Motohiro <kosaki.motohiro(a)jp.fujitsu.com> Cc: torvalds(a)linux-foundation.org Cc: travis(a)sgi.com Cc: peterz(a)infradead.org Cc: drepper(a)redhat.com Cc: rja(a)sgi.com Cc: sharyath(a)in.ibm.com Cc: steiner(a)sgi.com LKML-Reference: <20100317090046.4C79.A69D9226(a)jp.fujitsu.com> Signed-off-by: Ingo Molnar <mingo(a)elte.hu> Signed-off-by: Greg Kroah-Hartman <gregkh(a)suse.de> --- kernel/sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/sched.c +++ b/kernel/sched.c @@ -6727,7 +6727,7 @@ SYSCALL_DEFINE3(sched_getaffinity, pid_t ret = sched_getaffinity(pid, mask); if (ret == 0) { - int retlen = min(len, cpumask_size()); + size_t retlen = min_t(size_t, len, cpumask_size()); if (copy_to_user(user_mask_ptr, mask, retlen)) ret = -EFAULT; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |