[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201910291647.3JAc9vXN%lkp@intel.com>
Date: Tue, 29 Oct 2019 17:01:40 +0800
From: kbuild test robot <lkp@...el.com>
To: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
Cc: kbuild-all@...ts.01.org, sboyd@...nel.org, mturquette@...libre.com,
robh+dt@...nel.org, linux-clk@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, haitao.suo@...main.com,
darren.tsao@...main.com, fisher.cheng@...main.com,
alec.lin@...main.com,
Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
Subject: Re: [PATCH v6 6/7] clk: Add common clock driver for BM1880 SoC
Hi Manivannan,
I love your patch! Perhaps something to improve:
[auto build test WARNING on clk/clk-next]
[also build test WARNING on v5.4-rc5 next-20191028]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Manivannan-Sadhasivam/Add-Bitmain-BM1880-clock-driver/20191029-142130
base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next
config: mips-allmodconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.4.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.4.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
In file included from arch/mips/include/asm/div64.h:12:0,
from include/linux/kernel.h:18,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/of.h:17,
from include/linux/clk-provider.h:9,
from drivers//clk/clk-bm1880.c:9:
drivers//clk/clk-bm1880.c: In function 'bm1880_pll_rate_calc':
include/asm-generic/div64.h:226:28: warning: comparison of distinct pointer types lacks a cast
(void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
^
>> drivers//clk/clk-bm1880.c:488:2: note: in expansion of macro 'do_div'
do_div(numerator, denominator);
^~~~~~
In file included from arch/mips/include/asm/bitops.h:16:0,
from include/linux/bitops.h:19,
from include/linux/of.h:15,
from include/linux/clk-provider.h:9,
from drivers//clk/clk-bm1880.c:9:
include/asm-generic/div64.h:239:25: warning: right shift count >= width of type [-Wshift-count-overflow]
} else if (likely(((n) >> 32) == 0)) { \
^
include/linux/compiler.h:77:40: note: in definition of macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
>> drivers//clk/clk-bm1880.c:488:2: note: in expansion of macro 'do_div'
do_div(numerator, denominator);
^~~~~~
In file included from arch/mips/include/asm/div64.h:12:0,
from include/linux/kernel.h:18,
from include/linux/list.h:9,
from include/linux/kobject.h:19,
from include/linux/of.h:17,
from include/linux/clk-provider.h:9,
from drivers//clk/clk-bm1880.c:9:
include/asm-generic/div64.h:243:22: error: passing argument 1 of '__div64_32' from incompatible pointer type [-Werror=incompatible-pointer-types]
__rem = __div64_32(&(n), __base); \
^
>> drivers//clk/clk-bm1880.c:488:2: note: in expansion of macro 'do_div'
do_div(numerator, denominator);
^~~~~~
include/asm-generic/div64.h:217:17: note: expected 'uint64_t * {aka long long unsigned int *}' but argument is of type 'long unsigned int *'
extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);
^~~~~~~~~~
cc1: some warnings being treated as errors
vim +/do_div +488 drivers//clk/clk-bm1880.c
473
474 static unsigned long bm1880_pll_rate_calc(u32 regval, unsigned long parent_rate)
475 {
476 u32 fbdiv, fref, refdiv;
477 u32 postdiv1, postdiv2;
478 unsigned long rate, numerator, denominator;
479
480 fbdiv = (regval >> 16) & 0xfff;
481 fref = parent_rate;
482 refdiv = regval & 0x1f;
483 postdiv1 = (regval >> 8) & 0x7;
484 postdiv2 = (regval >> 12) & 0x7;
485
486 numerator = parent_rate * fbdiv;
487 denominator = refdiv * postdiv1 * postdiv2;
> 488 do_div(numerator, denominator);
489 rate = numerator;
490
491 return rate;
492 }
493
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (62130 bytes)
Powered by blists - more mailing lists