Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2645978lqb; Tue, 28 May 2024 06:31:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUa6UWOqr417iP4aCyTsWLqv84vF4vc8SCNaFh7IEMmMMWOkvMBAtp0Yd27IRTQ+goc7mFySHuthR/yIRNOShl6FVIhKr81be/OjHUtqQ== X-Google-Smtp-Source: AGHT+IHrKHFm3o3MNZvhFiMoR8iji/4vOP8VpC6OsEm07753/iIzmXcAPlgiK77sElVfu8y0GXly X-Received: by 2002:a17:906:753:b0:a63:560d:fe0f with SMTP id a640c23a62f3a-a63560dfee6mr67725066b.14.1716903112286; Tue, 28 May 2024 06:31:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716903112; cv=pass; d=google.com; s=arc-20160816; b=bUwdc3iQnHRcg9BI9+1hnCyr8Ph+C7vwNnZhbjoYEFis0t4Z9l+gDDPHshi2jO5viO AX6BxKWY/NgSNRL7VnP0mbiv1aPp25unGW+8ehsAGOkf3lks2liu6r4rzbuJ//xQo2Vz aGj4MGJAshxqIBy3maivBS4IxsyKfcUSo+nB/TwcJdAU0YFTUNer2jIGcTZ5AUs3HDe9 XrZt+WmPCtNiCTlDqosR6d01mkQyiC4Q3cR+VswaCuIoqdwvcuvrKRhzihIMLGeQlJP6 N8msrvBmC4bvGpzgusQDJypo0+SZltvKXVUwCO6VNRb2MarGpF4ZOCdeYsbz+ZMpNH7Y FPhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=yg75zh3iA0Q3xaa8uPemxAE68SZhMmO+y8DCIkVsLi4=; fh=iFSfUXBmbaxFa4JvnPmKHvScc22JvYTXYsi5dVnxAfw=; b=RMgg/3OJwSDvx84eKa7T9iqGrlqzwyqTs2YQTqy8bzCVEnaIlHuzo33cr8idyGsuKK whFSVkDlDD+MFD0HPd/mak+ahcOmWXg09GPwZpbq6f7lmCVpgYdNNtZ1eIQZZ4DUvGk2 1eGWBfBfMWDDoLz92x/ZvHuWqNrxUsL/QxnWaiFLq+AQmBucpDWrbEb7LR8BmETkBwEt WOM7kGj2Xy6xcbP7mSG7tXoBfeA1e/Z8NNhWA8qI3G/+aVxV+jkBx2MQ6/VT1lPnttTp MYezlajVzEqBwbQaR0i+3Go6Us3YF0C6byasGYScd/bhYs8DTkMzvmeRxy73t6VysJmZ FHpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pGCvZfVH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c8017f6si507218166b.175.2024.05.28.06.31.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:31:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pGCvZfVH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-192418-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 09B0D1F24EAB for ; Tue, 28 May 2024 13:31:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8062216F274; Tue, 28 May 2024 13:31:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pGCvZfVH" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A697417C7F; Tue, 28 May 2024 13:31:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716903104; cv=none; b=SXyDxNBrb2Hfm9ArNJ6Hm3iZu4io2nZZ4wEvdkV4hSQPCiZJkHTIms6x05a9OD+udC4D4e74rcRGp3x55MDu7JybyD9DyB9Xb0amJ1b9ZHAoox6uWQcmeN9xn35HU90BYX9YBAq6iRDZCeDji6Hr+cOBHWfDdT8sjDnGD4FZE9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716903104; c=relaxed/simple; bh=vAWFowi/ZtCoWVCtCiP9IvNYrXqa5Ge8ez16WM4Swes=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=G9jaNcFxkJ8CyEtdGDC2IQeodR6IsXEueyozZa2aztlSgre8p5LmzDXA9jwAVLLflmnclDKZP3AIwpvPXbyelnxjaGOUpf2pqAZSCk24DqOsV/U9GUhTCBulcy/XfCkcKvZNIfivYZ+6mxm0DZ8NIfXE6EXxlUU9MW68NBapyPY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pGCvZfVH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AFBBC3277B; Tue, 28 May 2024 13:31:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716903104; bh=vAWFowi/ZtCoWVCtCiP9IvNYrXqa5Ge8ez16WM4Swes=; h=From:To:Cc:Subject:Date:From; b=pGCvZfVHhZ3L6Pzx7NnHPDucViDWDEXfo30Quks0js3n/M15sESgT5MwXxE/XAai9 fJQk6BkT+ZZxD9WMXXxk9ycI0azOl7qkJnkYXfmLJVlKI2MCibPbzOfv/h7ih4EZt+ iuLKQMkhCgQAO1p1nQ2OhTnOOz+PA1xtN8YxGXp+tOJKuJraLxxl+BhOKn8GnMCa12 9oTy3b86sC/2D0vyhiNo8O4UFgcxKML9hf+5ka4S1eog8mw8JqUy9X3DszxHPnDgv3 fTwUMSd3rX6hQlKQQsonajId75IWesJxK/f3WmiZbRuxlByQXJ3m0WTRrzwUvXyxPQ laRSU/cuxHlXA== From: Arnd Bergmann To: Sumit Semwal , =?UTF-8?q?Christian=20K=C3=B6nig?= , Dave Airlie , Vivek Kasireddy , David Hildenbrand , Gerd Hoffmann , Andrew Morton Cc: Arnd Bergmann , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH] udmabuf: add CONFIG_MMU dependency Date: Tue, 28 May 2024 15:31:31 +0200 Message-Id: <20240528133138.2237237-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: f7254e043ff1 ("udmabuf: use vmf_insert_pfn and VM_PFNMAP for handling mmap") Signed-off-by: Arnd Bergmann --- 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. -- 2.39.2