forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commiteba9f08
zhuguangqing
Ingo Molnar
sched: Replace zero-length array with flexible-array
In the following commit:04f5c36: ("sched/fair: Replace zero-length array with flexible-array")a zero-length array cpumask[0] has been replaced with cpumask[].But there is still a cpumask[0] in 'struct sched_group_capacity'which was missed.The point of using [] instead of [0] is that with [] the compiler willgenerate a build warning if it isn't the last member of a struct.[ mingo: Rewrote the changelog. ]Signed-off-by: zhuguangqing <zhuguangqing@xiaomi.com>Signed-off-by: Ingo Molnar <mingo@kernel.org>Link:https://lore.kernel.org/r/20201014140220.11384-1-zhuguangqing83@gmail.com1 parent2646fb0 commiteba9f08
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1471 | 1471 | | |
1472 | 1472 | | |
1473 | 1473 | | |
1474 | | - | |
| 1474 | + | |
1475 | 1475 | | |
1476 | 1476 | | |
1477 | 1477 | | |
| |||
0 commit comments
Comments
(0)