Skip to contentSkip to conversation

2.6.28-mmotm1230 kernel/workqueue.c compiler warning message

PATCH [email protected] 1 participant 1 message Jan 3, 2009 Workqueue

lore
Share & tools
lore
#0 lore raw

In mmotm1230, there was an apparent mismerge that left a spare '&' on a variable, causing this compiler warning:

kernel/workqueue.c: In function 'wq_cpu_map':
kernel/workqueue.c:94: warning: pointer type mismatch in conditional expression

so let's fix that up.

kernel/workqueue.c renamed from kernel/workqueue.c.dist +1 -1
@@ -91,7 +91,7 @@ static inline int is_wq_single_threaded(
 static const struct cpumask *wq_cpu_map(struct workqueue_struct *wq)
 {
 	return is_wq_single_threaded(wq)
-		 ? get_cpu_mask(singlethread_cpu) : &cpu_populated_map;
+		 ? get_cpu_mask(singlethread_cpu) : cpu_populated_map;
 }
 
 static