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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent fabdb27 commit fe32945

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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)