Skip to contentSkip to conversation

kernel-irq-use-cpumask_available-for-check-of-cpumask-variable.patch removed from -mm tree

merged [email protected] 1 participant 1 message Apr 19, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kernel/irq/manage.c: use cpumask_available() for check of cpumask variable
has been removed from the -mm tree. Its filename was
kernel-irq-use-cpumask_available-for-check-of-cpumask-variable.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Matthias Kaehlcke <[email protected]>
Subject: kernel/irq/manage.c: use cpumask_available() for check of cpumask variable

This fixes the following clang warning when CONFIG_CPUMASK_OFFSTACK=y:

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

---

 kernel/irq/manage.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/irq/manage.c renamed from kernel/irq/manage.c~kernel-irq-use-cpumask_available-for-check-of-cpumask-variable +1 -1
diff -puN kernel/irq/manage.c~kernel-irq-use-cpumask_available-for-check-of-cpumask-variable kernel/irq/manage.c
@@ -852,7 +852,7 @@ irq_thread_check_affinity(struct irq_des
 	 * 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;

_

Patches currently in -mm which might be from [email protected] are

jiffiesh-declare-jiffies-and-jiffies_64-with-____cacheline_aligned_in_smp.patch