]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] cpu_exclusive sched domains build fix
authorPaul Jackson <pj@sgi.com>
Wed, 24 Aug 2005 11:15:10 +0000 (04:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 24 Aug 2005 16:40:45 +0000 (09:40 -0700)
commit3725822f7c7134249addcd4549aff086950c8090
treed7db18d3d5f75fe4309ddc7aa373f3213f845b41
parent40bb0c3ef52d872de348e10000eb5432a43a147d
[PATCH] cpu_exclusive sched domains build fix

As reported by Paul Mackerras <paulus@samba.org>, the previous patch
"cpu_exclusive sched domains fix" broke the ppc64 build with
CONFIC_CPUSET, yielding error messages:

kernel/cpuset.c: In function 'update_cpu_domains':
kernel/cpuset.c:648: error: invalid lvalue in unary '&'
kernel/cpuset.c:648: error: invalid lvalue in unary '&'

On some arch's, the node_to_cpumask() is a function, returning
a cpumask_t.  But the for_each_cpu_mask() requires an lvalue mask.

The following patch fixes this build failure by making a copy
of the cpumask_t on the stack.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/cpuset.c