From: kernel test robot <lkp@intel.com>
To: Inochi Amaoto <inochiama@gmail.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Chen Wang <unicorn_wang@outlook.com>,
Inochi Amaoto <inochiama@outlook.com>,
Richard Cochran <richardcochran@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, Yixun Lan <dlan@gentoo.org>,
Longbin Li <looong.bin@gmail.com>
Subject: Re: [PATCH 2/2] clk: sophgo: Add clock controller support for SG2044 SoC
Date: Tue, 10 Dec 2024 13:23:47 +0800 [thread overview]
Message-ID: <202412101358.czZY7XmR-lkp@intel.com> (raw)
In-Reply-To: <20241209082132.752775-3-inochiama@gmail.com>
Hi Inochi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on sophgo/for-next]
[also build test WARNING on sophgo/fixes clk/clk-next robh/for-next linus/master v6.13-rc2 next-20241209]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Inochi-Amaoto/dt-bindings-clock-sophgo-add-clock-controller-for-SG2044/20241209-162418
base: https://github.com/sophgo/linux.git for-next
patch link: https://lore.kernel.org/r/20241209082132.752775-3-inochiama%40gmail.com
patch subject: [PATCH 2/2] clk: sophgo: Add clock controller support for SG2044 SoC
config: parisc-randconfig-r053-20241210 (https://download.01.org/0day-ci/archive/20241210/202412101358.czZY7XmR-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 14.2.0
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/202412101358.czZY7XmR-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/clk/sophgo/clk-sg2044.c:133:1-7: WARNING: do_div() does a 64-by-32 division, please consider using div64_ul instead.
>> drivers/clk/sophgo/clk-sg2044.c:149:1-7: WARNING: do_div() does a 64-by-32 division, please consider using div64_u64 instead.
vim +133 drivers/clk/sophgo/clk-sg2044.c
126
127 static unsigned long sg2044_pll_calc_vco_rate(unsigned long parent_rate,
128 unsigned long refdiv,
129 unsigned long fbdiv)
130 {
131 u64 numerator = parent_rate * fbdiv;
132
> 133 do_div(numerator, refdiv);
134
135 return numerator;
136 }
137
138 static unsigned long sg2044_pll_calc_rate(unsigned long parent_rate,
139 unsigned long refdiv,
140 unsigned long fbdiv,
141 unsigned long postdiv1,
142 unsigned long postdiv2)
143 {
144 u64 numerator, denominator;
145
146 numerator = parent_rate * fbdiv;
147 denominator = refdiv * (postdiv1 + 1) * (postdiv2 + 1);
148
> 149 do_div(numerator, denominator);
150
151 return numerator;
152 }
153
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2024-12-10 5:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 8:21 [PATCH 0/2] clk: sophgo: add SG2044 clock controller support Inochi Amaoto
2024-12-09 8:21 ` [PATCH 1/2] dt-bindings: clock: sophgo: add clock controller for SG2044 Inochi Amaoto
2024-12-16 10:08 ` Krzysztof Kozlowski
2024-12-09 8:21 ` [PATCH 2/2] clk: sophgo: Add clock controller support for SG2044 SoC Inochi Amaoto
2024-12-10 5:23 ` kernel test robot [this message]
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=202412101358.czZY7XmR-lkp@intel.com \
--to=lkp@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=inochiama@gmail.com \
--cc=inochiama@outlook.com \
--cc=krzk@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=looong.bin@gmail.com \
--cc=mturquette@baylibre.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=unicorn_wang@outlook.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®