Drop planetcore_set_serial_speed() which had no users since its inception.
Signed-off-by: Arseny Solokha <redacted>
---
arch/powerpc/boot/planetcore.c | 33 ---------------------------------
arch/powerpc/boot/planetcore.h | 3 ---
2 files changed, 36 deletions(-)
@@ -43,7 +43,4 @@ void planetcore_set_mac_addrs(const char *table);*/voidplanetcore_set_stdout_path(constchar*table);-/* Sets the current-speed property in the serial node. */-voidplanetcore_set_serial_speed(constchar*table);-#endif
@@ -395,16 +395,6 @@ extern struct bus_type mpic_subsys;#define MPIC_REGSET_STANDARD MPIC_REGSET(0) /* Original MPIC */#define MPIC_REGSET_TSI108 MPIC_REGSET(1) /* Tsi108/109 PIC */-/* Get the version of primary MPIC */-#ifdef CONFIG_MPIC-externu32fsl_mpic_primary_get_version(void);-#else-staticinlineu32fsl_mpic_primary_get_version(void)-{-return0;-}-#endif-/* Allocate the controller structure and setup the linux irq descs*fortherangeifinterruptspassedin.NoHWinitializationis*actuallyperformed.
@@ -496,11 +486,5 @@ extern unsigned int mpic_get_coreint_irq(void);/* Fetch Machine Check interrupt from primary mpic */externunsignedintmpic_get_mcirq(void);-/* Set the EPIC clock ratio */-voidmpic_set_clk_ratio(structmpic*mpic,u32clock_ratio);--/* Enable/Disable EPIC serial interrupt mode */-voidmpic_set_serial_int(structmpic*mpic,intenable);-#endif /* __KERNEL__ */#endif /* _ASM_POWERPC_MPIC_H */
Drop unused static procedure which doesn't have callers within its
translation unit.
Signed-off-by: Arseny Solokha <redacted>
Cc: Alexander Graf <redacted>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
---
arch/powerpc/kvm/mpic.c | 5 -----
1 file changed, 5 deletions(-)
This series removes unused functions from powerpc tree that I've been
able to discover.
Two machines at hands, e300 and e500 based, boot and run without
regressions on my workload with this series applied. The removed code
seems also been rarely touched, so it seems the series is safe at least
in general. But I can't obviously express any strong point in support of
the series, so it's completely OK to leave things as is.
Arseny Solokha (4):
powerpc/boot: drop planetcore_set_serial_speed
kvm/ppc/mpic: drop unused IRQ_testbit
powrepc/qe: drop unused ucc_slow_poll_transmitter_now
powerpc/mpic: remove unused functions
arch/powerpc/boot/planetcore.c | 33 ---------------------------------
arch/powerpc/boot/planetcore.h | 3 ---
arch/powerpc/include/asm/mpic.h | 20 --------------------
arch/powerpc/include/asm/ucc_slow.h | 13 -------------
arch/powerpc/kvm/mpic.c | 5 -----
arch/powerpc/sysdev/mpic.c | 35 -----------------------------------
arch/powerpc/sysdev/qe_lib/ucc_slow.c | 5 -----
7 files changed, 114 deletions(-)
--
2.3.0
Drop ucc_slow_poll_transmitter_now() which has no users since its
inception in 2007 in commit 986585385131 ("[POWERPC] Add QUICC
Engine (QE) infrastructure").
Signed-off-by: Arseny Solokha <redacted>
---
arch/powerpc/include/asm/ucc_slow.h | 13 -------------
arch/powerpc/sysdev/qe_lib/ucc_slow.c | 5 -----
2 files changed, 18 deletions(-)
Drop unused fsl_mpic_primary_get_version(), mpic_set_clk_ratio(),
mpic_set_serial_int().
+ fsl_mpic_primary_get_version() is just a safe wrapper around
fsl_mpic_get_version() for SMP configurations. While the latter is
called explicitly for handling PIC initialization and setting up error
interrupt vector depending on PIC hardware version, the former isn't
used for anything.
+ As for mpic_set_clk_ratio() and mpic_set_serial_int(), they both are
almost nine years old[1] but still have no chance to be called even from
out-of-tree modules because they both are __init and of course aren't
exported.
[1] https://lists.ozlabs.org/pipermail/linuxppc-dev/2006-June/023867.html
Signed-off-by: Arseny Solokha <redacted>
Cc: hongtao.jia@freescale.com
---
arch/powerpc/include/asm/mpic.h | 20 --------------------
arch/powerpc/sysdev/mpic.c | 35 -----------------------------------
2 files changed, 55 deletions(-)
@@ -395,16 +391,6 @@ extern struct bus_type mpic_subsys;#define MPIC_REGSET_STANDARD MPIC_REGSET(0) /* Original MPIC */#define MPIC_REGSET_TSI108 MPIC_REGSET(1) /* Tsi108/109 PIC */-/* Get the version of primary MPIC */-#ifdef CONFIG_MPIC-externu32fsl_mpic_primary_get_version(void);-#else-staticinlineu32fsl_mpic_primary_get_version(void)-{-return0;-}-#endif-/* Allocate the controller structure and setup the linux irq descs*fortherangeifinterruptspassedin.NoHWinitializationis*actuallyperformed.
@@ -496,11 +482,5 @@ extern unsigned int mpic_get_coreint_irq(void);/* Fetch Machine Check interrupt from primary mpic */externunsignedintmpic_get_mcirq(void);-/* Set the EPIC clock ratio */-voidmpic_set_clk_ratio(structmpic*mpic,u32clock_ratio);--/* Enable/Disable EPIC serial interrupt mode */-voidmpic_set_serial_int(structmpic*mpic,intenable);-#endif /* __KERNEL__ */#endif /* _ASM_POWERPC_MPIC_H */
Drop unused static procedure which doesn't have callers within its
translation unit. It had been already removed independently in QEMU[1]
from the OpenPIC implementation borrowed from the kernel.
[1] https://lists.gnu.org/archive/html/qemu-devel/2014-06/msg01812.html
Signed-off-by: Arseny Solokha <redacted>
Cc: Alexander Graf <redacted>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
---
arch/powerpc/kvm/mpic.c | 5 -----
1 file changed, 5 deletions(-)
Drop planetcore_set_serial_speed() which had no users since its
inception in commit fec6047047fd ("[POWERPC] bootwrapper: Add PlanetCore
firmware support") in 2007.
Signed-off-by: Arseny Solokha <redacted>
---
arch/powerpc/boot/planetcore.c | 33 ---------------------------------
arch/powerpc/boot/planetcore.h | 3 ---
2 files changed, 36 deletions(-)
@@ -43,7 +43,4 @@ void planetcore_set_mac_addrs(const char *table);*/voidplanetcore_set_stdout_path(constchar*table);-/* Sets the current-speed property in the serial node. */-voidplanetcore_set_serial_speed(constchar*table);-#endif
This series removes unused functions from powerpc tree that I've been able
to discover.
Two machines at hands, e300 and e500 based, boot and run without regressions
on my workload with this series applied. The removed code seems also been
rarely touched, so it seems the series is safe at least in general. But I
can't obviously express any strong point in support of the series, so it's
completely OK to leave things as is.
v3: In patch 4/4, do not remove fsl_mpic_primary_get_version() from
arch/powerpc/sysdev/mpic.c because the patch by Jia Hongtao
("powerpc/85xx: workaround for chips with MSI hardware errata") makes
use of it.
v2: Added a brief explanation to each patch description of why removed
functions are unused, as suggested by Michael Ellerman.
Arseny Solokha (4):
powerpc/boot: drop planetcore_set_serial_speed
kvm/ppc/mpic: drop unused IRQ_testbit
powrepc/qe: drop unused ucc_slow_poll_transmitter_now
powerpc/mpic: remove unused functions
arch/powerpc/boot/planetcore.c | 33 ---------------------------------
arch/powerpc/boot/planetcore.h | 3 ---
arch/powerpc/include/asm/mpic.h | 11 -----------
arch/powerpc/include/asm/ucc_slow.h | 13 -------------
arch/powerpc/kvm/mpic.c | 5 -----
arch/powerpc/sysdev/mpic.c | 25 -------------------------
arch/powerpc/sysdev/qe_lib/ucc_slow.c | 5 -----
7 files changed, 95 deletions(-)
--
2.3.3
Drop planetcore_set_serial_speed() which had no users since its
inception in commit fec6047047fd ("[POWERPC] bootwrapper: Add PlanetCore
firmware support") in 2007.
Signed-off-by: Arseny Solokha <redacted>
---
arch/powerpc/boot/planetcore.c | 33 ---------------------------------
arch/powerpc/boot/planetcore.h | 3 ---
2 files changed, 36 deletions(-)
@@ -43,7 +43,4 @@ void planetcore_set_mac_addrs(const char *table);*/voidplanetcore_set_stdout_path(constchar*table);-/* Sets the current-speed property in the serial node. */-voidplanetcore_set_serial_speed(constchar*table);-#endif
Drop unused static procedure which doesn't have callers within its
translation unit. It had been already removed independently in QEMU[1]
from the OpenPIC implementation borrowed from the kernel.
[1] https://lists.gnu.org/archive/html/qemu-devel/2014-06/msg01812.html
Signed-off-by: Arseny Solokha <redacted>
Cc: Alexander Graf <redacted>
Cc: Gleb Natapov <gleb@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
---
arch/powerpc/kvm/mpic.c | 5 -----
1 file changed, 5 deletions(-)
Drop unused mpic_set_clk_ratio() and mpic_set_serial_int().
Both functions are almost nine years old[1] but still have no chance
to be called even from out-of-tree modules because they both are __init
and of course aren't exported.
[1] https://lists.ozlabs.org/pipermail/linuxppc-dev/2006-June/023867.html
Signed-off-by: Arseny Solokha <redacted>
Cc: Jia Hongtao <redacted>
---
arch/powerpc/include/asm/mpic.h | 11 -----------
arch/powerpc/sysdev/mpic.c | 25 -------------------------
2 files changed, 36 deletions(-)
Drop ucc_slow_poll_transmitter_now() which has no users since its
inception in 2007 in commit 986585385131 ("[POWERPC] Add QUICC
Engine (QE) infrastructure").
Signed-off-by: Arseny Solokha <redacted>
---
arch/powerpc/include/asm/ucc_slow.h | 13 -------------
arch/powerpc/sysdev/qe_lib/ucc_slow.c | 5 -----
2 files changed, 18 deletions(-)
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2015-03-20 04:24:02
On Fri, 2015-03-20 at 10:56 +0700, Arseny Solokha wrote:
This series removes unused functions from powerpc tree that I've been able
to discover.
Two machines at hands, e300 and e500 based, boot and run without regressions
on my workload with this series applied. The removed code seems also been
rarely touched, so it seems the series is safe at least in general. But I
can't obviously express any strong point in support of the series, so it's
completely OK to leave things as is.
v3: In patch 4/4, do not remove fsl_mpic_primary_get_version() from
arch/powerpc/sysdev/mpic.c because the patch by Jia Hongtao
("powerpc/85xx: workaround for chips with MSI hardware errata") makes
use of it.
From: Alexander Graf <hidden> Date: 2015-03-20 11:41:28
On 20.03.15 04:56, Arseny Solokha wrote:
Drop unused static procedure which doesn't have callers within its
translation unit. It had been already removed independently in QEMU[1]
from the OpenPIC implementation borrowed from the kernel.
The order was reverse. QEMU's implementation was first and then got
imported into the kernel.
Drop unused static procedure which doesn't have callers within its
translation unit. It had been already removed independently in QEMU[1]
from the OpenPIC implementation borrowed by the kernel.
[1] https://lists.gnu.org/archive/html/qemu-devel/2014-06/msg01812.html
v4: Fixed the comment regarding the origination of OpenPIC codebase
and CC'ed KVM mailing lists, as suggested by Alexander Graf.
v3: In patch 4/4, do not remove fsl_mpic_primary_get_version() from
arch/powerpc/sysdev/mpic.c because the patch by Jia Hongtao
("powerpc/85xx: workaround for chips with MSI hardware errata") makes
use of it.
v2: Added a brief explanation to each patch description of why removed
functions are unused, as suggested by Michael Ellerman.
Signed-off-by: Arseny Solokha <redacted>
---
arch/powerpc/kvm/mpic.c | 5 -----
1 file changed, 5 deletions(-)
From: Alexander Graf <hidden> Date: 2015-03-21 14:54:10
On 21.03.15 07:56, Arseny Solokha wrote:
Drop unused static procedure which doesn't have callers within its
translation unit. It had been already removed independently in QEMU[1]
from the OpenPIC implementation borrowed by the kernel.
[1] https://lists.gnu.org/archive/html/qemu-devel/2014-06/msg01812.html
v4: Fixed the comment regarding the origination of OpenPIC codebase
and CC'ed KVM mailing lists, as suggested by Alexander Graf.
v3: In patch 4/4, do not remove fsl_mpic_primary_get_version() from
arch/powerpc/sysdev/mpic.c because the patch by Jia Hongtao
("powerpc/85xx: workaround for chips with MSI hardware errata") makes
use of it.
v2: Added a brief explanation to each patch description of why removed
functions are unused, as suggested by Michael Ellerman.
Signed-off-by: Arseny Solokha <redacted>