diff options
author | Michael Ellerman <[email protected]> | 2023-08-23 14:48:03 +1000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2023-08-24 22:33:16 +1000 |
commit | fe32945203ffc8d6fed815f7ed7729219f8b0ab6 (patch) | |
tree | b2c5f9be66badfaafb8279ccf725545c7b8e0196 | |
parent | fabdb27da78afb93b0a83c0579025cb8d05c0d2d (diff) |
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
-rw-r--r-- | drivers/misc/cxl/native.c | 5 |
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) { |