Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

-5
-5
drivers/misc/cxl/native.c
··· 269 269 cxl_p1n_write(afu, CXL_PSL_SPAP_An, spap); 270 270 } 271 271 272 - static inline void detach_spa(struct cxl_afu *afu) 273 - { 274 - cxl_p1n_write(afu, CXL_PSL_SPAP_An, 0); 275 - } 276 - 277 272 void cxl_release_spa(struct cxl_afu *afu) 278 273 { 279 274 if (afu->native->spa) {