mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Moritz Fischer <moritz.fischer@ettus.com>,
	Philipp Zabel <p.zabel@pengutronix.de>
Subject: Re: [PATCH] reset: zynq: Make reset_control_ops const
Date: Mon, 8 Feb 2016 22:48:23 +0800	[thread overview]
Message-ID: <201602082244.KmwXwyGk%fengguang.wu@intel.com> (raw)
In-Reply-To: <1454938146-10185-1-git-send-email-p.zabel@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 3089 bytes --]

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-zynq-Make-reset_control_ops-const/20160208-213337
config: arm-multi_v7_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-zynq.c: In function 'zynq_reset_probe':
>> drivers/reset/reset-zynq.c:122:18: warning: assignment discards 'const' qualifier from pointer target type
     priv->rcdev.ops = &zynq_reset_ops;
                     ^

vim +/const +122 drivers/reset/reset-zynq.c

fedf42b5 Moritz Fischer  2015-07-30  106  						     "syscon");
fedf42b5 Moritz Fischer  2015-07-30  107  	if (IS_ERR(priv->slcr)) {
fedf42b5 Moritz Fischer  2015-07-30  108  		dev_err(&pdev->dev, "unable to get zynq-slcr regmap");
fedf42b5 Moritz Fischer  2015-07-30  109  		return PTR_ERR(priv->slcr);
fedf42b5 Moritz Fischer  2015-07-30  110  	}
fedf42b5 Moritz Fischer  2015-07-30  111  
fedf42b5 Moritz Fischer  2015-07-30  112  	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
fedf42b5 Moritz Fischer  2015-07-30  113  	if (!res) {
fedf42b5 Moritz Fischer  2015-07-30  114  		dev_err(&pdev->dev, "missing IO resource\n");
fedf42b5 Moritz Fischer  2015-07-30  115  		return -ENODEV;
fedf42b5 Moritz Fischer  2015-07-30  116  	}
fedf42b5 Moritz Fischer  2015-07-30  117  
fedf42b5 Moritz Fischer  2015-07-30  118  	priv->offset = res->start;
fedf42b5 Moritz Fischer  2015-07-30  119  
fedf42b5 Moritz Fischer  2015-07-30  120  	priv->rcdev.owner = THIS_MODULE;
fedf42b5 Moritz Fischer  2015-07-30  121  	priv->rcdev.nr_resets = resource_size(res) / 4 * BITS_PER_LONG;
fedf42b5 Moritz Fischer  2015-07-30 @122  	priv->rcdev.ops = &zynq_reset_ops;
fedf42b5 Moritz Fischer  2015-07-30  123  	priv->rcdev.of_node = pdev->dev.of_node;
fedf42b5 Moritz Fischer  2015-07-30  124  
d1f15aa0 Masahiro Yamada 2015-11-05  125  	return reset_controller_register(&priv->rcdev);
fedf42b5 Moritz Fischer  2015-07-30  126  }
fedf42b5 Moritz Fischer  2015-07-30  127  
fedf42b5 Moritz Fischer  2015-07-30  128  static int zynq_reset_remove(struct platform_device *pdev)
fedf42b5 Moritz Fischer  2015-07-30  129  {
fedf42b5 Moritz Fischer  2015-07-30  130  	struct zynq_reset_data *priv = platform_get_drvdata(pdev);

:::::: The code at line 122 was first introduced by commit
:::::: fedf42b50d51758ce43fe0a652991dc01421f422 reset: reset-zynq: Adding support for Xilinx Zynq reset controller.

:::::: TO: Moritz Fischer <moritz.fischer@ettus.com>
:::::: CC: Philipp Zabel <p.zabel@pengutronix.de>

---
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: 36557 bytes --]

      reply	other threads:[~2016-02-08 14:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-08 13:29 Philipp Zabel
2016-02-08 14:48 ` 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=201602082244.KmwXwyGk%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=moritz.fischer@ettus.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®