tree:
https://github.com/frank-w/BPI-R2-4.14 5.14-hdmilarb2
head: 77b4c96140f9bec5bb54fc804b401af1c9a6b4b5
commit: a03e47787fdf1b8cf17dff02113ca385b4aaa131 [42/48] iommu, more debug
config: alpha-randconfig-r022-20210718 (attached as .config)
compiler: alpha-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/frank-w/BPI-R2-4.14/commit/a03e47787fdf1b8cf17dff02113...
git remote add frank-w-bpi-r2-4.14
https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.14-hdmilarb2
git checkout a03e47787fdf1b8cf17dff02113ca385b4aaa131
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from include/linux/iommu.h:11,
from drivers/iommu/of_iommu.c:9:
include/linux/iommu.h: In function 'dev_iommu_fwspec_set':
include/linux/iommu.h:576:51: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
576 | dev_err(dev,"%s:%d 0x%08x",__FUNCTION__,__LINE__,(unsigned
int)fwspec);
| ^
include/linux/dev_printk.h:112:32: note: in definition of macro 'dev_err'
112 | _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
drivers/iommu/of_iommu.c: In function 'of_iommu_xlate':
> drivers/iommu/of_iommu.c:30:53: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
30 |
dev_err(dev,"%s:%d ops:%08x",__FUNCTION__,__LINE__,(unsigned int)ops);
| ^
include/linux/dev_printk.h:112:32: note: in definition of macro 'dev_err'
112 | _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
drivers/iommu/of_iommu.c:32:56: warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
32 | dev_err(dev,"%s:%d xlate:%08x",__FUNCTION__,__LINE__,(unsigned
int)ops->of_xlate);
| ^
include/linux/dev_printk.h:112:32: note: in definition of macro 'dev_err'
112 | _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
vim +30 drivers/iommu/of_iommu.c
21
22 static int of_iommu_xlate(struct device *dev,
23 struct of_phandle_args *iommu_spec)
24 {
25 const struct iommu_ops *ops;
26 struct fwnode_handle *fwnode = &iommu_spec->np->fwnode;
27 int ret;
28
29 ops = iommu_ops_from_fwnode(fwnode);
30 dev_err(dev,"%s:%d
ops:%08x",__FUNCTION__,__LINE__,(unsigned int)ops);
31 if (ops)
32 dev_err(dev,"%s:%d xlate:%08x",__FUNCTION__,__LINE__,(unsigned
int)ops->of_xlate);
33
34 if ((ops && !ops->of_xlate) ||
35 !of_device_is_available(iommu_spec->np))
36 {
37 dev_err(dev,"no iommu");
38 return NO_IOMMU;
39 }
40 ret = iommu_fwspec_init(dev, &iommu_spec->np->fwnode, ops);
41 if (ret)
42 return ret;
43 /*
44 * The otherwise-empty fwspec handily serves to indicate the specific
45 * IOMMU device we're waiting for, which will be useful if we ever get
46 * a proper probe-ordering dependency mechanism in future.
47 */
48 if (!ops)
49 return driver_deferred_probe_check_state(dev);
50
51 if (!try_module_get(ops->owner))
52 return -ENODEV;
53
54 ret = ops->of_xlate(dev, iommu_spec);
55 module_put(ops->owner);
56 return ret;
57 }
58
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org