diff options
author | NeilBrown <neilb@suse.com> | 2018-01-23 09:27:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-23 13:42:03 +0300 |
commit | 7d70718de014ada7280bb011db8655e18ed935b1 (patch) | |
tree | 858c1b37a83373f036fa976e432d4117c18c541a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9fb8b101a7529a7d882df16448f20c1879535f0b (diff) | |
download | linux-7d70718de014ada7280bb011db8655e18ed935b1.tar.xz |
staging: lustre: lnet/selftest: fix compile error on UP build
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 cpumask_var and copying
into it, rather than sharing the mask.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 6106c0f82481 ("staging: lustre: lnet: convert selftest to use workqueues")
Signed-off-by: NeilBrown <neilb@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions