genirq: Use cpumask_available() for check of cpumask variable
authorMatthias Kaehlcke <mka@chromium.org>
Wed, 12 Apr 2017 18:20:30 +0000 (11:20 -0700)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 16:04:44 +0000 (02:04 +1000)
commit8967dd6d310635f4e13446120294fca82691e240
treea5eaad1fb4b4084ae3d3f4f34c5341d82eaa73d0
parentf88436a7db17503edf9acc4677138e9f806f4620
genirq: Use cpumask_available() for check of cpumask variable

commit d170fe7dd992b313d4851ae5ab77ee7a51ed8c72 upstream.

This fixes the following clang warning when CONFIG_CPUMASK_OFFSTACK=n:

kernel/irq/manage.c:839:28: error: address of array
'desc->irq_common_data.affinity' will always evaluate to 'true'
[-Werror,-Wpointer-bool-conversion]

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Cc: Grant Grundler <grundler@chromium.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Greg Hackmann <ghackmann@google.com>
Cc: Michael Davidson <md@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20170412182030.83657-2-mka@chromium.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/irq/manage.c