From: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, Peter De Schrijver <pdeschrijver@nvidia.com>,
Prashant Gaikwad <pgaikwad@nvidia.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Thierry Reding <thierry.reding@gmail.com>,
Jonathan Hunter <jonathanh@nvidia.com>,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
linux-tegra@vger.kernel.org, Aapo Vienamo <avienamo@nvidia.com>
Subject: Re: [PATCH 1/3] clk: tegra: refactor 7.1 div calculation
Date: Tue, 3 Jul 2018 23:30:35 +0800 [thread overview]
Message-ID: <201807032308.E6SBDZE0%fengguang.wu@intel.com> (raw)
In-Reply-To: <1530617721-5767-1-git-send-email-avienamo@nvidia.com>
[-- Attachment #1: Type: text/plain, Size: 2181 bytes --]
Hi Peter,
I love your patch! Perhaps something to improve:
[auto build test WARNING on tegra/for-next]
[also build test WARNING on v4.18-rc3 next-20180703]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Aapo-Vienamo/clk-tegra-refactor-7-1-div-calculation/20180703-205606
base: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git for-next
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
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
GCC_VERSION=7.2.0 make.cross ARCH=arm
All warnings (new ones prefixed by >>):
In file included from arch/arm/include/asm/div64.h:127:0,
from include/linux/kernel.h:174,
from drivers/clk/tegra/div71.c:17:
drivers/clk/tegra/div71.c: In function 'div71_get':
include/asm-generic/div64.h:222:28: warning: comparison of distinct pointer types lacks a cast
(void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
^
>> drivers/clk/tegra/div71.c:40:2: note: in expansion of macro 'do_div'
do_div(divider_ux1, rate);
^~~~~~
vim +/do_div +40 drivers/clk/tegra/div71.c
> 17 #include <linux/kernel.h>
18
19 #include "clk.h"
20
21 #define div_mask(w) ((1 << (w)) - 1)
22
23 int div71_get(unsigned long rate, unsigned parent_rate, u8 width,
24 u8 frac_width, u8 flags)
25 {
26 s64 divider_ux1 = parent_rate;
27 int mul;
28
29 if (!rate)
30 return 0;
31
32 mul = 1 << frac_width;
33
34 if (!(flags & TEGRA_DIVIDER_INT))
35 divider_ux1 *= mul;
36
37 if (flags & TEGRA_DIVIDER_ROUND_UP)
38 divider_ux1 += rate - 1;
39
> 40 do_div(divider_ux1, rate);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 66170 bytes --]
prev parent reply other threads:[~2018-07-03 15:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-03 11:35 [PATCH 1/3] clk: tegra: refactor 7.1 div calculation Aapo Vienamo
2018-07-03 11:35 ` [PATCH 2/3] clk: tegra: Add sdmmc mux divider clock Aapo Vienamo
2018-07-03 11:35 ` [PATCH 3/3] clk: tegra: make sdmmc2 and sdmmc4 as sdmmc clocks Aapo Vienamo
2018-07-03 15:10 ` [PATCH 1/3] clk: tegra: refactor 7.1 div calculation Peter Geis
2018-07-04 7:51 ` Aapo Vienamo
2018-07-06 17:10 ` Stephen Boyd
2018-07-03 15:30 ` kbuild 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=201807032308.E6SBDZE0%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=avienamo@nvidia.com \
--cc=jonathanh@nvidia.com \
--cc=kbuild-all@01.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=pdeschrijver@nvidia.com \
--cc=pgaikwad@nvidia.com \
--cc=sboyd@kernel.org \
--cc=thierry.reding@gmail.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