sched/core: fix build warning without CONFIG_CPUMASK_OFFSTACK 65/292565/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 3 May 2023 06:59:07 +0000 (15:59 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 8 May 2023 09:36:00 +0000 (18:36 +0900)
commit65db1dbb024c25be0bfaddafef5e699e21d1c331
treed49e6eeabd791e97d00346f72391074929e4a525
parent0cdcf5007f495169e7f256c8b1723936162ca574
sched/core: fix build warning without CONFIG_CPUMASK_OFFSTACK

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>
kernel/sched/core.c