summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2019-09-27 00:13:33 -0700
committerMichael Bestas <mkbestas@lineageos.org>2020-02-02 01:41:04 +0200
commit5645b93f8b4a4e8fb1ce3a3069cfef085c14ebd8 (patch)
tree9c2eef83d7fe62b1e627542376781be490205f89 /scripts/gdb/linux/modules.py
parentf6ba5f662e31aeb0db0bb1fd930a0fdf268e133d (diff)
soc: qcom: msm_performance: Fix cpumask checks in init_cluster_control
Clang warns: ../drivers/soc/qcom/msm_performance.c:2731:28: warning: address of array 'managed_clusters[i]->offlined_cpus' will always evaluate to 'true' [-Wpointer-bool-conversion] if (managed_clusters[i]->offlined_cpus) ~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ ../drivers/soc/qcom/msm_performance.c:2733:28: warning: address of array 'managed_clusters[i]->cpus' will always evaluate to 'true' [-Wpointer-bool-conversion] if (managed_clusters[i]->cpus) ~~ ~~~~~~~~~~~~~~~~~~~~~^~~~ Use the cpumask_available helper that was added in commit f7e30f01a9e2 ("cpumask: Add helper cpumask_available()"). Fixes: 56f6d6c3529d ("soc: qcom: msm_perf: free allocated memory if error happens") Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions