Skip to contentSkip to conversation

sched: Convert to use the preferred fallthrough macro

PATCH New Miaohe Lin 1 participant 1 message Aug 16, 2020 Scheduler

lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 sched: Convert to use the preferred fallthrough macro

Convert the uses of fallthrough comments to fallthrough macro.

---
 kernel/sched/topology.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/sched/topology.c +3 -3
index 007b0a6b0152..1bd7e3af904f 100644
@@ -1219,13 +1219,13 @@ static void __free_domain_allocs(struct s_data *d, enum s_alloc what,
 	case sa_rootdomain:
 		if (!atomic_read(&d->rd->refcount))
 			free_rootdomain(&d->rd->rcu);
-		/* Fall through */
+		fallthrough;
 	case sa_sd:
 		free_percpu(d->sd);
-		/* Fall through */
+		fallthrough;
 	case sa_sd_storage:
 		__sdt_free(cpu_map);
-		/* Fall through */
+		fallthrough;
 	case sa_none:
 		break;
 	}
Signature · 1 line
2.19.1