From: Oleg Drokin Date: Mon, 2 Mar 2015 06:01:46 +0000 (-0500) Subject: staging/lustre/ptlrpc: Do not use deprecated cpus_* functions X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~583 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6301647b1873250cb8aac18e02a4ea062e72278e;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: Greg Kroah-Hartman --- Reading git-diff-tree failed