From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [asahilinux:clk/dev 2/3] drivers/clk/clk-apple-gate.c:113:16: warning: no previous prototype for 'apple_clk_hw_onecell_get'
Date: Fri, 04 Jun 2021 03:30:38 +0800 [thread overview]
Message-ID: <202106040333.ostGCjcV-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2211 bytes --]
tree: https://github.com/AsahiLinux/linux clk/dev
head: db975d0b41911068768f0bb23998e2b7d4d59807
commit: 407d251adb55b121054031c8b3918c66e32ffd80 [2/3] clk: add support for gate clocks on Apple SoCs
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/AsahiLinux/linux/commit/407d251adb55b121054031c8b3918c66e32ffd80
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux clk/dev
git checkout 407d251adb55b121054031c8b3918c66e32ffd80
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/clk/clk-apple-gate.c:113:16: warning: no previous prototype for 'apple_clk_hw_onecell_get' [-Wmissing-prototypes]
113 | struct clk_hw *apple_clk_hw_onecell_get(struct of_phandle_args *clkspec,
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/apple_clk_hw_onecell_get +113 drivers/clk/clk-apple-gate.c
112
> 113 struct clk_hw *apple_clk_hw_onecell_get(struct of_phandle_args *clkspec,
114 void *data)
115 {
116 struct clk_hw *hw = NULL;
117 struct clk_hw_onecell_data *hw_data = data;
118 unsigned int idx = clkspec->args[0];
119
120 if (idx % 8) {
121 pr_err("%s: unaligned index: %u\n", __func__, idx);
122 return ERR_PTR(-EINVAL);
123 }
124
125 idx /= 8;
126 if (idx >= hw_data->num) {
127 pr_err("%s: index out of bounds: %u\n", __func__, idx);
128 return ERR_PTR(-EINVAL);
129 }
130
131 hw = hw_data->hws[idx];
132 if (!hw)
133 return ERR_PTR(-EINVAL);
134 return hw;
135 }
136
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 55149 bytes --]
reply other threads:[~2021-06-03 19:30 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=202106040333.ostGCjcV-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.