All users of morello_root_cap have now been moved to the appropriate cheri_user_root*_cap, and it is time to retire it.
Signed-off-by: Kevin Brodsky kevin.brodsky@arm.com --- arch/arm64/include/asm/morello.h | 2 -- arch/arm64/kernel/morello.c | 10 ---------- 2 files changed, 12 deletions(-)
diff --git a/arch/arm64/include/asm/morello.h b/arch/arm64/include/asm/morello.h index 40a51fbe06d6..9b1117b9d227 100644 --- a/arch/arm64/include/asm/morello.h +++ b/arch/arm64/include/asm/morello.h @@ -38,8 +38,6 @@ void morello_cap_get_val_tag(uintcap_t cap, __uint128_t *val, u8 *tag); */ uintcap_t morello_build_any_user_cap(const __uint128_t *val, u8 tag);
-uintcap_t morello_get_root_cap(void); - /* * Reads or writes a capability from/to tsk's address space (depending on * gup_flags & FOLL_WRITE). diff --git a/arch/arm64/kernel/morello.c b/arch/arm64/kernel/morello.c index ab83eb407eb9..513b37865e61 100644 --- a/arch/arm64/kernel/morello.c +++ b/arch/arm64/kernel/morello.c @@ -27,19 +27,12 @@ void __morello_merge_c_x(uintcap_t *creg, u64 xreg); bool __morello_cap_has_executive(uintcap_t cap); void __morello_thread_init_user(struct task_struct *tsk, uintcap_t ddc);
-/* Not defined as static because morello.S refers to it */ -uintcap_t morello_root_cap __ro_after_init; static uintcap_t morello_sentry_unsealcap __ro_after_init;
/* DDC_ELx reset value (low/high 64 bits), as defined in the Morello spec */ #define DDC_RESET_VAL_LOW_64 0x0 #define DDC_RESET_VAL_HIGH_64 0xffffc00000010005ULL
-uintcap_t morello_get_root_cap(void) -{ - return morello_root_cap; -} - static bool is_pure_task(void) { return IS_ENABLED(CONFIG_CHERI_PURECAP_UABI) && !is_compat_task(); @@ -351,9 +344,6 @@ static int __init morello_cap_init(void) ARM_CAP_PERMISSION_COMPARTMENT_ID); cheri_user_root_cid_cap = ctemp;
- /* Initialise Morello-specific root capabilities. */ - morello_root_cap = root_cap; - /* Initialize a capability able to unseal sentry capabilities. */ ctemp = cheri_address_set(root_cap, CHERI_OTYPE_SENTRY); ctemp = cheri_bounds_set(ctemp, 1);