[luxis1999-iommufd:iommufd-v5.17-rc1 22/28] microblaze-linux-ld: undefined reference to `interval_tree_iter_next'
by kernel test robot
tree: https://github.com/luxis1999/iommufd iommufd-v5.17-rc1
head: ebf68af0385d0d5c209e63e8065d31db938275d8
commit: e8571fda9f22c4c339a8c908ba5db3dc78bd3fc8 [22/28] vfio/pci: Add bind_iommufd() support
config: microblaze-randconfig-r002-20220209 (https://download.01.org/0day-ci/archive/20220210/202202100557.pXDp0sNZ-lk...)
compiler: microblaze-linux-gcc (GCC) 11.2.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/luxis1999/iommufd/commit/e8571fda9f22c4c339a8c908ba5db...
git remote add luxis1999-iommufd https://github.com/luxis1999/iommufd
git fetch --no-tags luxis1999-iommufd iommufd-v5.17-rc1
git checkout e8571fda9f22c4c339a8c908ba5db3dc78bd3fc8
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=microblaze SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_pages_get_exact_user':
(.text+0x34): undefined reference to `interval_tree_iter_first'
>> microblaze-linux-ld: (.text+0x6c): undefined reference to `interval_tree_iter_next'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_alloc_area.part.0':
(.text+0x2a0): undefined reference to `interval_tree_iter_first'
>> microblaze-linux-ld: (.text+0x334): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `__iopt_unmap_iova':
(.text+0x3d8): undefined reference to `interval_tree_remove'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_alloc_iova':
(.text+0x890): undefined reference to `interval_tree_span_iter_first'
>> microblaze-linux-ld: (.text+0x8f4): undefined reference to `interval_tree_span_iter_first'
>> microblaze-linux-ld: (.text+0x998): undefined reference to `interval_tree_span_iter_next'
microblaze-linux-ld: (.text+0x9b0): undefined reference to `interval_tree_span_iter_next'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_map_user_pages':
(.text+0xd04): undefined reference to `interval_tree_insert'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_get_pages':
(.text+0xe74): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_copy_iova':
(.text+0x1114): undefined reference to `interval_tree_insert'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_unmap_iova':
(.text+0x1314): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_unmap_all':
(.text+0x13e8): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_unaccess_pages':
(.text+0x14a0): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x152c): undefined reference to `interval_tree_iter_next'
>> microblaze-linux-ld: (.text+0x1644): undefined reference to `interval_tree_remove'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_access_pages':
(.text+0x1820): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x1908): undefined reference to `interval_tree_iter_next'
>> microblaze-linux-ld: (.text+0x1a40): undefined reference to `interval_tree_insert'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_reserve_iova':
(.text+0x1bf0): undefined reference to `interval_tree_insert'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_remove_reserved_iova':
(.text+0x1c60): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x1c84): undefined reference to `interval_tree_iter_next'
microblaze-linux-ld: (.text+0x1cdc): undefined reference to `interval_tree_remove'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_table_add_domain':
(.text+0x207c): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x20d8): undefined reference to `interval_tree_iter_next'
microblaze-linux-ld: (.text+0x210c): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x2180): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x21d0): undefined reference to `interval_tree_insert'
microblaze-linux-ld: (.text+0x22cc): undefined reference to `interval_tree_insert'
microblaze-linux-ld: drivers/iommu/iommufd/io_pagetable.o: in function `iopt_table_enforce_group_iova':
(.text+0x26f4): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x2914): undefined reference to `interval_tree_insert'
microblaze-linux-ld: drivers/iommu/iommufd/ioas_pt.o: in function `iommufd_ioas_pagetable_iova_ranges':
(.text+0x3f4): undefined reference to `interval_tree_span_iter_first'
microblaze-linux-ld: (.text+0x4d8): undefined reference to `interval_tree_span_iter_next'
microblaze-linux-ld: drivers/iommu/iommufd/pages.o: in function `iopt_pages_unpin':
(.text+0x3a4): undefined reference to `interval_tree_span_iter_first'
microblaze-linux-ld: (.text+0x3c8): undefined reference to `interval_tree_span_iter_next'
microblaze-linux-ld: (.text+0x428): undefined reference to `interval_tree_span_iter_first'
microblaze-linux-ld: (.text+0x544): undefined reference to `interval_tree_span_iter_next'
microblaze-linux-ld: drivers/iommu/iommufd/pages.o: in function `pfn_reader_next':
(.text+0x13fc): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x14b0): undefined reference to `interval_tree_span_iter_next'
microblaze-linux-ld: drivers/iommu/iommufd/pages.o: in function `__iopt_area_unfill_domain':
(.text+0x16bc): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x16ec): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: drivers/iommu/iommufd/pages.o: in function `pfn_reader_init':
(.text+0x19e4): undefined reference to `interval_tree_span_iter_first'
microblaze-linux-ld: drivers/iommu/iommufd/pages.o: in function `iopt_area_fill_domains':
(.text+0x1f68): undefined reference to `interval_tree_insert'
microblaze-linux-ld: drivers/iommu/iommufd/pages.o: in function `iopt_area_unfill_domains':
(.text+0x2030): undefined reference to `interval_tree_remove'
microblaze-linux-ld: drivers/iommu/iommufd/pages.o: in function `iopt_pages_unfill_xarray':
(.text+0x2110): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x2164): undefined reference to `interval_tree_span_iter_first'
microblaze-linux-ld: (.text+0x2188): undefined reference to `interval_tree_span_iter_next'
microblaze-linux-ld: (.text+0x2254): undefined reference to `interval_tree_span_iter_first'
microblaze-linux-ld: (.text+0x227c): undefined reference to `interval_tree_span_iter_next'
microblaze-linux-ld: (.text+0x23c0): undefined reference to `interval_tree_span_iter_first'
microblaze-linux-ld: drivers/iommu/iommufd/pages.o: in function `iopt_pages_fill_xarray':
(.text+0x2740): undefined reference to `interval_tree_span_iter_first'
microblaze-linux-ld: (.text+0x27a8): undefined reference to `interval_tree_span_iter_next'
microblaze-linux-ld: drivers/iommu/iommufd/pages.o: in function `iopt_unfill_domain':
(.text+0x298c): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x29c0): undefined reference to `interval_tree_remove'
microblaze-linux-ld: (.text+0x29f8): undefined reference to `interval_tree_iter_next'
microblaze-linux-ld: (.text+0x2a64): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x2a8c): undefined reference to `interval_tree_iter_next'
microblaze-linux-ld: (.text+0x2adc): undefined reference to `interval_tree_iter_next'
microblaze-linux-ld: (.text+0x2afc): undefined reference to `interval_tree_span_iter_first'
microblaze-linux-ld: (.text+0x2b2c): undefined reference to `interval_tree_span_iter_next'
microblaze-linux-ld: drivers/iommu/iommufd/pages.o: in function `iopt_fill_domain':
(.text+0x2c18): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x2c60): undefined reference to `interval_tree_iter_next'
microblaze-linux-ld: (.text+0x2cbc): undefined reference to `interval_tree_insert'
microblaze-linux-ld: (.text+0x2d6c): undefined reference to `interval_tree_iter_first'
microblaze-linux-ld: (.text+0x2db8): undefined reference to `interval_tree_iter_next'
microblaze-linux-ld: (.text+0x2df8): undefined reference to `interval_tree_remove'
microblaze-linux-ld: drivers/iommu/iommufd/vfio_compat.o: in function `iommufd_fill_cap_iova':
(.text+0x26c): undefined reference to `interval_tree_span_iter_first'
microblaze-linux-ld: (.text+0x364): undefined reference to `interval_tree_span_iter_next'
microblaze-linux-ld: net/core/sock.o: in function `sk_destruct':
(.text+0x3fec): undefined reference to `__sk_defer_free_flush'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for IOMMUFD
Depends on IOMMU_SUPPORT
Selected by
- VFIO_PCI_CORE && VFIO && PCI && MMU
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week
[xilinx-xlnx:xlnx_rebase_v5.15 629/907] drivers/gpu/drm/xlnx/xlnx_dsi.c:967:41: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 200000000000 to 2431504384
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head: 423a108a01e05e84b59a4c4885c16bf3cd8c90c7
commit: 32f4c7d25b52562567b652709480223cf36e3229 [629/907] drm: xlnx: dsi: Adding dsi driver to new framework
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220210/202202100442.B2SOB248-lk...)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494)
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/Xilinx/linux-xlnx/commit/32f4c7d25b52562567b6527094802...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
git checkout 32f4c7d25b52562567b652709480223cf36e3229
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/clk/ drivers/gpu/drm/xlnx/ drivers/net/ethernet/xilinx/ drivers/phy/xilinx/ drivers/staging/
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 >>):
>> drivers/gpu/drm/xlnx/xlnx_dsi.c:967:41: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 200000000000 to 2431504384 [-Wconstant-conversion]
ret = clk_set_rate(dsi->dphy_clk_200M, XDSI_DPHY_CLK_REQ);
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/xlnx/xlnx_dsi.c:88:27: note: expanded from macro 'XDSI_DPHY_CLK_REQ'
#define XDSI_DPHY_CLK_REQ 200000000000UL
^~~~~~~~~~~~~~
>> drivers/gpu/drm/xlnx/xlnx_dsi.c:980:39: warning: result of comparison of constant 203000000000 with expression of type 'unsigned long' is always false [-Wtautological-constant-out-of-range-compare]
if (rate < XDSI_DPHY_CLK_MIN && rate > XDSI_DPHY_CLK_MAX) {
~~~~ ^ ~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/xlnx/xlnx_dsi.c:980:11: warning: result of comparison of constant 197000000000 with expression of type 'unsigned long' is always true [-Wtautological-constant-out-of-range-compare]
if (rate < XDSI_DPHY_CLK_MIN && rate > XDSI_DPHY_CLK_MAX) {
~~~~ ^ ~~~~~~~~~~~~~~~~~
3 warnings generated.
vim +967 drivers/gpu/drm/xlnx/xlnx_dsi.c
928
929 static int xlnx_dsi_probe(struct platform_device *pdev)
930 {
931 struct device *dev = &pdev->dev;
932 struct resource *res;
933 struct xlnx_dsi *dsi;
934 struct device_node *vpss_node;
935 int ret;
936 unsigned long rate;
937
938 dsi = devm_kzalloc(dev, sizeof(*dsi), GFP_KERNEL);
939 if (!dsi)
940 return -ENOMEM;
941
942 dsi->dsi_host.ops = &xlnx_dsi_ops;
943 dsi->dsi_host.dev = dev;
944 dsi->dev = dev;
945
946 ret = xlnx_dsi_parse_dt(dsi);
947 if (ret)
948 return ret;
949
950 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
951 dsi->iomem = devm_ioremap_resource(dev, res);
952 if (IS_ERR(dsi->iomem))
953 return PTR_ERR(dsi->iomem);
954
955 platform_set_drvdata(pdev, dsi);
956
957 /* Bridge support */
958 vpss_node = of_parse_phandle(dsi->dev->of_node, "xlnx,vpss", 0);
959 if (vpss_node) {
960 dsi->bridge = of_xlnx_bridge_get(vpss_node);
961 if (!dsi->bridge) {
962 dev_info(dsi->dev, "Didn't get bridge instance\n");
963 return -EPROBE_DEFER;
964 }
965 }
966
> 967 ret = clk_set_rate(dsi->dphy_clk_200M, XDSI_DPHY_CLK_REQ);
968 if (ret) {
969 dev_err(dev, "failed to set dphy clk rate %d\n", ret);
970 return ret;
971 }
972
973 ret = clk_prepare_enable(dsi->dphy_clk_200M);
974 if (ret) {
975 dev_err(dev, "failed to enable dphy clk %d\n", ret);
976 return ret;
977 }
978
979 rate = clk_get_rate(dsi->dphy_clk_200M);
> 980 if (rate < XDSI_DPHY_CLK_MIN && rate > XDSI_DPHY_CLK_MAX) {
981 dev_err(dev, "Error DPHY clock = %lu\n", rate);
982 ret = -EINVAL;
983 goto err_disable_dphy_clk;
984 }
985
986 ret = clk_prepare_enable(dsi->video_aclk);
987 if (ret) {
988 dev_err(dev, "failed to enable video clk %d\n", ret);
989 goto err_disable_dphy_clk;
990 }
991
992 ret = component_add(dev, &xlnx_dsi_component_ops);
993 if (ret < 0)
994 goto err_disable_video_clk;
995
996 return ret;
997
998 err_disable_video_clk:
999 clk_disable_unprepare(dsi->video_aclk);
1000 err_disable_dphy_clk:
1001 clk_disable_unprepare(dsi->dphy_clk_200M);
1002 return ret;
1003 }
1004
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 1 week