From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [frank-w-bpi-r2-4.14:5.14-hdmilarb2 42/48] drivers/iommu/of_iommu.c:30:9: sparse: sparse: non size-preserving pointer to integer cast
Date: Mon, 19 Jul 2021 08:57:37 +0800 [thread overview]
Message-ID: <202107190834.QjtxvN0w-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2904 bytes --]
tree: https://github.com/frank-w/BPI-R2-4.14 5.14-hdmilarb2
head: 77b4c96140f9bec5bb54fc804b401af1c9a6b4b5
commit: a03e47787fdf1b8cf17dff02113ca385b4aaa131 [42/48] iommu, more debug
config: sparc-randconfig-s031-20210718 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 10.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/frank-w/BPI-R2-4.14/commit/a03e47787fdf1b8cf17dff02113ca385b4aaa131
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 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc SHELL=/bin/bash drivers/iommu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/iommu/of_iommu.c:30:9: sparse: sparse: non size-preserving pointer to integer cast
drivers/iommu/of_iommu.c:32:17: sparse: sparse: non size-preserving pointer to integer cast
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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37016 bytes --]
reply other threads:[~2021-07-19 0:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202107190834.QjtxvN0w-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.