[PATCH -next] powerpc/eeh: Remove unused inline function eeh_dev_phb_init_dynamic()

Subsystems: linux for powerpc (32-bit and 64-bit), pci enhanced error handling (eeh) for powerpc, the rest

STALE1979d LANDED

Landed in mainline as 0a3ef48c2fac on 2022-05-04.

3 messages, 2 authors, 2021-03-31 · open the first message on its own page

[PATCH -next] powerpc/eeh: Remove unused inline function eeh_dev_phb_init_dynamic()

From: YueHaibing <hidden>
Date: 2021-03-24 14:08:40

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

Signed-off-by: YueHaibing <redacted>
---
 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

Re: [PATCH -next] powerpc/eeh: Remove unused inline function eeh_dev_phb_init_dynamic()

From: Daniel Axtens <hidden>
Date: 2021-03-26 05:09:15

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 <redacted>

Kind regards,
Daniel

Re: [PATCH -next] powerpc/eeh: Remove unused inline function eeh_dev_phb_init_dynamic()

From: YueHaibing <hidden>
Date: 2021-03-31 12:59:35

On 2021/3/26 13:08, Daniel Axtens wrote:
Hi,
quoted
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 <redacted>

Kind regards,
Daniel
.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help