Content-Type: multipart/mixed; boundary="===============6307872145727211937==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 1/5] clk: mux: Declare u32 *table parameter as const Date: Mon, 31 Jan 2022 11:44:25 +0800 Message-ID: <202201311102.kgy44sMD-lkp@intel.com> In-Reply-To: <20220129095159.2202366-2-j.neuschaefer@gmx.net> List-Id: --===============6307872145727211937== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi "Jonathan, I love your patch! Perhaps something to improve: [auto build test WARNING on clk/clk-next] [also build test WARNING on linux/master linus/master v5.17-rc2 next-202201= 28] [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] url: https://github.com/0day-ci/linux/commits/Jonathan-Neusch-fer/clk-De= clare-mux-tables-as-const-u32/20220129-175243 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-n= ext config: arm-buildonly-randconfig-r002-20220131 (https://download.01.org/0da= y-ci/archive/20220131/202201311102.kgy44sMD-lkp(a)intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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/0day-ci/linux/commit/b97ffeed127cccf9159b9de1e= 9a1527b963460c4 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jonathan-Neusch-fer/clk-Declare-mu= x-tables-as-const-u32/20220129-175243 git checkout b97ffeed127cccf9159b9de1e9a1527b963460c4 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darm SHELL=3D/bin/bash drivers/clk/nxp/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/clk/nxp/clk-lpc18xx-cgu.c: In function 'lpc18xx_pll1_recalc_rate= ': drivers/clk/nxp/clk-lpc18xx-cgu.c:460:13: warning: variable 'stat' set b= ut not used [-Wunused-but-set-variable] 460 | u32 stat, ctrl; | ^~~~ drivers/clk/nxp/clk-lpc18xx-cgu.c: In function 'lpc18xx_cgu_register_div= ': >> drivers/clk/nxp/clk-lpc18xx-cgu.c:545:52: warning: passing argument 2 of= 'lpc18xx_fill_parent_names' discards 'const' qualifier from pointer target= type [-Wdiscarded-qualifiers] 545 | lpc18xx_fill_parent_names(parents, clk->mux.table, clk->= n_parents); | ~~~~~~~~^~~~~~ drivers/clk/nxp/clk-lpc18xx-cgu.c:526:65: note: expected 'u32 *' {aka 'u= nsigned int *'} but argument is of type 'const u32 *' {aka 'const unsigned = int *'} 526 | static void lpc18xx_fill_parent_names(const char **parent, u32 *= id, int size) | ~~~~~= ^~ drivers/clk/nxp/clk-lpc18xx-cgu.c: In function 'lpc18xx_register_base_cl= k': drivers/clk/nxp/clk-lpc18xx-cgu.c:567:52: warning: passing argument 2 of= 'lpc18xx_fill_parent_names' discards 'const' qualifier from pointer target= type [-Wdiscarded-qualifiers] 567 | lpc18xx_fill_parent_names(parents, clk->mux.table, clk->= n_parents); | ~~~~~~~~^~~~~~ drivers/clk/nxp/clk-lpc18xx-cgu.c:526:65: note: expected 'u32 *' {aka 'u= nsigned int *'} but argument is of type 'const u32 *' {aka 'const unsigned = int *'} 526 | static void lpc18xx_fill_parent_names(const char **parent, u32 *= id, int size) | ~~~~~= ^~ drivers/clk/nxp/clk-lpc18xx-cgu.c: In function 'lpc18xx_cgu_register_pll= ': drivers/clk/nxp/clk-lpc18xx-cgu.c:592:52: warning: passing argument 2 of= 'lpc18xx_fill_parent_names' discards 'const' qualifier from pointer target= type [-Wdiscarded-qualifiers] 592 | lpc18xx_fill_parent_names(parents, clk->mux.table, clk->= n_parents); | ~~~~~~~~^~~~~~ drivers/clk/nxp/clk-lpc18xx-cgu.c:526:65: note: expected 'u32 *' {aka 'u= nsigned int *'} but argument is of type 'const u32 *' {aka 'const unsigned = int *'} 526 | static void lpc18xx_fill_parent_names(const char **parent, u32 *= id, int size) | ~~~~~= ^~ vim +545 drivers/clk/nxp/clk-lpc18xx-cgu.c b04e0b8fd5443b Joachim Eastwood 2015-05-28 533 = b04e0b8fd5443b Joachim Eastwood 2015-05-28 534 static struct clk *lpc18xx= _cgu_register_div(struct lpc18xx_cgu_src_clk_div *clk, b04e0b8fd5443b Joachim Eastwood 2015-05-28 535 void __iomem *bas= e, int n) b04e0b8fd5443b Joachim Eastwood 2015-05-28 536 { b04e0b8fd5443b Joachim Eastwood 2015-05-28 537 void __iomem *reg =3D bas= e + LPC18XX_CGU_IDIV_CTRL(n); b04e0b8fd5443b Joachim Eastwood 2015-05-28 538 const char *name =3D clk_= src_names[clk->clk_id]; b04e0b8fd5443b Joachim Eastwood 2015-05-28 539 const char *parents[CLK_S= RC_MAX]; b04e0b8fd5443b Joachim Eastwood 2015-05-28 540 = b04e0b8fd5443b Joachim Eastwood 2015-05-28 541 clk->div.reg =3D reg; b04e0b8fd5443b Joachim Eastwood 2015-05-28 542 clk->mux.reg =3D reg; b04e0b8fd5443b Joachim Eastwood 2015-05-28 543 clk->gate.reg =3D reg; b04e0b8fd5443b Joachim Eastwood 2015-05-28 544 = b04e0b8fd5443b Joachim Eastwood 2015-05-28 @545 lpc18xx_fill_parent_names= (parents, clk->mux.table, clk->n_parents); b04e0b8fd5443b Joachim Eastwood 2015-05-28 546 = b04e0b8fd5443b Joachim Eastwood 2015-05-28 547 return clk_register_compo= site(NULL, name, parents, clk->n_parents, b04e0b8fd5443b Joachim Eastwood 2015-05-28 548 &clk->mux.hw, &c= lk_mux_ops, b04e0b8fd5443b Joachim Eastwood 2015-05-28 549 &clk->div.hw, &c= lk_divider_ops, c23a5847695dbd Joachim Eastwood 2015-10-24 550 &clk->gate.hw, &= lpc18xx_gate_ops, 0); b04e0b8fd5443b Joachim Eastwood 2015-05-28 551 } b04e0b8fd5443b Joachim Eastwood 2015-05-28 552 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6307872145727211937==--