OSDN Git Service

cxl: Drop unused detach_spa()
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 23 Aug 2023 04:48:03 +0000 (14:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Aug 2023 12:33:16 +0000 (22:33 +1000)
commitfe32945203ffc8d6fed815f7ed7729219f8b0ab6
treeb2c5f9be66badfaafb8279ccf725545c7b8e0196
parentfabdb27da78afb93b0a83c0579025cb8d05c0d2d
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
drivers/misc/cxl/native.c