From: kbuild test robot <lkp@intel.com>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
Maxime Ripard <maxime.ripard@free-electrons.com>,
Philipp Zabel <p.zabel@pengutronix.de>
Subject: Re: [PATCH] reset: sunxi: Make reset_control_ops const
Date: Mon, 8 Feb 2016 22:50:22 +0800 [thread overview]
Message-ID: <201602082234.l09fiyXr%fengguang.wu@intel.com> (raw)
In-Reply-To: <1454938141-9976-1-git-send-email-p.zabel@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 3268 bytes --]
Hi Philipp,
[auto build test WARNING on mripard/sunxi/for-next]
[also build test WARNING on v4.5-rc3 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-sunxi-Make-reset_control_ops-const/20160208-213419
base: https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git sunxi/for-next
config: arm-sunxi_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-sunxi.c: In function 'sunxi_reset_init':
>> drivers/reset/reset-sunxi.c:109:18: warning: assignment discards 'const' qualifier from pointer target type
data->rcdev.ops = &sunxi_reset_ops;
^
drivers/reset/reset-sunxi.c: In function 'sunxi_reset_probe':
drivers/reset/reset-sunxi.c:165:18: warning: assignment discards 'const' qualifier from pointer target type
data->rcdev.ops = &sunxi_reset_ops;
^
vim +/const +109 drivers/reset/reset-sunxi.c
8f1ae77f Maxime Ripard 2013-09-24 93 size = resource_size(&res);
8f1ae77f Maxime Ripard 2013-09-24 94 if (!request_mem_region(res.start, size, np->name)) {
8f1ae77f Maxime Ripard 2013-09-24 95 ret = -EBUSY;
8f1ae77f Maxime Ripard 2013-09-24 96 goto err_alloc;
8f1ae77f Maxime Ripard 2013-09-24 97 }
8f1ae77f Maxime Ripard 2013-09-24 98
8f1ae77f Maxime Ripard 2013-09-24 99 data->membase = ioremap(res.start, size);
8f1ae77f Maxime Ripard 2013-09-24 100 if (!data->membase) {
8f1ae77f Maxime Ripard 2013-09-24 101 ret = -ENOMEM;
8f1ae77f Maxime Ripard 2013-09-24 102 goto err_alloc;
8f1ae77f Maxime Ripard 2013-09-24 103 }
8f1ae77f Maxime Ripard 2013-09-24 104
41544f9f Tyler Baker 2015-01-12 105 spin_lock_init(&data->lock);
41544f9f Tyler Baker 2015-01-12 106
8f1ae77f Maxime Ripard 2013-09-24 107 data->rcdev.owner = THIS_MODULE;
8f1ae77f Maxime Ripard 2013-09-24 108 data->rcdev.nr_resets = size * 32;
8f1ae77f Maxime Ripard 2013-09-24 @109 data->rcdev.ops = &sunxi_reset_ops;
8f1ae77f Maxime Ripard 2013-09-24 110 data->rcdev.of_node = np;
8f1ae77f Maxime Ripard 2013-09-24 111
d1f15aa0 Masahiro Yamada 2015-11-05 112 return reset_controller_register(&data->rcdev);
8f1ae77f Maxime Ripard 2013-09-24 113
8f1ae77f Maxime Ripard 2013-09-24 114 err_alloc:
8f1ae77f Maxime Ripard 2013-09-24 115 kfree(data);
8f1ae77f Maxime Ripard 2013-09-24 116 return ret;
8f1ae77f Maxime Ripard 2013-09-24 117 };
:::::: The code at line 109 was first introduced by commit
:::::: 8f1ae77f466660b6da2455cccecc07ae631fa66d reset: Add Allwinner SoCs Reset Controller Driver
:::::: TO: Maxime Ripard <maxime.ripard@free-electrons.com>
:::::: CC: Maxime Ripard <maxime.ripard@free-electrons.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 17450 bytes --]
next prev parent reply other threads:[~2016-02-08 14:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-08 13:29 Philipp Zabel
2016-02-08 14:50 ` kbuild test robot [this message]
2016-02-08 15:59 ` Maxime Ripard
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=201602082234.l09fiyXr%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=p.zabel@pengutronix.de \
/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®