Skip to contentSkip to conversation

net: ethernet: ti: cpts: fix build failure for powerpc

PATCH RESEND Applied Grygorii Strashko 3 participants 3 messages Jun 11, 2019 – Jun 12, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 net: ethernet: ti: cpts: fix build failure for powerpc

Add dependency to TI CPTS from Common CLK framework COMMON_CLK to fix allyesconfig build for Powerpc:

drivers/net/ethernet/ti/cpts.c: In function 'cpts_of_mux_clk_setup':
drivers/net/ethernet/ti/cpts.c:567:2: error: implicit declaration of function 'of_clk_parent_fill'; did you mean 'of_clk_get_parent_name'? [-Werror=implicit-function-declaration]
of_clk_parent_fill(refclk_np, parent_names, num_parents);
^~~~~~~~~~~~~~~~~~
of_clk_get_parent_name

Fixes a3047a81ba13 ("net: ethernet: ti: cpts: add support for ext rftclk selection")

---
Resending due to missed [email protected] list in prev post.

 drivers/net/ethernet/ti/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/ti/Kconfig +1 -0
index bd05a977ee7e..a800d3417411 100644
@@ -60,6 +60,7 @@ config TI_CPSW
 config TI_CPTS
 	bool "TI Common Platform Time Sync (CPTS) Support"
 	depends on TI_CPSW || TI_KEYSTONE_NETCP || COMPILE_TEST
+	depends on COMMON_CLK
 	depends on POSIX_TIMERS
 	---help---
 	  This driver supports the Common Platform Time Sync unit of
Signature · 1 line
2.17.1
#1 lore raw

Hi all,

Quoted 10 lines · On Tue, 11 Jun 2019 14:16:32 +0300 Grygorii Strashko…

Add dependency to TI CPTS from Common CLK framework COMMON_CLK to fix allyesconfig build for Powerpc:

drivers/net/ethernet/ti/cpts.c: In function 'cpts_of_mux_clk_setup':
drivers/net/ethernet/ti/cpts.c:567:2: error: implicit declaration of function 'of_clk_parent_fill'; did you mean 'of_clk_get_parent_name'? [-Werror=implicit-function-declaration]
of_clk_parent_fill(refclk_np, parent_names, num_parents);
^~~~~~~~~~~~~~~~~~
of_clk_get_parent_name

Quoted 3 lines
Fixes a3047a81ba13 ("net: ethernet: ti: cpts: add support for ext rftclk selection")

I have applied this to linu-next today instead of reverting a3047a81ba13.

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer Applied
#2 lore raw
In reply to Grygorii Strashko

From: Grygorii Strashko <[email protected]>
Date: Tue, 11 Jun 2019 14:16:32 +0300

Quoted 9 lines

Add dependency to TI CPTS from Common CLK framework COMMON_CLK to fix allyesconfig build for Powerpc:

drivers/net/ethernet/ti/cpts.c: In function 'cpts_of_mux_clk_setup':
drivers/net/ethernet/ti/cpts.c:567:2: error: implicit declaration of function 'of_clk_parent_fill'; did you mean 'of_clk_get_parent_name'? [-Werror=implicit-function-declaration]
of_clk_parent_fill(refclk_np, parent_names, num_parents);
^~~~~~~~~~~~~~~~~~
of_clk_get_parent_name

Quoted 5 lines
Fixes a3047a81ba13 ("net: ethernet: ti: cpts: add support for ext rftclk selection")

---
Resending due to missed [email protected] list in prev post.

Applied, thanks.