From patchwork Thu Jun 13 21:42:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kasireddy, Vivek" X-Patchwork-Id: 13697523 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8115FC27C7B for ; Thu, 13 Jun 2024 22:13:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C38186B009E; Thu, 13 Jun 2024 18:13:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BBDFC6B009B; Thu, 13 Jun 2024 18:13:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A386F6B009D; Thu, 13 Jun 2024 18:13:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 7C8986B009A for ; Thu, 13 Jun 2024 18:13:43 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 247E914038C for ; Thu, 13 Jun 2024 22:13:43 +0000 (UTC) X-FDA: 82227268326.26.8CAE782 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by imf03.hostedemail.com (Postfix) with ESMTP id CC03A20002 for ; Thu, 13 Jun 2024 22:13:40 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=UEyte0Jb; spf=pass (imf03.hostedemail.com: domain of vivek.kasireddy@intel.com designates 192.198.163.8 as permitted sender) smtp.mailfrom=vivek.kasireddy@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718316820; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=imyxyEmjs7okOkW4X5bmS7u5/Tpdz/jJa9fnufd4E04=; b=jDMRNQBmdjrNgUXc5FUyglL+eakuwFQEcwVjrn8DbVWDx2jfVv7//wY4pGIxAwaQ45u2xd BATL2GnetP6gHrJFFd4Ih2BzhFo8nAmyKG17p/bHjt+a5Dhp254lP+RwxTijUHY8dnPSzY eNyRaqYbTKf7s0432loc+2UEzk4HQUU= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=UEyte0Jb; spf=pass (imf03.hostedemail.com: domain of vivek.kasireddy@intel.com designates 192.198.163.8 as permitted sender) smtp.mailfrom=vivek.kasireddy@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1718316820; a=rsa-sha256; cv=none; b=vOajxaukrm4gs8qzGVwTZy5BOwlvdOWkVTFOkwn+GLqIvf8xcwFtj3UD+2FII6PYc2w/U6 y4fCn1T70u0KmA7knjTdnOmtuMG5fVtS9BJTODDgt6LcvmWBcJtspuC/hb9Ddpu8jB0QlT yBTWA1PgfXOmePQzMrNgg26WXQYFV4E= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718316821; x=1749852821; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fbc/iEJxK8IpwWAyl9EpiegNS5GsUhXEj2obZVdXGcg=; b=UEyte0Jb7RWOYC0jgcQmzwpwiw6CdFnxICDjUQHsI+mwBtbV/2/JVsN5 U5x90yLHLLlv8+Sf3l+xbovRItaacI31ASGJuxqiq0q5RtpyyGLO5AwBh 7cNcVuywUcLlE8c33KCmI0JugyU+rWNahSSCFnpgb21c2uNLnlLhkXtzP BQe4+0Rm8OxlnqC+wEQMYmTWh0RWFIpvTcC74SoIi6uutjS2Elb5WfWEr E8C2ZmVBjyBEkNB/PLOGUejRt0SoqLKxFmDtXbCkZK55W/xmtgWJYvkMC ua1V7e100TqVs8ElxxpD9mUSPARsvJCDm8j95I0pjMpNrZRBmZKv5Dnf7 Q==; X-CSE-ConnectionGUID: n/GEBXRpQdKOfuxv1UecrQ== X-CSE-MsgGUID: Ae4fDjxPQWGpcTa5n/BhFQ== X-IronPort-AV: E=McAfee;i="6700,10204,11102"; a="32720549" X-IronPort-AV: E=Sophos;i="6.08,236,1712646000"; d="scan'208";a="32720549" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2024 15:13:36 -0700 X-CSE-ConnectionGUID: v6Wh4F+bQM6nkWcKi1+LVA== X-CSE-MsgGUID: KZOhFuG5Qj2FkkdO5Mi3/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,236,1712646000"; d="scan'208";a="45214100" Received: from vkasired-desk2.fm.intel.com ([10.105.128.132]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2024 15:13:36 -0700 From: Vivek Kasireddy To: dri-devel@lists.freedesktop.org, linux-mm@kvack.org Cc: Arnd Bergmann , David Hildenbrand , Vivek Kasireddy Subject: [PATCH v15 4/9] udmabuf: add CONFIG_MMU dependency Date: Thu, 13 Jun 2024 14:42:06 -0700 Message-ID: <20240613214741.1029446-5-vivek.kasireddy@intel.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240613214741.1029446-1-vivek.kasireddy@intel.com> References: <20240613214741.1029446-1-vivek.kasireddy@intel.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: CC03A20002 X-Stat-Signature: 4ykzz668jk876g1u95ah1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z5fhvuelooThOnU41nVkmahWvOcynek55ajEDA+4iYNrFFsSzljaT2ou+09TkeLbB7NbRSc9ATUiGEfh0bx75CWyHVUBp3dhdCojalJc7FxHdjIUywZaUB4WSTFdfxuny+tGZemfrB7H+Aja5z9pH4a9JCxhKVqDxZuHBmSDimN/lcHAG5e X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Arnd Bergmann There is no !CONFIG_MMU version of vmf_insert_pfn(): arm-linux-gnueabi-ld: drivers/dma-buf/udmabuf.o: in function `udmabuf_vm_fault': udmabuf.c:(.text+0xaa): undefined reference to `vmf_insert_pfn' Fixes: d1d00dd1fd2f ("udmabuf: use vmf_insert_pfn and VM_PFNMAP for handling mmap") Signed-off-by: Arnd Bergmann Acked-by: David Hildenbrand Acked-by: Vivek Kasireddy --- drivers/dma-buf/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma-buf/Kconfig b/drivers/dma-buf/Kconfig index e4dc53a36428..b46eb8a552d7 100644 --- a/drivers/dma-buf/Kconfig +++ b/drivers/dma-buf/Kconfig @@ -35,6 +35,7 @@ config UDMABUF default n depends on DMA_SHARED_BUFFER depends on MEMFD_CREATE || COMPILE_TEST + depends on MMU help A driver to let userspace turn memfd regions into dma-bufs. Qemu can use this to create host dmabufs for guest framebuffers.