cxl: Drop unused detach_spa()
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Aug 2023 04:48:03 +0000 (14:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Aug 2023 12:33:16 +0000 (22:33 +1000)
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
drivers/misc/cxl/native.c

index 50b0c44bb8d70eaecd68c1c6a3cdd2484245cd2e..fbe16a6ab7adca172ebdc6ab907d37ae51a61d14 100644 (file)
@@ -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) {