summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2023-08-23 06:48:03 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2023-08-24 14:33:16 +0200
commitfe32945203ffc8d6fed815f7ed7729219f8b0ab6 (patch)
treeb2c5f9be66badfaafb8279ccf725545c7b8e0196 /drivers/misc
parentpowerpc: Drop zalloc_maybe_bootmem() (diff)
downloadlinux-fe32945203ffc8d6fed815f7ed7729219f8b0ab6.tar.xz
linux-fe32945203ffc8d6fed815f7ed7729219f8b0ab6.zip
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')
-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 50b0c44bb8d7..fbe16a6ab7ad 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) {