[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-d170fe7dd992b313d4851ae5ab77ee7a51ed8c72@git.kernel.org>
Date: Fri, 14 Apr 2017 11:51:56 -0700
From: tip-bot for Matthias Kaehlcke <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: akpm@...ux-foundation.org, rusty@...tcorp.com.au,
tglx@...utronix.de, mka@...omium.org, grundler@...omium.org,
hpa@...or.com, md@...gle.com, mingo@...nel.org,
linux-kernel@...r.kernel.org, ghackmann@...gle.com
Subject: [tip:irq/core] genirq: Use cpumask_available() for check of cpumask
variable
Commit-ID: d170fe7dd992b313d4851ae5ab77ee7a51ed8c72
Gitweb: http://git.kernel.org/tip/d170fe7dd992b313d4851ae5ab77ee7a51ed8c72
Author: Matthias Kaehlcke <mka@...omium.org>
AuthorDate: Wed, 12 Apr 2017 11:20:30 -0700
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Fri, 14 Apr 2017 20:49:27 +0200
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@...omium.org>
Cc: Grant Grundler <grundler@...omium.org>
Cc: Rusty Russell <rusty@...tcorp.com.au>
Cc: Greg Hackmann <ghackmann@...gle.com>
Cc: Michael Davidson <md@...gle.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Link: http://lkml.kernel.org/r/20170412182030.83657-2-mka@chromium.org
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
---
kernel/irq/manage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index a4afe5c..155e3c3 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -852,7 +852,7 @@ irq_thread_check_affinity(struct irq_desc *desc, struct irqaction *action)
* This code is triggered unconditionally. Check the affinity
* mask pointer. For CPU_MASK_OFFSTACK=n this is optimized out.
*/
- if (desc->irq_common_data.affinity)
+ if (cpumask_available(desc->irq_common_data.affinity))
cpumask_copy(mask, desc->irq_common_data.affinity);
else
valid = false;
Powered by blists - more mailing lists