[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201602090459.1T27hhH6%fengguang.wu@intel.com>
Date: Tue, 9 Feb 2016 04:31:37 +0800
From: kbuild test robot <lkp@...el.com>
To: Philipp Zabel <p.zabel@...gutronix.de>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
Joachim Eastwood <manabian@...il.com>,
Philipp Zabel <p.zabel@...gutronix.de>
Subject: Re: [PATCH] reset: lpc18xx: Make reset_control_ops const
Hi Philipp,
[auto build test WARNING on v4.5-rc3]
[also build test WARNING on next-20160208]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Philipp-Zabel/reset-lpc18xx-Make-reset_control_ops-const/20160208-213147
config: arm-lpc18xx_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm
All warnings (new ones prefixed by >>):
drivers/reset/reset-lpc18xx.c: In function 'lpc18xx_rgu_probe':
>> drivers/reset/reset-lpc18xx.c:197:16: warning: assignment discards 'const' qualifier from pointer target type
rc->rcdev.ops = &lpc18xx_rgu_ops;
^
vim +/const +197 drivers/reset/reset-lpc18xx.c
c392b65b Joachim Eastwood 2015-05-06 181 if (ret) {
c392b65b Joachim Eastwood 2015-05-06 182 dev_err(&pdev->dev, "unable to enable delay clock\n");
c392b65b Joachim Eastwood 2015-05-06 183 goto dis_clk_reg;
c392b65b Joachim Eastwood 2015-05-06 184 }
c392b65b Joachim Eastwood 2015-05-06 185
c392b65b Joachim Eastwood 2015-05-06 186 fcclk = clk_get_rate(rc->clk_reg) / USEC_PER_SEC;
c392b65b Joachim Eastwood 2015-05-06 187 firc = clk_get_rate(rc->clk_delay) / USEC_PER_SEC;
c392b65b Joachim Eastwood 2015-05-06 188 if (fcclk == 0 || firc == 0)
c392b65b Joachim Eastwood 2015-05-06 189 rc->delay_us = 2;
c392b65b Joachim Eastwood 2015-05-06 190 else
c392b65b Joachim Eastwood 2015-05-06 191 rc->delay_us = DIV_ROUND_UP(fcclk, firc * firc);
c392b65b Joachim Eastwood 2015-05-06 192
c392b65b Joachim Eastwood 2015-05-06 193 spin_lock_init(&rc->lock);
c392b65b Joachim Eastwood 2015-05-06 194
c392b65b Joachim Eastwood 2015-05-06 195 rc->rcdev.owner = THIS_MODULE;
c392b65b Joachim Eastwood 2015-05-06 196 rc->rcdev.nr_resets = 64;
c392b65b Joachim Eastwood 2015-05-06 @197 rc->rcdev.ops = &lpc18xx_rgu_ops;
c392b65b Joachim Eastwood 2015-05-06 198 rc->rcdev.of_node = pdev->dev.of_node;
c392b65b Joachim Eastwood 2015-05-06 199
c392b65b Joachim Eastwood 2015-05-06 200 platform_set_drvdata(pdev, rc);
c392b65b Joachim Eastwood 2015-05-06 201
c392b65b Joachim Eastwood 2015-05-06 202 ret = reset_controller_register(&rc->rcdev);
c392b65b Joachim Eastwood 2015-05-06 203 if (ret) {
c392b65b Joachim Eastwood 2015-05-06 204 dev_err(&pdev->dev, "unable to register device\n");
c392b65b Joachim Eastwood 2015-05-06 205 goto dis_clks;
:::::: The code at line 197 was first introduced by commit
:::::: c392b65ba853f653cff3d1c7de2138bd6906d536 reset: add driver for lpc18xx rgu
:::::: TO: Joachim Eastwood <manabian@...il.com>
:::::: CC: Philipp Zabel <p.zabel@...gutronix.de>
---
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/octet-stream" (16217 bytes)
Powered by blists - more mailing lists