mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 20:01:55 +00:00
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 05155772f6
("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
This commit is contained in:
parent
fabdb27da7
commit
fe32945203
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user