From: kernel test robot <lkp@intel.com>
To: kaixuxia@tencent.com, frankjpliu@tencent.com, kasong@tencent.com,
sagazchen@tencent.com, kernelxing@tencent.com,
aurelianliu@tencent.com, deshengwu@tencent.com,
flyingpeng@tencent.com, jingqunli@tencent.com,
jason.zeng@intel.com, lin.x.wang@intel.com,
yingbao.jia@intel.com, pei.p.jia@intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [opencloudos:linux-5.4/lts/5.4.119-20.0009.spr 1/1] drivers/iommu/arm-smmu.c:1590:10: error: 'struct iommu_ops' has no member named 'enable_nesting'
Date: Thu, 5 Dec 2024 00:01:27 +0800 [thread overview]
Message-ID: <202412042329.aR9XHA50-lkp@intel.com> (raw)
tree: https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git linux-5.4/lts/5.4.119-20.0009.spr
head: f1811f6442501fe34d2339158aed4f85a64f0398
commit: 592f1f62aa94ed7e396270951648e7d6230fd0f5 [1/1] Revert "iommu: remove DOMAIN_ATTR_NESTING"
config: arm64-randconfig-001-20241203 (https://download.01.org/0day-ci/archive/20241204/202412042329.aR9XHA50-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241204/202412042329.aR9XHA50-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412042329.aR9XHA50-lkp@intel.com/
All errors (new ones prefixed by >>):
| ^~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu.c: In function 'arm_smmu_domain_add_master':
drivers/iommu/arm-smmu.c:111:59: error: 'struct iommu_fwspec' has no member named 'iommu_priv'
111 | #define __fwspec_cfg(fw) ((struct arm_smmu_master_cfg *)fw->iommu_priv)
| ^~
drivers/iommu/arm-smmu.c:114:46: note: in expansion of macro '__fwspec_cfg'
114 | (i >= fw->num_ids ? INVALID_SMENDX : __fwspec_cfg(fw)->smendx[i])
| ^~~~~~~~~~~~
drivers/iommu/arm-smmu.c:116:27: note: in expansion of macro 'fwspec_smendx'
116 | for (i = 0; idx = fwspec_smendx(fw, i), i < fw->num_ids; ++i)
| ^~~~~~~~~~~~~
drivers/iommu/arm-smmu.c:1096:9: note: in expansion of macro 'for_each_cfg_sme'
1096 | for_each_cfg_sme(fwspec, i, idx) {
| ^~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu.c:116:47: warning: left-hand operand of comma expression has no effect [-Wunused-value]
116 | for (i = 0; idx = fwspec_smendx(fw, i), i < fw->num_ids; ++i)
| ^
drivers/iommu/arm-smmu.c:1096:9: note: in expansion of macro 'for_each_cfg_sme'
1096 | for_each_cfg_sme(fwspec, i, idx) {
| ^~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu.c: In function 'arm_smmu_attach_dev':
drivers/iommu/arm-smmu.c:1127:20: error: 'struct iommu_fwspec' has no member named 'iommu_priv'
1127 | if (!fwspec->iommu_priv)
| ^~
drivers/iommu/arm-smmu.c:111:59: error: 'struct iommu_fwspec' has no member named 'iommu_priv'
111 | #define __fwspec_cfg(fw) ((struct arm_smmu_master_cfg *)fw->iommu_priv)
| ^~
drivers/iommu/arm-smmu.c:112:27: note: in expansion of macro '__fwspec_cfg'
112 | #define fwspec_smmu(fw) (__fwspec_cfg(fw)->smmu)
| ^~~~~~~~~~~~
drivers/iommu/arm-smmu.c:1130:16: note: in expansion of macro 'fwspec_smmu'
1130 | smmu = fwspec_smmu(fwspec);
| ^~~~~~~~~~~
drivers/iommu/arm-smmu.c: In function 'arm_smmu_add_device':
drivers/iommu/arm-smmu.c:1372:15: error: 'struct iommu_fwspec' has no member named 'iommu_priv'
1372 | fwspec->iommu_priv = cfg;
| ^~
drivers/iommu/arm-smmu.c: In function 'arm_smmu_remove_device':
drivers/iommu/arm-smmu.c:1410:22: error: 'struct iommu_fwspec' has no member named 'iommu_priv'
1410 | cfg = fwspec->iommu_priv;
| ^~
drivers/iommu/arm-smmu.c:1423:21: error: 'struct iommu_fwspec' has no member named 'iommu_priv'
1423 | kfree(fwspec->iommu_priv);
| ^~
drivers/iommu/arm-smmu.c: In function 'arm_smmu_device_group':
drivers/iommu/arm-smmu.c:111:59: error: 'struct iommu_fwspec' has no member named 'iommu_priv'
111 | #define __fwspec_cfg(fw) ((struct arm_smmu_master_cfg *)fw->iommu_priv)
| ^~
drivers/iommu/arm-smmu.c:112:27: note: in expansion of macro '__fwspec_cfg'
112 | #define fwspec_smmu(fw) (__fwspec_cfg(fw)->smmu)
| ^~~~~~~~~~~~
drivers/iommu/arm-smmu.c:1430:40: note: in expansion of macro 'fwspec_smmu'
1430 | struct arm_smmu_device *smmu = fwspec_smmu(fwspec);
| ^~~~~~~~~~~
drivers/iommu/arm-smmu.c:111:59: error: 'struct iommu_fwspec' has no member named 'iommu_priv'
111 | #define __fwspec_cfg(fw) ((struct arm_smmu_master_cfg *)fw->iommu_priv)
| ^~
drivers/iommu/arm-smmu.c:114:46: note: in expansion of macro '__fwspec_cfg'
114 | (i >= fw->num_ids ? INVALID_SMENDX : __fwspec_cfg(fw)->smendx[i])
| ^~~~~~~~~~~~
drivers/iommu/arm-smmu.c:116:27: note: in expansion of macro 'fwspec_smendx'
116 | for (i = 0; idx = fwspec_smendx(fw, i), i < fw->num_ids; ++i)
| ^~~~~~~~~~~~~
drivers/iommu/arm-smmu.c:1434:9: note: in expansion of macro 'for_each_cfg_sme'
1434 | for_each_cfg_sme(fwspec, i, idx) {
| ^~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu.c:116:47: warning: left-hand operand of comma expression has no effect [-Wunused-value]
116 | for (i = 0; idx = fwspec_smendx(fw, i), i < fw->num_ids; ++i)
| ^
drivers/iommu/arm-smmu.c:1434:9: note: in expansion of macro 'for_each_cfg_sme'
1434 | for_each_cfg_sme(fwspec, i, idx) {
| ^~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu.c: In function 'arm_smmu_domain_get_attr':
drivers/iommu/arm-smmu.c:1476:22: error: 'DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE' undeclared (first use in this function)
1476 | case DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu.c:1476:22: note: each undeclared identifier is reported only once for each function it appears in
drivers/iommu/arm-smmu.c: In function 'arm_smmu_domain_set_attr':
drivers/iommu/arm-smmu.c:1520:22: error: 'DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE' undeclared (first use in this function)
1520 | case DOMAIN_ATTR_DMA_USE_FLUSH_QUEUE:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu.c:1530:1: warning: label 'out_unlock' defined but not used [-Wunused-label]
1530 | out_unlock:
| ^~~~~~~~~~
drivers/iommu/arm-smmu.c: At top level:
drivers/iommu/arm-smmu.c:1580:35: error: initialization of 'int (*)(struct iommu_domain *, long unsigned int, phys_addr_t, size_t, int, gfp_t)' {aka 'int (*)(struct iommu_domain *, long unsigned int, long long unsigned int, long unsigned int, int, unsigned int)'} from incompatible pointer type 'int (*)(struct iommu_domain *, long unsigned int, phys_addr_t, size_t, int)' {aka 'int (*)(struct iommu_domain *, long unsigned int, long long unsigned int, long unsigned int, int)'} [-Werror=incompatible-pointer-types]
1580 | .map = arm_smmu_map,
| ^~~~~~~~~~~~
drivers/iommu/arm-smmu.c:1580:35: note: (near initialization for 'arm_smmu_ops.map')
drivers/iommu/arm-smmu.c:1585:10: error: 'struct iommu_ops' has no member named 'add_device'
1585 | .add_device = arm_smmu_add_device,
| ^~~~~~~~~~
drivers/iommu/arm-smmu.c:1585:35: error: initialization of 'struct iommu_device * (*)(struct device *)' from incompatible pointer type 'int (*)(struct device *)' [-Werror=incompatible-pointer-types]
1585 | .add_device = arm_smmu_add_device,
| ^~~~~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu.c:1585:35: note: (near initialization for 'arm_smmu_ops.probe_device')
drivers/iommu/arm-smmu.c:1586:10: error: 'struct iommu_ops' has no member named 'remove_device'; did you mean 'probe_device'?
1586 | .remove_device = arm_smmu_remove_device,
| ^~~~~~~~~~~~~
| probe_device
>> drivers/iommu/arm-smmu.c:1590:10: error: 'struct iommu_ops' has no member named 'enable_nesting'
1590 | .enable_nesting = arm_smmu_enable_nesting,
| ^~~~~~~~~~~~~~
>> drivers/iommu/arm-smmu.c:1590:35: error: initialization of 'void (*)(struct device *, struct list_head *)' from incompatible pointer type 'int (*)(struct iommu_domain *)' [-Werror=incompatible-pointer-types]
1590 | .enable_nesting = arm_smmu_enable_nesting,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu.c:1590:35: note: (near initialization for 'arm_smmu_ops.get_resv_regions')
drivers/iommu/arm-smmu.c:1592:35: warning: initialized field overwritten [-Woverride-init]
1592 | .get_resv_regions = arm_smmu_get_resv_regions,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iommu/arm-smmu.c:1592:35: note: (near initialization for 'arm_smmu_ops.get_resv_regions')
cc1: some warnings being treated as errors
vim +1590 drivers/iommu/arm-smmu.c
f3ebee80b3131d4 Eric Auger 2017-01-19 1574
518f7136244c167 Will Deacon 2014-11-14 1575 static struct iommu_ops arm_smmu_ops = {
1fd0c775a573646 Joerg Roedel 2014-09-05 1576 .capable = arm_smmu_capable,
1d672638fca24db Joerg Roedel 2015-03-26 1577 .domain_alloc = arm_smmu_domain_alloc,
1d672638fca24db Joerg Roedel 2015-03-26 1578 .domain_free = arm_smmu_domain_free,
45ae7cff3684ab4 Will Deacon 2013-06-24 1579 .attach_dev = arm_smmu_attach_dev,
45ae7cff3684ab4 Will Deacon 2013-06-24 1580 .map = arm_smmu_map,
45ae7cff3684ab4 Will Deacon 2013-06-24 1581 .unmap = arm_smmu_unmap,
44f6876a00e83df Robin Murphy 2018-09-20 1582 .flush_iotlb_all = arm_smmu_flush_iotlb_all,
32b124492bdf974 Robin Murphy 2017-09-28 1583 .iotlb_sync = arm_smmu_iotlb_sync,
45ae7cff3684ab4 Will Deacon 2013-06-24 1584 .iova_to_phys = arm_smmu_iova_to_phys,
45ae7cff3684ab4 Will Deacon 2013-06-24 1585 .add_device = arm_smmu_add_device,
45ae7cff3684ab4 Will Deacon 2013-06-24 1586 .remove_device = arm_smmu_remove_device,
af65993224c1cfd Joerg Roedel 2015-10-21 1587 .device_group = arm_smmu_device_group,
c752ce45b213de8 Will Deacon 2014-06-25 1588 .domain_get_attr = arm_smmu_domain_get_attr,
c752ce45b213de8 Will Deacon 2014-06-25 1589 .domain_set_attr = arm_smmu_domain_set_attr,
3e38de275a876dc Christoph Hellwig 2021-04-01 @1590 .enable_nesting = arm_smmu_enable_nesting,
021bb8420d44cf5 Robin Murphy 2016-09-14 1591 .of_xlate = arm_smmu_of_xlate,
f3ebee80b3131d4 Eric Auger 2017-01-19 1592 .get_resv_regions = arm_smmu_get_resv_regions,
f3ebee80b3131d4 Eric Auger 2017-01-19 1593 .put_resv_regions = arm_smmu_put_resv_regions,
518f7136244c167 Will Deacon 2014-11-14 1594 .pgsize_bitmap = -1UL, /* Restricted during device attach */
45ae7cff3684ab4 Will Deacon 2013-06-24 1595 };
45ae7cff3684ab4 Will Deacon 2013-06-24 1596
:::::: The code at line 1590 was first introduced by commit
:::::: 3e38de275a876dcf09eb478610a9055366496bc9 iommu: remove DOMAIN_ATTR_NESTING
:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Jianping Liu <frankjpliu@tencent.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-12-04 16:02 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=202412042329.aR9XHA50-lkp@intel.com \
--to=lkp@intel.com \
--cc=aurelianliu@tencent.com \
--cc=deshengwu@tencent.com \
--cc=flyingpeng@tencent.com \
--cc=frankjpliu@tencent.com \
--cc=jason.zeng@intel.com \
--cc=jingqunli@tencent.com \
--cc=kaixuxia@tencent.com \
--cc=kasong@tencent.com \
--cc=kernelxing@tencent.com \
--cc=lin.x.wang@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pei.p.jia@intel.com \
--cc=sagazchen@tencent.com \
--cc=yingbao.jia@intel.com \
/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.