Skip to content

Commit 59e4721

Browse files
committed
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull core fix from Thomas Gleixner: "A small fix which adds the missing for_each_cpu_wrap() stub for the UP case to avoid build failures" * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: cpumask: Make for_each_cpu_wrap() available on UP as well
2 parents c786427 + d207af2 commit 59e4721

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/cpumask.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ static inline unsigned int cpumask_local_spread(unsigned int i, int node)
170170
for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask)
171171
#define for_each_cpu_not(cpu, mask) \
172172
for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask)
173+
#define for_each_cpu_wrap(cpu, mask, start) \
174+
for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask, (void)(start))
173175
#define for_each_cpu_and(cpu, mask, and) \
174176
for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask, (void)and)
175177
#else

0 commit comments

Comments
 (0)