Without CONFIG_CPUMASK_OFFSTACK, checking the address of the
cpumask_var_t gives warning. To resolve the warning, use
cpumask_available() instead of checking the pointer directly.
Change-Id: I00b5a90015a304a4b1151afd1074acf9c542cb55
Ref: commit
e78c59fda86c ("cpumask: Add helper cpumask_available()")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
#ifdef CONFIG_SMP
zalloc_cpumask_var(&sched_domains_tmpmask, GFP_NOWAIT);
/* May be allocated at isolcpus cmdline parse time */
- if (cpu_isolated_map == NULL)
+ if (!cpumask_available(cpu_isolated_map))
zalloc_cpumask_var(&cpu_isolated_map, GFP_NOWAIT);
idle_thread_set_boot_cpu();
set_cpu_rq_start_time(smp_processor_id());