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] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 8 Feb 2016 22:50:22 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Philipp Zabel <p.zabel@...gutronix.de>
Cc:	kbuild-all@...org, linux-kernel@...r.kernel.org,
	Maxime Ripard <maxime.ripard@...e-electrons.com>,
	Philipp Zabel <p.zabel@...gutronix.de>
Subject: Re: [PATCH] reset: sunxi: Make reset_control_ops const

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@...e-electrons.com>
:::::: CC: Maxime Ripard <maxime.ripard@...e-electrons.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" (17450 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ