From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.11 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796033527; b=yaRPMsYouY1oFpTe7yVHODvM3gAelug9FaeKq8ua9u99btOJu5Fzi+tzwTr1c7hEEFCF bx+XDROYVe8qN6kgTdXL5QbJGtSbQLNbWfLrWaRzMlXuUKFxDSMOqjokS45OOFBCQUqeq FwpaA4swRsoi1lAXKAyQ2lMdVw1CpIAtkO6FfCdaIRsd2Dcp2o7Aqr6sAC8le3GNhdXTu zOEmrbTZsBOCqs8xrYOQ8Eq3dd3TnHrGmFxOoMSOPtLLaZRo63OkU4nGnmL6d6UScAF0a aUp/1pA3zQ04NywTymtBXTdieEK3sPLnA3udEQW5IZBHvuSqLB2yNCUFY3430E4Cc2g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796033527; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:User-Agent; bh=bpWnQXjiPRtFIycL+zq2lUqeTMyP7D3u2W8hvRN7yLQ=; b=V21XiPrKGvZ6rvrsr5InsHcYQsF8K7JhGx2ze16HTOOWvHnwyZG1MCQOWYLnWiEemKy0 rpl/2uwZEj634eY5sgzvzxXsCok4yvt9tELVPtIELqJXDM0i+34LDQV4573mRP0NjO4qI YThtoleDXl+wtY5a8kBnUl/4zNtUzRn1GOgJjXluzsLIqqet7MerWD8fvHb+KZZAOmV/h NREs/D85UBKSEjDDGyz+PIFxoQLWXORb+Wa10GG+KsdGDrm+OQosnVxU9NOsJvOOrw2CJ nDArpP0qNOzExJ9qi4KPLxp2+qhTGMMJq9aUiouBA3/Hp7qWlesBe6d+3Zqwc7uKkOw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Sk9P4ByW; arc=none smtp.remote-ip=192.198.163.11 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B997606A31C for ; Mon, 30 Nov 2026 10:12:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8B997606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Sk9P4ByW DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796033527; x=1827569527; h=date:from:to:cc:subject:message-id; bh=bpWnQXjiPRtFIycL+zq2lUqeTMyP7D3u2W8hvRN7yLQ=; b=Sk9P4ByWQr792o+7p4eyL4KXQ6ZUsyYZo+Fxm8yCEGW7zpXkzcaEH6MK c4SjlIhPmBW/04pCUNjDNKVmHHxOq6DeyxZSNl4Lyw0H1Ea+1Oor6zUQQ Ft6vOtur8xQ/V8lXMAt8YvZaZc3G1ljUQRZzv/i+ldrTyoyuccdS+vtQ3 Jk+VNEJwC6BhJJy1JSJp51uK2xN9vHRB2MdiUnc5jagFAix4Uac9MEudC Xn5TX9W863PyERsWAJW8DdSREkTMegxvwJcUN4K/BtxTS7csr7h7Jli2Q +agDmlVBmuDTkv1vEFY83ZSfJtZye4by0SCW/Apn/ZMoT4CBXfPmGrJm6 Q==; X-CSE-ConnectionGUID: yWpjILSsRteddOhQQDcYvg== X-CSE-MsgGUID: 1Si7uX4JSaO+sLte3QE2gw== X-IronPort-AV: E=McAfee;i="6800,10657,11981"; a="4773533" X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="4773533" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 02:12:06 -0800 X-CSE-ConnectionGUID: CEXNbshUS9uM60dykehXtQ== X-CSE-MsgGUID: XYQ7OvN7TZ6REAHCeEmFeg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,242,1787036400"; d="scan'208";a="12929313" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by orviesa006.jf.intel.com with ESMTP; 30 Nov 2026 02:12:05 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xXyMc-000000001LK-23Qi; Mon, 30 Nov 2026 10:12:02 +0000 Date: Mon, 30 Nov 2026 11:12:00 +0100 From: kernel test robot To: Eileen Yoon Cc: oe-kbuild-all@lists.linux.dev, Janne Grunau Subject: [asahilinux:bits/240-isp 39/104] drivers/media/platform/apple/isp/isp-drv.c:131:undefined reference to `drm_mm_takedown' Message-ID: <20261130110958.Lt7M2eLm-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://github.com/AsahiLinux/linux bits/240-isp head: a8d695c590dce32e51a585ee96711819849e01be commit: 678610a51b7c8e6c54ee4568d97c0b7cff1049d4 [39/104] media: apple: Add Apple ISP driver config: um-randconfig-r2111-20261130 (https://download.01.org/0day-ci/archive/20261130/20261130110958.Lt7M2eLm-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130110958.Lt7M2eLm-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 | Closes: https://lore.kernel.org/oe-kbuild-all/20261130110958.Lt7M2eLm-lkp@intel.com/ All errors (new ones prefixed by >>): /usr/bin/ld: warning: .tmp_vmlinux1 has a LOAD segment with RWX permissions /usr/bin/ld: drivers/media/platform/apple/isp/isp-drv.o: in function `apple_isp_free_iommu': >> drivers/media/platform/apple/isp/isp-drv.c:131:(.text+0x6ce): undefined reference to `drm_mm_takedown' /usr/bin/ld: drivers/media/platform/apple/isp/isp-drv.o: in function `apple_isp_init_iommu': >> drivers/media/platform/apple/isp/isp-drv.c:113:(.text+0x866): undefined reference to `drm_mm_init' >> /usr/bin/ld: drivers/media/platform/apple/isp/isp-drv.c:118:(.text+0x8b2): undefined reference to `drm_mm_takedown' /usr/bin/ld: drivers/media/platform/apple/isp/isp-drv.o: in function `apple_isp_free_iommu': drivers/media/platform/apple/isp/isp-drv.c:131:(.text+0x974): undefined reference to `drm_mm_takedown' /usr/bin/ld: drivers/media/platform/apple/isp/isp-iommu.o: in function `isp_surf_unreserve_iova': >> drivers/media/platform/apple/isp/isp-iommu.c:78:(.text+0x4b8): undefined reference to `drm_mm_remove_node' /usr/bin/ld: drivers/media/platform/apple/isp/isp-iommu.o: in function `drm_mm_insert_node_generic': >> include/drm/drm_mm.h:439:(.text+0x69b): undefined reference to `drm_mm_insert_node_in_range' /usr/bin/ld: drivers/media/platform/apple/isp/isp-iommu.o: in function `isp_surf_unreserve_iova': drivers/media/platform/apple/isp/isp-iommu.c:78:(.text+0x8f7): undefined reference to `drm_mm_remove_node' >> /usr/bin/ld: drivers/media/platform/apple/isp/isp-iommu.c:78:(.text+0xb7d): undefined reference to `drm_mm_remove_node' /usr/bin/ld: drivers/media/platform/apple/isp/isp-iommu.c:78:(.text+0xc26): undefined reference to `drm_mm_remove_node' >> clang: error: linker command failed with exit code 1 (use -v to see invocation) vim +131 drivers/media/platform/apple/isp/isp-drv.c 78 79 static int apple_isp_init_iommu(struct apple_isp *isp) 80 { 81 struct device *dev = isp->dev; 82 struct isp_firmware *fw = &isp->fw; 83 u64 heap_base, heap_size, vm_size; 84 int err; 85 int i = 0; 86 87 isp->domain = iommu_get_domain_for_dev(isp->dev); 88 if (!isp->domain) 89 return -EPROBE_DEFER; 90 isp->shift = __ffs(isp->domain->pgsize_bitmap); 91 92 err = of_property_read_u64(dev->of_node, "apple,isp-heap-base", 93 &heap_base); 94 if (err) { 95 dev_err(dev, "failed to read 'apple,isp-heap-base': %d\n", err); 96 return err; 97 } 98 99 err = of_property_read_u64(dev->of_node, "apple,isp-heap-size", 100 &heap_size); 101 if (err) { 102 dev_err(dev, "failed to read 'apple,isp-heap-size': %d\n", err); 103 return err; 104 } 105 106 err = of_property_read_u64(dev->of_node, "apple,dart-vm-size", 107 &vm_size); 108 if (err) { 109 dev_err(dev, "failed to read 'apple,dart-vm-size': %d\n", err); 110 return err; 111 } 112 > 113 drm_mm_init(&isp->iovad, heap_base, vm_size - heap_base); 114 115 /* Allocate read-only coprocessor private heap */ 116 fw->heap = isp_alloc_surface(isp, heap_size); 117 if (!fw->heap) { > 118 drm_mm_takedown(&isp->iovad); 119 err = -ENOMEM; 120 return err; 121 } 122 123 apple_isp_iommu_sync_ttbr(isp); 124 125 return 0; 126 } 127 128 static void apple_isp_free_iommu(struct apple_isp *isp) 129 { 130 isp_free_surface(isp, isp->fw.heap); > 131 drm_mm_takedown(&isp->iovad); 132 } 133 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki