[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] perfc: add pseudo-keyword fallthrough
commit 8a8d5c22afc515020669d9479b97e4ddda26d2b5 Author: Federico Serafini <federico.serafini@xxxxxxxxxxx> AuthorDate: Mon Mar 18 13:51:17 2024 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Mar 18 13:51:17 2024 +0100 perfc: add pseudo-keyword fallthrough Add pseudo-keyword fallthrough to make explicit the intention of the code and meet requirements to deviate MISRA C:2012 Rule 16.3 ("An unconditional `break' statement shall terminate every switch-clause"). No functional change. Signed-off-by: Federico Serafini <federico.serafini@xxxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/common/perfc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/perfc.c b/xen/common/perfc.c index 7400667bf0..80480aa776 100644 --- a/xen/common/perfc.c +++ b/xen/common/perfc.c @@ -134,6 +134,7 @@ void cf_check perfc_reset(unsigned char key) case TYPE_SINGLE: for_each_online_cpu ( cpu ) per_cpu(perfcounters, cpu)[j] = 0; + fallthrough; case TYPE_S_SINGLE: ++j; break; @@ -141,6 +142,7 @@ void cf_check perfc_reset(unsigned char key) for_each_online_cpu ( cpu ) memset(per_cpu(perfcounters, cpu) + j, 0, perfc_info[i].nr_elements * sizeof(perfc_t)); + fallthrough; case TYPE_S_ARRAY: j += perfc_info[i].nr_elements; break; -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |