Re: [PATCH] staging: lustre: lnet/selftest: fix compile error on UP build

2018-01-26 Thread Dilger, Andreas
On Jan 22, 2018, at 23:27, NeilBrown wrote: > > When compiled without CONFIG_SMP, we get a compile error > as ->ctb_parts is not defined. > > There is already a function, cfs_cpt_cpumask(), which will get the > cpumask we need, and which handles the UP case by returning a NULL pointer. > So use

[PATCH] staging: lustre: lnet/selftest: fix compile error on UP build

2018-01-22 Thread NeilBrown
When compiled without CONFIG_SMP, we get a compile error as ->ctb_parts is not defined. There is already a function, cfs_cpt_cpumask(), which will get the cpumask we need, and which handles the UP case by returning a NULL pointer. So use that and handle NULL. Also avoid the #ifdef by allocating a