Skip to contentSkip to conversation

m68k/coldfire: change pll var. to clk_pll

PATCH In review Randy Dunlap 3 participants 4 messages Jul 4, 2021 – Jul 8, 2021

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

PATCH 1/1 m68k/coldfire: change pll var. to clk_pll

DEFINE_CLK() makes the variable name be clk_xyz, so variable 'pll' should instead be 'clk_pll'.

In file included from ../arch/m68k/coldfire/m525x.c:12:
../arch/m68k/coldfire/m525x.c:29:30: error: 'pll' undeclared here (not in a function)
29 | CLKDEV_INIT(NULL, "pll.0", &pll),
| ^~~
../include/linux/clkdev.h:30:10: note: in definition of macro 'CLKDEV_INIT'
30 | .clk = c, \
| ^
In file included from ../arch/m68k/coldfire/m525x.c:21:
../arch/m68k/include/asm/mcfclk.h:43:27: warning: 'clk_pll' defined but not used [-Wunused-variable]
43 | static struct clk clk_##clk_ref = { \
| ^~~~
../arch/m68k/coldfire/m525x.c:25:1: note: in expansion of macro 'DEFINE_CLK'

   25 | DEFINE_CLK(pll, "pll.0", MCF_CLK);
      | ^~~~~~~~~~
Fixes 63aadb77669a ("m68k: coldfire: use clkdev_lookup on most coldfire")
Cc Greg Ungerer <[email protected]>
Cc Arnd Bergmann <[email protected]>
---
 arch/m68k/coldfire/m525x.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/coldfire/m525x.c +1 -1
@@ -26,7 +26,7 @@ DEFINE_CLK(pll, "pll.0", MCF_CLK);
 DEFINE_CLK(sys, "sys.0", MCF_BUSCLK);
 
 static struct clk_lookup m525x_clk_lookup[] = {
-	CLKDEV_INIT(NULL, "pll.0", &pll),
+	CLKDEV_INIT(NULL, "pll.0", &clk_pll),
 	CLKDEV_INIT(NULL, "sys.0", &clk_sys),
 	CLKDEV_INIT("mcftmr.0", NULL, &clk_sys),
 	CLKDEV_INIT("mcftmr.1", NULL, &clk_sys),
maintainer
#1 lore raw
Quoted 18 lines · Randy Dunlap

DEFINE_CLK() makes the variable name be clk_xyz, so variable 'pll' should instead be 'clk_pll'.

In file included from ../arch/m68k/coldfire/m525x.c:12:
../arch/m68k/coldfire/m525x.c:29:30: error: 'pll' undeclared here (not in a function)

    29 |  CLKDEV_INIT(NULL, "pll.0", &pll),
       |                              ^~~
../include/linux/clkdev.h:30:10: note: in definition of macro 'CLKDEV_INIT'
    30 |   .clk = c, \
       |          ^
In file included from ../arch/m68k/coldfire/m525x.c:21:
../arch/m68k/include/asm/mcfclk.h:43:27: warning: 'clk_pll' defined but not used [-Wunused-variable]
    43 |         static struct clk clk_##clk_ref = { \
       |                           ^~~~
../arch/m68k/coldfire/m525x.c:25:1: note: in expansion of macro 'DEFINE_CLK'
    25 | DEFINE_CLK(pll, "pll.0", MCF_CLK);
       | ^~~~~~~~~~
Quoted 7 lines
Fixes 63aadb77669a ("m68k: coldfire: use clkdev_lookup on most coldfire")
Cc Greg Ungerer <[email protected]>
Cc Arnd Bergmann <[email protected]>

Thanks Randy.

Arnd: since this has hit mainline do you want me to pick it up in the m68knommu git tree and push to Linus from there?

Regards
Greg

Quoted 16 lines
---
  arch/m68k/coldfire/m525x.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/coldfire/m525x.c +1 -1
@@ -26,7 +26,7 @@ DEFINE_CLK(pll, "pll.0", MCF_CLK);
  DEFINE_CLK(sys, "sys.0", MCF_BUSCLK);
 
  static struct clk_lookup m525x_clk_lookup[] = {
-	CLKDEV_INIT(NULL, "pll.0", &pll),
+	CLKDEV_INIT(NULL, "pll.0", &clk_pll),
  	CLKDEV_INIT(NULL, "sys.0", &clk_sys),
  	CLKDEV_INIT("mcftmr.0", NULL, &clk_sys),
  	CLKDEV_INIT("mcftmr.1", NULL, &clk_sys),
#2 lore raw
Quoted 27 lines · Greg Ungerer
Quoted 18 lines · Randy Dunlap

DEFINE_CLK() makes the variable name be clk_xyz, so variable 'pll' should instead be 'clk_pll'.

In file included from ../arch/m68k/coldfire/m525x.c:12:
../arch/m68k/coldfire/m525x.c:29:30: error: 'pll' undeclared here (not in a function)

    29 |  CLKDEV_INIT(NULL, "pll.0", &pll),
       |                              ^~~
../include/linux/clkdev.h:30:10: note: in definition of macro 'CLKDEV_INIT'
    30 |   .clk = c, \
       |          ^
In file included from ../arch/m68k/coldfire/m525x.c:21:
../arch/m68k/include/asm/mcfclk.h:43:27: warning: 'clk_pll' defined but not used [-Wunused-variable]
    43 |         static struct clk clk_##clk_ref = { \
       |                           ^~~~
../arch/m68k/coldfire/m525x.c:25:1: note: in expansion of macro 'DEFINE_CLK'
    25 | DEFINE_CLK(pll, "pll.0", MCF_CLK);
       | ^~~~~~~~~~
Quoted 7 lines
Fixes 63aadb77669a ("m68k: coldfire: use clkdev_lookup on most coldfire")
Cc Greg Ungerer <[email protected]>
Cc Arnd Bergmann <[email protected]>
Quoted 4 lines

Thanks Randy.

Arnd: since this has hit mainline do you want me to pick it up in the m68knommu git tree and push to Linus from there?

Yes, that would be good. Sorry I completely missed the bug report and the earlier fix.

Arnd

maintainer
#3 lore raw
Quoted 28 lines · Arnd Bergmann
Quoted 27 lines · Greg Ungerer
Quoted 25 lines · Randy Dunlap

DEFINE_CLK() makes the variable name be clk_xyz, so variable 'pll' should instead be 'clk_pll'.

In file included from ../arch/m68k/coldfire/m525x.c:12:
../arch/m68k/coldfire/m525x.c:29:30: error: 'pll' undeclared here (not in a function)

     29 |  CLKDEV_INIT(NULL, "pll.0", &pll),
        |                              ^~~
../include/linux/clkdev.h:30:10: note: in definition of macro 'CLKDEV_INIT'
     30 |   .clk = c, \
        |          ^
In file included from ../arch/m68k/coldfire/m525x.c:21:
../arch/m68k/include/asm/mcfclk.h:43:27: warning: 'clk_pll' defined but not used [-Wunused-variable]
     43 |         static struct clk clk_##clk_ref = { \
        |                           ^~~~
../arch/m68k/coldfire/m525x.c:25:1: note: in expansion of macro 'DEFINE_CLK'
     25 | DEFINE_CLK(pll, "pll.0", MCF_CLK);
        | ^~~~~~~~~~
Fixes 63aadb77669a ("m68k: coldfire: use clkdev_lookup on most coldfire")
Cc Greg Ungerer <[email protected]>
Cc Arnd Bergmann <[email protected]>
Quoted 7 lines
Quoted 4 lines

Thanks Randy.

Arnd: since this has hit mainline do you want me to pick it up in the m68knommu git tree and push to Linus from there?

Yes, that would be good. Sorry I completely missed the bug report and the earlier fix.

No worries. I'll take care of it.

Regards
Greg