xen: Adjust break/fallthrough statements

sh_destroy_shadow() has a spelling of fallthrough which doesn't match the
permitted pattern.  Convert it to a real fallthrough (psedo)keyword.

Elsewhere, insert breaks at the end of the default statements.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
This commit is contained in:
Andrew Cooper committed 2026-02-25 16:06:04 +00:00
1 parent 495d470d9f
commit 70c47ec5d6
4 files changed
+6 -1

No files matched your search

+2
View File
@@ -63,6 +63,7 @@ int pci_generic_config_read(struct pci_host_bridge *bridge, pci_sbdf_t sbdf,
break;
default:
ASSERT_UNREACHABLE();
break;
}
return 0;
@@ -89,6 +90,7 @@ int pci_generic_config_write(struct pci_host_bridge *bridge, pci_sbdf_t sbdf,
break;
default:
ASSERT_UNREACHABLE();
break;
}
return 0;
+2
View File
@@ -48,6 +48,7 @@ static int dw_pcie_read(void __iomem *addr, unsigned int len, uint32_t *val)
break;
default:
ASSERT_UNREACHABLE();
break;
}
return 0;
@@ -71,6 +72,7 @@ static int dw_pcie_write(void __iomem *addr, unsigned int len, uint32_t val)
break;
default:
ASSERT_UNREACHABLE();
break;
}
return 0;
+1
View File
@@ -1206,6 +1206,7 @@ static void do_call_with_arg(struct optee_domain *ctx,
default:
/* Free any temporary shared buffers */
free_shm_buffers(ctx, call->xen_arg);
break;
}
put_std_call(ctx, call);
+1 -1
View File
@@ -1213,7 +1213,7 @@ void sh_destroy_shadow(struct domain *d, mfn_t smfn)
#ifdef CONFIG_PV32
case SH_type_l2h_64_shadow:
ASSERT(is_pv_32bit_domain(d));
/* Fall through... */
fallthrough;
#endif
case SH_type_l2_64_shadow:
SHADOW_INTERNAL_NAME(sh_destroy_l2_shadow, 4)(d, smfn);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.