Skip to content

Commit fe32945

Browse files
committed
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 0515577 ("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
1 parent fabdb27 commit fe32945

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

drivers/misc/cxl/native.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,6 @@ static void attach_spa(struct cxl_afu *afu)
269269
cxl_p1n_write(afu, CXL_PSL_SPAP_An, spap);
270270
}
271271

272-
static inline void detach_spa(struct cxl_afu *afu)
273-
{
274-
cxl_p1n_write(afu, CXL_PSL_SPAP_An, 0);
275-
}
276-
277272
void cxl_release_spa(struct cxl_afu *afu)
278273
{
279274
if (afu->native->spa) {

0 commit comments

Comments
 (0)