linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] powerpc/eeh: Remove unused inline function eeh_dev_phb_init_dynamic()
@ 2021-03-24 14:07 YueHaibing
  2021-03-26  5:08 ` Daniel Axtens
  0 siblings, 1 reply; 3+ messages in thread
From: YueHaibing @ 2021-03-24 14:07 UTC (permalink / raw)
  To: ruscur, oohall, mpe, benh, paulus; +Cc: linuxppc-dev, linux-kernel, YueHaibing

commit 475028efc708 ("powerpc/eeh: Remove eeh_dev_phb_init_dynamic()")
left behind this, so can remove it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 arch/powerpc/include/asm/eeh.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/powerpc/include/asm/eeh.h b/arch/powerpc/include/asm/eeh.h
index b1a5bba2e0b9..ee0e7b8eac60 100644
--- a/arch/powerpc/include/asm/eeh.h
+++ b/arch/powerpc/include/asm/eeh.h
@@ -333,8 +333,6 @@ static inline bool eeh_enabled(void)
 
 static inline void eeh_show_enabled(void) { }
 
-static inline void eeh_dev_phb_init_dynamic(struct pci_controller *phb) { }
-
 static inline int eeh_check_failure(const volatile void __iomem *token)
 {
 	return 0;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] powerpc/eeh: Remove unused inline function eeh_dev_phb_init_dynamic()
  2021-03-24 14:07 [PATCH -next] powerpc/eeh: Remove unused inline function eeh_dev_phb_init_dynamic() YueHaibing
@ 2021-03-26  5:08 ` Daniel Axtens
  2021-03-31 12:58   ` YueHaibing
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Axtens @ 2021-03-26  5:08 UTC (permalink / raw)
  To: YueHaibing, ruscur, oohall, mpe, benh, paulus
  Cc: linuxppc-dev, linux-kernel, YueHaibing

Hi,

> commit 475028efc708 ("powerpc/eeh: Remove eeh_dev_phb_init_dynamic()")
> left behind this, so can remove it.

I had a look: the inline that you are removing here is for the
!CONFIG_EEH case, which explains why it was missed the first time.

This looks like a good change. Out of interest, what tool are you using
to find these unused inlines? If there are many more, it might make
sense to combine future patches removing them into a single patch, but
I'm not sure.

checkpatch likes this patch, so that's also good :)

Reviewed-by: Daniel Axtens <dja@axtens.net>

Kind regards,
Daniel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] powerpc/eeh: Remove unused inline function eeh_dev_phb_init_dynamic()
  2021-03-26  5:08 ` Daniel Axtens
@ 2021-03-31 12:58   ` YueHaibing
  0 siblings, 0 replies; 3+ messages in thread
From: YueHaibing @ 2021-03-31 12:58 UTC (permalink / raw)
  To: Daniel Axtens, ruscur, oohall, mpe, benh, paulus
  Cc: linuxppc-dev, linux-kernel

On 2021/3/26 13:08, Daniel Axtens wrote:
> Hi,
> 
>> commit 475028efc708 ("powerpc/eeh: Remove eeh_dev_phb_init_dynamic()")
>> left behind this, so can remove it.
> 
> I had a look: the inline that you are removing here is for the
> !CONFIG_EEH case, which explains why it was missed the first time.
> 
> This looks like a good change. Out of interest, what tool are you using
> to find these unused inlines? If there are many more, it might make
> sense to combine future patches removing them into a single patch, but
> I'm not sure.

Just use some grep skill, will do that if any.

> 
> checkpatch likes this patch, so that's also good :)
> 
> Reviewed-by: Daniel Axtens <dja@axtens.net>
> 
> Kind regards,
> Daniel
> .
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-31 12:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24 14:07 [PATCH -next] powerpc/eeh: Remove unused inline function eeh_dev_phb_init_dynamic() YueHaibing
2021-03-26  5:08 ` Daniel Axtens
2021-03-31 12:58   ` YueHaibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).