* [sre-misc:rk3588 81/83] drivers/clk/rockchip/clk-gate-link.c:50:5: warning: no previous prototype for function 'clk_gate_link_prepare'
@ 2023-08-03 17:25 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-03 17:25 UTC (permalink / raw)
To: Elaine Zhang; +Cc: llvm, oe-kbuild-all, Sebastian Reichel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-misc.git rk3588
head: 9789e706b415eaf1d0a2d12c6510bec4c15ed05e
commit: 476b045672c3c13c02f8b5dc8c4a6f4509d19399 [81/83] clk: rockchip: add support for gate link
config: arm64-randconfig-r013-20230731 (https://download.01.org/0day-ci/archive/20230804/202308040120.7KQxScIs-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230804/202308040120.7KQxScIs-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308040120.7KQxScIs-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/clk/rockchip/clk-gate-link.c:50:5: warning: no previous prototype for function 'clk_gate_link_prepare' [-Wmissing-prototypes]
50 | int clk_gate_link_prepare(struct clk_hw *hw)
| ^
drivers/clk/rockchip/clk-gate-link.c:50:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
50 | int clk_gate_link_prepare(struct clk_hw *hw)
| ^
| static
>> drivers/clk/rockchip/clk-gate-link.c:57:6: warning: no previous prototype for function 'clk_gate_link_unprepare' [-Wmissing-prototypes]
57 | void clk_gate_link_unprepare(struct clk_hw *hw)
| ^
drivers/clk/rockchip/clk-gate-link.c:57:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
57 | void clk_gate_link_unprepare(struct clk_hw *hw)
| ^
| static
2 warnings generated.
vim +/clk_gate_link_prepare +50 drivers/clk/rockchip/clk-gate-link.c
49
> 50 int clk_gate_link_prepare(struct clk_hw *hw)
51 {
52 struct clk_gate_link *gate = to_clk_gate_link(to_clk_gate(hw));
53
54 return clk_prepare(gate->link);
55 }
56
> 57 void clk_gate_link_unprepare(struct clk_hw *hw)
58 {
59 struct clk_gate_link *gate = to_clk_gate_link(to_clk_gate(hw));
60
61 clk_unprepare(gate->link);
62 }
63
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-03 17:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03 17:25 [sre-misc:rk3588 81/83] drivers/clk/rockchip/clk-gate-link.c:50:5: warning: no previous prototype for function 'clk_gate_link_prepare' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox