Skip to content

Commit cc02591

Browse files
krzkmpe
authored andcommitted
powerpc/powermac: add missing g5_phy_disable_cpu1() declaration
g5_phy_disable_cpu1() is used outside of platforms/powermac/feature.c, so it should have a declaration to fix W=1 warning: arch/powerpc/platforms/powermac/feature.c:1533:6: error: no previous prototype for ‘g5_phy_disable_cpu1’ [-Werror=missing-prototypes] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210924105653.46963-1-krzysztof.kozlowski@canonical.com
1 parent 7801cb1 commit cc02591

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

arch/powerpc/platforms/powermac/pmac.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ struct rtc_time;
1616

1717
extern int pmac_newworld;
1818

19+
void g5_phy_disable_cpu1(void);
20+
1921
extern long pmac_time_init(void);
2022
extern time64_t pmac_get_boot_time(void);
2123
extern void pmac_get_rtc_time(struct rtc_time *);

arch/powerpc/platforms/powermac/smp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,8 +875,6 @@ static int smp_core99_cpu_online(unsigned int cpu)
875875

876876
static void __init smp_core99_bringup_done(void)
877877
{
878-
extern void __init g5_phy_disable_cpu1(void);
879-
880878
/* Close i2c bus if it was used for tb sync */
881879
if (pmac_tb_clock_chip_host)
882880
pmac_i2c_close(pmac_tb_clock_chip_host);

0 commit comments

Comments
 (0)