tree:
git://git.infradead.org/users/hch/block.git remove-dma-mask-indirection
head: 7f0f0d04b7c2d957bee8220cf37362ed7b956a3b
commit: 7f0f0d04b7c2d957bee8220cf37362ed7b956a3b [2/2] device.h: make dma_mask a scalar
instead of a pointer
config: s390-randconfig-a001-20200311 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.2.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 7f0f0d04b7c2d957bee8220cf37362ed7b956a3b
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/s390/cio/css.c: In function 'setup_css':
> drivers/s390/cio/css.c:969:23: warning: assignment to
'u64' {aka 'long long unsigned int'} from 'u64 *' {aka 'long
long unsigned int *'} makes integer from pointer without a cast [-Wint-conversion]
969 | css->device.dma_mask = &css->device.coherent_dma_mask;
| ^
vim +969 drivers/s390/cio/css.c
495a5b45ac33b8 Cornelia Huck 2006-03-24 949
4d284cac76d0bf Heiko Carstens 2007-02-05 950 static int __init setup_css(int nr)
a28c69448154a0 Cornelia Huck 2006-01-06 951 {
7c9f4e3aaae020 Cornelia Huck 2007-10-12 952 struct channel_subsystem *css;
15a2044d7f3c1e Sebastian Ott 2016-10-25 953 int ret;
a28c69448154a0 Cornelia Huck 2006-01-06 954
15a2044d7f3c1e Sebastian Ott 2016-10-25 955 css = kzalloc(sizeof(*css),
GFP_KERNEL);
15a2044d7f3c1e Sebastian Ott 2016-10-25 956 if (!css)
d7b5a4c94f4913 Cornelia Huck 2006-12-08 957 return -ENOMEM;
15a2044d7f3c1e Sebastian Ott 2016-10-25 958
15a2044d7f3c1e Sebastian Ott 2016-10-25 959 channel_subsystems[nr] = css;
15a2044d7f3c1e Sebastian Ott 2016-10-25 960 dev_set_name(&css->device,
"css%x", nr);
15a2044d7f3c1e Sebastian Ott 2016-10-25 961 css->device.groups =
cssdev_attr_groups;
15a2044d7f3c1e Sebastian Ott 2016-10-25 962 css->device.release =
channel_subsystem_release;
bb99332a2b558e Halil Pasic 2019-04-02 963 /*
bb99332a2b558e Halil Pasic 2019-04-02 964 * We currently allocate notifier
bits with this (using
bb99332a2b558e Halil Pasic 2019-04-02 965 * css->device as the device
argument with the DMA API)
bb99332a2b558e Halil Pasic 2019-04-02 966 * and are fine with 64 bit
addresses.
bb99332a2b558e Halil Pasic 2019-04-02 967 */
bb99332a2b558e Halil Pasic 2019-04-02 968 css->device.coherent_dma_mask =
DMA_BIT_MASK(64);
bb99332a2b558e Halil Pasic 2019-04-02 @969 css->device.dma_mask =
&css->device.coherent_dma_mask;
15a2044d7f3c1e Sebastian Ott 2016-10-25 970
15a2044d7f3c1e Sebastian Ott 2016-10-25 971 mutex_init(&css->mutex);
15a2044d7f3c1e Sebastian Ott 2016-10-25 972 css->cssid = chsc_get_cssid(nr);
15a2044d7f3c1e Sebastian Ott 2016-10-25 973 css_generate_pgid(css, (u32)
(get_tod_clock() >> 32));
15a2044d7f3c1e Sebastian Ott 2016-10-25 974
15a2044d7f3c1e Sebastian Ott 2016-10-25 975 ret =
device_register(&css->device);
15a2044d7f3c1e Sebastian Ott 2016-10-25 976 if (ret) {
15a2044d7f3c1e Sebastian Ott 2016-10-25 977 put_device(&css->device);
15a2044d7f3c1e Sebastian Ott 2016-10-25 978 goto out_err;
15a2044d7f3c1e Sebastian Ott 2016-10-25 979 }
15a2044d7f3c1e Sebastian Ott 2016-10-25 980
15a2044d7f3c1e Sebastian Ott 2016-10-25 981 css->pseudo_subchannel =
kzalloc(sizeof(*css->pseudo_subchannel),
15a2044d7f3c1e Sebastian Ott 2016-10-25 982 GFP_KERNEL);
15a2044d7f3c1e Sebastian Ott 2016-10-25 983 if (!css->pseudo_subchannel) {
15a2044d7f3c1e Sebastian Ott 2016-10-25 984
device_unregister(&css->device);
15a2044d7f3c1e Sebastian Ott 2016-10-25 985 ret = -ENOMEM;
15a2044d7f3c1e Sebastian Ott 2016-10-25 986 goto out_err;
15a2044d7f3c1e Sebastian Ott 2016-10-25 987 }
15a2044d7f3c1e Sebastian Ott 2016-10-25 988
7c9f4e3aaae020 Cornelia Huck 2007-10-12 989
css->pseudo_subchannel->dev.parent = &css->device;
7c9f4e3aaae020 Cornelia Huck 2007-10-12 990
css->pseudo_subchannel->dev.release = css_subchannel_release;
5d6e6b6f6f3eac Peter Oberparleiter 2009-12-07 991
mutex_init(&css->pseudo_subchannel->reg_mutex);
e5dcf0025d7af5 Sebastian Ott 2013-04-13 992 ret =
css_sch_create_locks(css->pseudo_subchannel);
d7b5a4c94f4913 Cornelia Huck 2006-12-08 993 if (ret) {
7c9f4e3aaae020 Cornelia Huck 2007-10-12 994 kfree(css->pseudo_subchannel);
15a2044d7f3c1e Sebastian Ott 2016-10-25 995
device_unregister(&css->device);
15a2044d7f3c1e Sebastian Ott 2016-10-25 996 goto out_err;
d7b5a4c94f4913 Cornelia Huck 2006-12-08 997 }
e2e0de9b579d47 Sebastian Ott 2016-06-17 998
15a2044d7f3c1e Sebastian Ott 2016-10-25 999
dev_set_name(&css->pseudo_subchannel->dev, "defunct");
15a2044d7f3c1e Sebastian Ott 2016-10-25 1000 ret =
device_register(&css->pseudo_subchannel->dev);
15a2044d7f3c1e Sebastian Ott 2016-10-25 1001 if (ret) {
15a2044d7f3c1e Sebastian Ott 2016-10-25 1002
put_device(&css->pseudo_subchannel->dev);
15a2044d7f3c1e Sebastian Ott 2016-10-25 1003
device_unregister(&css->device);
15a2044d7f3c1e Sebastian Ott 2016-10-25 1004 goto out_err;
15a2044d7f3c1e Sebastian Ott 2016-10-25 1005 }
15a2044d7f3c1e Sebastian Ott 2016-10-25 1006
15a2044d7f3c1e Sebastian Ott 2016-10-25 1007 return ret;
15a2044d7f3c1e Sebastian Ott 2016-10-25 1008 out_err:
15a2044d7f3c1e Sebastian Ott 2016-10-25 1009 channel_subsystems[nr] = NULL;
15a2044d7f3c1e Sebastian Ott 2016-10-25 1010 return ret;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1011 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 1012
:::::: The code at line 969 was first introduced by commit
:::::: bb99332a2b558e1f28b4c5011f9ea3b46f1c8806 s390/cio: introduce DMA pools to cio
:::::: TO: Halil Pasic <pasic(a)linux.ibm.com>
:::::: CC: Heiko Carstens <heiko.carstens(a)de.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org