Message ID | 20210514071041.17432-1-yuehaibing@huawei.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [-next] powerpc/pseries/memhotplug: Remove unused inline function dlpar_memory_remove() | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/build-pmac32 | success | Build succeeded |
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch powerpc/merge (1fab3666d738e4af3a7450c44441310e4d7a7e53) |
snowpatch_ozlabs/build-ppc64le | success | Build succeeded |
snowpatch_ozlabs/build-ppc64be | success | Build succeeded |
snowpatch_ozlabs/build-ppc64e | success | Build succeeded |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 10 lines checked |
snowpatch_ozlabs/needsstable | success | Patch has no Fixes tags |
On 5/14/21 4:10 AM, YueHaibing wrote: > 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> > arch/powerpc/platforms/pseries/hotplug-memory.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c b/arch/powerpc/platforms/pseries/hotplug-memory.c > index 8377f1f7c78e..3d93f1c48e23 100644 > --- a/arch/powerpc/platforms/pseries/hotplug-memory.c > +++ b/arch/powerpc/platforms/pseries/hotplug-memory.c > @@ -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; >
On Fri, 14 May 2021 15:10:41 +0800, YueHaibing wrote:
> dlpar_memory_remove() is never used, so can be removed.
Applied to powerpc/next.
[1/1] powerpc/pseries/memhotplug: Remove unused inline function dlpar_memory_remove()
https://git.kernel.org/powerpc/c/9b373899e9606d252364191ce2b385043a8808bc
cheers
diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c b/arch/powerpc/platforms/pseries/hotplug-memory.c index 8377f1f7c78e..3d93f1c48e23 100644 --- a/arch/powerpc/platforms/pseries/hotplug-memory.c +++ b/arch/powerpc/platforms/pseries/hotplug-memory.c @@ -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;
dlpar_memory_remove() is never used, so can be removed. Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- arch/powerpc/platforms/pseries/hotplug-memory.c | 4 ---- 1 file changed, 4 deletions(-)