Re: [tip:sched/urgent] sched: sched_getaffinity(): Allow less thanNR_CPUS length

From: Ingo Molnar
Date: Tue Mar 16 2010 - 13:11:22 EST



* tip-bot for KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> wrote:

> Commit-ID: cd3d8031eb4311e516329aee03c79a08333141f1
> Gitweb: http://git.kernel.org/tip/cd3d8031eb4311e516329aee03c79a08333141f1
> Author: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
> AuthorDate: Fri, 12 Mar 2010 16:15:36 +0900
> Committer: Ingo Molnar <mingo@xxxxxxx>
> CommitDate: Mon, 15 Mar 2010 08:28:44 +0100
>
> sched: sched_getaffinity(): Allow less than NR_CPUS length

> + int retlen = min(len, cpumask_size());

this one causes:

kernel/sched.c:4850: warning: comparison of distinct pointer types lacks a cast

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/