]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 14 Apr 2017 18:49:27 +0000 (20:49 +0200)
commit2a920a9638296c715b473fac8074997c9043eedf
tree72511dc1e140f80868fcd02d7b15d522866245dd
parentc738f03d101f1fd3622022b726b177819f4d7625
genirq: Use cpumask_available() for check of cpumask variable

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>
kernel/irq/manage.c