1. 16 Sep, 2016 2 commits
  2. 30 Jun, 2016 1 commit
  3. 30 Jan, 2016 1 commit
    • Arnd Bergmann's avatar
      clk: st: avoid uninitialized variable use · 9849fadf
      Arnd Bergmann authored
      
      
      My previous patch fixed some warnings about printing a couple
      of variables that are always uninitialized in quadfs_pll_fs660c32_set_rate(),
      but I now got a warning that only shows up in some configurations (i.e.
      without gcc -Os) about the params.ndiv being used uninitialized in the
      error case:
      
      drivers/clk/st/clkgen-fsyn.c: In function 'quadfs_pll_fs660c32_set_rate':
      drivers/clk/st/clkgen-fsyn.c:584:75: warning: 'params.ndiv' may be used uninitialized in this function [-Wmaybe-uninitialized]
      drivers/clk/st/clkgen-fsyn.c:574:16: note: 'params.ndiv' was declared here
      
      This changes the error handling so we bail for invalid arguments rather
      than continuing with uninitialized data.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      9849fadf
  4. 20 Nov, 2015 1 commit
    • Arnd Bergmann's avatar
      clk: st: avoid uninitialized variable use · 2dd52d7f
      Arnd Bergmann authored
      
      
      quadfs_pll_fs660c32_round_rate prints a few structure members
      that are never initialized, and also doesn't print the only one
      it cares about. We get a gcc warning about the ones that
      are printed:
      
      clk/st/clkgen-fsyn.c:560:93: warning: 'params.sdiv' may be used uninitialized in this function
      clk/st/clkgen-fsyn.c:560:93: warning: 'params.mdiv' may be used uninitialized in this function
      clk/st/clkgen-fsyn.c:560:93: warning: 'params.pe' may be used uninitialized in this function
      clk/st/clkgen-fsyn.c:560:93: warning: 'params.nsdiv' may be used uninitialized in this function
      
      This changes the code to no longer print uninitialized data, and
      for good measure it also prints the ndiv member that is being
      set.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 5f7aa907
      
       ("clk: st: Support for QUADFS inside ClockGenB/C/D/E/F")
      Acked-by: default avatarGabriel Fernandez <gabriel.fernandez@linaro.org>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      2dd52d7f
  5. 17 Sep, 2015 1 commit
  6. 24 Aug, 2015 1 commit
  7. 20 Jul, 2015 1 commit
  8. 07 Jul, 2015 1 commit
  9. 06 Jul, 2015 3 commits
  10. 15 May, 2015 1 commit
    • Stephen Boyd's avatar
      clk: st: Silence sparse warnings · 8e6dd77c
      Stephen Boyd authored
      
      
      drivers/clk/st/clkgen-mux.c:134:4: warning: symbol 'clkgena_divmux_get_parent' was not declared. Should it be static?
      drivers/clk/st/clkgen-mux.c:171:15: warning: symbol 'clkgena_divmux_recalc_rate' was not declared. Should it be static?
      drivers/clk/st/clkgen-mux.c:218:12: warning: symbol 'clk_register_genamux' was not declared. Should it be static?
      drivers/clk/st/clkgen-mux.c:388:13: warning: symbol 'st_of_clkgena_divmux_setup' was not declared. Should it be static?
      drivers/clk/st/clkgen-mux.c:488:13: warning: symbol 'st_of_clkgena_prediv_setup' was not declared. Should it be static?
      drivers/clk/st/clkgen-mux.c:625:13: warning: symbol 'st_of_clkgen_mux_setup' was not declared. Should it be static?
      drivers/clk/st/clkgen-mux.c:702:13: warning: symbol 'st_of_clkgen_vcc_setup' was not declared. Should it be static?
      drivers/clk/st/clkgen-pll.c:273:15: warning: symbol 'recalc_stm_pll800c65' was not declared. Should it be static?
      drivers/clk/st/clkgen-pll.c:300:15: warning: symbol 'recalc_stm_pll1600c65' was not declared. Should it be static?
      drivers/clk/st/clkgen-pll.c:324:15: warning: symbol 'recalc_stm_pll3200c32' was not declared. Should it be static?
      drivers/clk/st/clkgen-pll.c:346:15: warning: symbol 'recalc_stm_pll1200c32' was not declared. Should it be static?
      drivers/clk/st/clkgen-pll.c:565:19: warning: incorrect type in assignment (different address spaces)
      drivers/clk/st/clkgen-pll.c:565:19:    expected void [noderef] <asn:2>*reg
      drivers/clk/st/clkgen-pll.c:565:19:    got void *
      drivers/clk/st/clkgen-pll.c:576:18: warning: incorrect type in assignment (different address spaces)
      drivers/clk/st/clkgen-pll.c:576:18:    expected void [noderef] <asn:2>*reg
      drivers/clk/st/clkgen-pll.c:576:18:    got void *
      drivers/clk/st/clkgen-pll.c:693:53: warning: incorrect type in argument 2 (different address spaces)
      drivers/clk/st/clkgen-pll.c:693:53:    expected void *[noderef] <asn:2>reg
      drivers/clk/st/clkgen-pll.c:693:53:    got void [noderef] <asn:2>*[assigned] pll_base
      drivers/clk/st/clkgen-fsyn.c:495:5: warning: symbol 'clk_fs660c32_vco_get_rate' was not declared. Should it be static?
      drivers/clk/st/clkgen-fsyn.c:522:5: warning: symbol 'clk_fs660c32_vco_get_params' was not declared. Should it be static?
      drivers/clk/st/clk-flexgen.c:119:15: warning: symbol 'flexgen_recalc_rate' was not declared. Should it be static?
      drivers/clk/st/clk-flexgen.c:177:12: warning: symbol 'clk_register_flexgen' was not declared. Should it be static?
      drivers/clk/st/clk-flexgen.c:263:13: warning: symbol 'st_of_flexgen_setup' was not declared. Should it be static?
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      8e6dd77c
  11. 01 Apr, 2015 1 commit
  12. 29 Jul, 2014 7 commits
  13. 25 Mar, 2014 1 commit