lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <201602082207.mwobZDvs%fengguang.wu@intel.com>
Date:	Mon, 8 Feb 2016 22:57:58 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Philipp Zabel <p.zabel@...gutronix.de>
Cc:	kbuild-all@...org, linux-kernel@...r.kernel.org,
	Antoine Tenart <antoine.tenart@...e-electrons.com>,
	Philipp Zabel <p.zabel@...gutronix.de>
Subject: Re: [PATCH] reset: berlin: 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-berlin-Make-reset_control_ops-const/20160208-213105
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-berlin.c: In function 'berlin2_reset_probe':
>> drivers/reset/reset-berlin.c:85:18: warning: assignment discards 'const' qualifier from pointer target type
     priv->rcdev.ops = &berlin_reset_ops;
                     ^

vim +/const +85 drivers/reset/reset-berlin.c

bd13251f Antoine Ténart  2014-09-03  69  
aed6f3ca Antoine Tenart  2015-05-16  70  static int berlin2_reset_probe(struct platform_device *pdev)
aed6f3ca Antoine Tenart  2015-05-16  71  {
aed6f3ca Antoine Tenart  2015-05-16  72  	struct device_node *parent_np = of_get_parent(pdev->dev.of_node);
aed6f3ca Antoine Tenart  2015-05-16  73  	struct berlin_reset_priv *priv;
aed6f3ca Antoine Tenart  2015-05-16  74  
aed6f3ca Antoine Tenart  2015-05-16  75  	priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
aed6f3ca Antoine Tenart  2015-05-16  76  	if (!priv)
aed6f3ca Antoine Tenart  2015-05-16  77  		return -ENOMEM;
aed6f3ca Antoine Tenart  2015-05-16  78  
aed6f3ca Antoine Tenart  2015-05-16  79  	priv->regmap = syscon_node_to_regmap(parent_np);
aed6f3ca Antoine Tenart  2015-05-16  80  	of_node_put(parent_np);
aed6f3ca Antoine Tenart  2015-05-16  81  	if (IS_ERR(priv->regmap))
aed6f3ca Antoine Tenart  2015-05-16  82  		return PTR_ERR(priv->regmap);
aed6f3ca Antoine Tenart  2015-05-16  83  
aed6f3ca Antoine Tenart  2015-05-16  84  	priv->rcdev.owner = THIS_MODULE;
aed6f3ca Antoine Tenart  2015-05-16 @85  	priv->rcdev.ops = &berlin_reset_ops;
aed6f3ca Antoine Tenart  2015-05-16  86  	priv->rcdev.of_node = pdev->dev.of_node;
aed6f3ca Antoine Tenart  2015-05-16  87  	priv->rcdev.of_reset_n_cells = 2;
aed6f3ca Antoine Tenart  2015-05-16  88  	priv->rcdev.of_xlate = berlin_reset_xlate;
aed6f3ca Antoine Tenart  2015-05-16  89  
d1f15aa0 Masahiro Yamada 2015-11-05  90  	return reset_controller_register(&priv->rcdev);
aed6f3ca Antoine Tenart  2015-05-16  91  }
aed6f3ca Antoine Tenart  2015-05-16  92  
aed6f3ca Antoine Tenart  2015-05-16  93  static const struct of_device_id berlin_reset_dt_match[] = {

:::::: The code at line 85 was first introduced by commit
:::::: aed6f3cadc860ddeec598ed82041c1f3773071b1 reset: berlin: convert to a platform driver

:::::: TO: Antoine Tenart <antoine.tenart@...e-electrons.com>
:::::: CC: Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>

---
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" (36557 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ