From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 2/2] clk: scmi: Fix min and max rate when registering clocks with discrete rates
Date: Thu, 09 Jul 2020 02:44:53 +0800 [thread overview]
Message-ID: <202007090217.gHSNJI72%lkp@intel.com> (raw)
In-Reply-To: <20200708110725.18017-2-sudeep.holla@arm.com>
[-- Attachment #1: Type: text/plain, Size: 2756 bytes --]
Hi Sudeep,
I love your patch! Yet something to improve:
[auto build test ERROR on clk/clk-next]
[also build test ERROR on rockchip/for-next shawnguo/for-next soc/for-next linus/master v5.8-rc4 next-20200707]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Sudeep-Holla/firmware-arm_scmi-Keep-the-discrete-clock-rates-sorted/20200708-190957
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/clk/clk-scmi.c: In function 'scmi_clk_ops_init':
>> drivers/clk/clk-scmi.c:126:39: error: expected ';' before 'max_rate'
126 | min_rate = sclk->info->list.rates[0]
| ^
| ;
127 | max_rate = sclk->info->list.rates[num_rates - 1];
| ~~~~~~~~
vim +126 drivers/clk/clk-scmi.c
102
103 static int scmi_clk_ops_init(struct device *dev, struct scmi_clk *sclk)
104 {
105 int ret;
106 unsigned long min_rate, max_rate;
107
108 struct clk_init_data init = {
109 .flags = CLK_GET_RATE_NOCACHE,
110 .num_parents = 0,
111 .ops = &scmi_clk_ops,
112 .name = sclk->info->name,
113 };
114
115 sclk->hw.init = &init;
116 ret = devm_clk_hw_register(dev, &sclk->hw);
117 if (ret)
118 return ret;
119
120 if (sclk->info->rate_discrete) {
121 int num_rates = sclk->info->list.num_rates;
122
123 if (num_rates <= 0)
124 return -EINVAL;
125
> 126 min_rate = sclk->info->list.rates[0]
127 max_rate = sclk->info->list.rates[num_rates - 1];
128 } else {
129 min_rate = sclk->info->range.min_rate;
130 max_rate = sclk->info->range.max_rate;
131 }
132
133 clk_hw_set_rate_range(&sclk->hw, min_rate, max_rate);
134 return ret;
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: 66257 bytes --]
next prev parent reply other threads:[~2020-07-08 18:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-08 11:07 [PATCH 1/2] firmware: arm_scmi: Keep the discrete clock rates sorted Sudeep Holla
2020-07-08 11:07 ` Sudeep Holla
2020-07-08 11:07 ` [PATCH 2/2] clk: scmi: Fix min and max rate when registering clocks with discrete rates Sudeep Holla
2020-07-08 11:07 ` Sudeep Holla
2020-07-08 18:44 ` kernel test robot [this message]
2020-07-08 20:24 ` Sudeep Holla
2020-07-08 20:24 ` Sudeep Holla
2020-07-09 8:20 ` [PATCH 1/2] firmware: arm_scmi: Keep the discrete clock rates sorted Dien Pham
2020-07-09 8:20 ` Dien Pham
2020-07-09 8:38 ` Sudeep Holla
2020-07-09 8:38 ` Sudeep Holla
2020-07-09 8:53 ` Dien Pham
2020-07-09 8:53 ` Dien Pham
2020-07-09 9:47 ` Sudeep Holla
2020-07-09 9:47 ` Sudeep Holla
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=202007090217.gHSNJI72%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.