powerpc/pseries/memhotplug: Remove unused inline function dlpar_memory_remove()
authorYueHaibing <yuehaibing@huawei.com>
Fri, 14 May 2021 07:10:41 +0000 (15:10 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 23 May 2021 10:51:34 +0000 (20:51 +1000)
dlpar_memory_remove() is never used, so can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210514071041.17432-1-yuehaibing@huawei.com
arch/powerpc/platforms/pseries/hotplug-memory.c

index 8377f1f..3d93f1c 100644 (file)
@@ -585,10 +585,6 @@ static inline int pseries_remove_mem_node(struct device_node *np)
 {
        return 0;
 }
-static inline int dlpar_memory_remove(struct pseries_hp_errorlog *hp_elog)
-{
-       return -EOPNOTSUPP;
-}
 static int dlpar_remove_lmb(struct drmem_lmb *lmb)
 {
        return -EOPNOTSUPP;