From: kernel test robot <lkp@intel.com>
To: Elaine Zhang <zhangqing@rock-chips.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Sebastian Reichel <sebastian.reichel@collabora.com>
Subject: [sre-misc:rk3588 81/83] drivers/clk/rockchip/clk-gate-link.c:50:5: warning: no previous prototype for function 'clk_gate_link_prepare'
Date: Fri, 4 Aug 2023 01:25:55 +0800 [thread overview]
Message-ID: <202308040120.7KQxScIs-lkp@intel.com> (raw)
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
reply other threads:[~2023-08-03 17:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202308040120.7KQxScIs-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sebastian.reichel@collabora.com \
--cc=zhangqing@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.