aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/cxl
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2023-08-23 14:48:03 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2023-08-24 22:33:16 +1000
commitfe32945203ffc8d6fed815f7ed7729219f8b0ab6 (patch)
treeb2c5f9be66badfaafb8279ccf725545c7b8e0196 /drivers/misc/cxl
parentfabdb27da78afb93b0a83c0579025cb8d05c0d2d (diff)
downloadlinux-fe32945203ffc8d6fed815f7ed7729219f8b0ab6.tar.gz
cxl: Drop unused detach_spa()
Clang warns: drivers/misc/cxl/native.c:272:20: error: unused function 'detach_spa' [-Werror,-Wunused-function] It was created as part of some refactoring in commit 05155772f642 ("cxl: Allocate and release the SPA with the AFU"), but has never been called in its current form. Drop it. Acked-by: Andrew Donnellan <ajd@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230823044803.737175-1-mpe@ellerman.id.au
Diffstat (limited to 'drivers/misc/cxl')
-rw-r--r--drivers/misc/cxl/native.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/misc/cxl/native.c b/drivers/misc/cxl/native.c
index 50b0c44bb8d70..fbe16a6ab7adc 100644
--- a/drivers/misc/cxl/native.c
+++ b/drivers/misc/cxl/native.c
@@ -269,11 +269,6 @@ static void attach_spa(struct cxl_afu *afu)
cxl_p1n_write(afu, CXL_PSL_SPAP_An, spap);
}
-static inline void detach_spa(struct cxl_afu *afu)
-{
- cxl_p1n_write(afu, CXL_PSL_SPAP_An, 0);
-}
-
void cxl_release_spa(struct cxl_afu *afu)
{
if (afu->native->spa) {