From: Oleg Drokin Date: Wed, 4 Mar 2015 06:07:51 +0000 (-0500) Subject: staging/lustre/ptlrpc: Do not use deprecated cpus_* functions X-Git-Tag: omap-for-v4.2/o2_dc~74^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc0d838a0527296730af6d3826bcda79d2918613;p=pandora-kernel.git staging/lustre/ptlrpc: Do not use deprecated cpus_* functions As per Rusty Russel, cpus_* functions are deprecated. When mixing cpumask_copy with cpus_weight, they operate on different sized masks if CPUMASK_OFFSTACK is enabled, causing an immediate assertion failure. Copying of cpumasks by assignment is also not allowed now. Additionally, in ptlrpc/service.c avoid the cpumask copies, since we only use it to check how many siblings are there for core #0 and nothing else. Reported-by: Tyson Whitehead Signed-off-by: Oleg Drokin Signed-off-by: Rusty Russell --- Reading git-diff-tree failed