From patchwork Mon Jun 24 06:36:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kasireddy, Vivek" X-Patchwork-Id: 13709048 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 098D5C2BD05 for ; Mon, 24 Jun 2024 07:05:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DE9E56B0287; Mon, 24 Jun 2024 03:05:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D476B6B028D; Mon, 24 Jun 2024 03:05:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BE9256B028E; Mon, 24 Jun 2024 03:05:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 96C2D6B0287 for ; Mon, 24 Jun 2024 03:05:33 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 24B3D120C3C for ; Mon, 24 Jun 2024 07:05:33 +0000 (UTC) X-FDA: 82264896546.10.34D4FE2 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by imf03.hostedemail.com (Postfix) with ESMTP id E698B20011 for ; Mon, 24 Jun 2024 07:05:29 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=PhzvT4fG; spf=pass (imf03.hostedemail.com: domain of vivek.kasireddy@intel.com designates 198.175.65.21 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=1719212723; 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=TISINcfOtKzM5fk7F5n0R2E4GmWYCuDnS0TH72LqYQeAcgYL0OELa4sW6L6Iop2An42FU0 o9bUDf+/10t8wffx8myx2fIa3J8FOoPixdT27v+JLsoZdfdPPOY+wUGHduIBRwspKbWBVQ sZjLPNQeaA7/XHQcTYxbp/dxEg9AXEk= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=PhzvT4fG; spf=pass (imf03.hostedemail.com: domain of vivek.kasireddy@intel.com designates 198.175.65.21 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=1719212723; a=rsa-sha256; cv=none; b=LoUGoAdFB5KZc2Gw/IYU05ajBxgxUBorYUKewGireZKSMeTMemLoX79rWWBXNutJSqqyfN vk3LEKrgIbk5cbwUWU/MXVnBduHWieor/kNsnQ1DOnejm6obdSNFRdoIK3S+YQOb+qiUjb eAsiSM2xn3tuC+FhxgnNODsdchNV1D8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719212730; x=1750748730; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fbc/iEJxK8IpwWAyl9EpiegNS5GsUhXEj2obZVdXGcg=; b=PhzvT4fGkM6sFokqr/F40UP8C7HehtnBs1z4hRQcpp5UZ0mMUwSmpEY0 jbRzDiCJryy0EiMMnF40t+FOayvv2QhUmKdVDlLj8sitH7efkQbOvEogX wwZhYM6Dkk3KJCdLF6jBI7nqQQ9Szb7X+YHrZEeyqIQs0yIEhGSzBTbjP 2ke5/OD7JdlRJyiFATZ5Cz1ozEna3hRDze9+oLHlC51mCigk+v7IPvWGB 7R3Da34v5qtGQs1hubtMl4YsonIq9RmyizKnzMY3gyMCB/0NWBonsbMnG flLdCtyHMvlBImSxC3Me5ltXB+bd9/absSDCvX3r4YJAQSO3OvRcZrddi w==; X-CSE-ConnectionGUID: 6BDtwKMCTK2fubJ7FRdGLw== X-CSE-MsgGUID: dn96qdw4TSG5feFW14cSZg== X-IronPort-AV: E=McAfee;i="6700,10204,11112"; a="16134955" X-IronPort-AV: E=Sophos;i="6.08,261,1712646000"; d="scan'208";a="16134955" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2024 00:05:25 -0700 X-CSE-ConnectionGUID: 7ue5ihsjSaKDbMt96FdfEA== X-CSE-MsgGUID: Blr1So55RVynf3hWmKtChw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,261,1712646000"; d="scan'208";a="73955871" Received: from vkasired-desk2.fm.intel.com ([10.105.128.132]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2024 00:05:25 -0700 From: Vivek Kasireddy To: dri-devel@lists.freedesktop.org, linux-mm@kvack.org Cc: Arnd Bergmann , David Hildenbrand , Vivek Kasireddy Subject: [PATCH v16 4/9] udmabuf: add CONFIG_MMU dependency Date: Sun, 23 Jun 2024 23:36:12 -0700 Message-ID: <20240624063952.1572359-5-vivek.kasireddy@intel.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240624063952.1572359-1-vivek.kasireddy@intel.com> References: <20240624063952.1572359-1-vivek.kasireddy@intel.com> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: E698B20011 X-Stat-Signature: msckjpnaamfcat49ahjzymxcnmhsapu5 X-HE-Tag: 1719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RieeFk5YvEkS9yiwYdaQG+4uB6hr5+vjgCLjfGhkDRcjgY9K34yBdVuZmNadSpsJi8KbDxK+lqFX3pBbTOZqGNCdXxObep60G2DMmGNjFW6Jf+P2LXm0ITmMAnlg1YlZAhyeMxW1V3RPjyUjYaC/GjrhhcpNb8qGOoRWpts1RzTEe 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.