Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2662277lqb; Tue, 28 May 2024 06:58:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUI9OF6FsMKSQVaMyan1S9OGs6OlMrRliLcv3CrkML+rEnTB1P/IFI7fxMsr9TOlMqet46t5cq410eu0AvbtkD2REviC6w5IpEAX0Qz9A== X-Google-Smtp-Source: AGHT+IETJOKeRvBQFBEA5nmOMRfPV6kmbQ8hNdLUTvhQviMW97RNxyZm0j1tY53oII41XUXwi6Fs X-Received: by 2002:a05:622a:1a23:b0:43a:db0c:e7f0 with SMTP id d75a77b69052e-43fb0e804a2mr134125181cf.29.1716904731855; Tue, 28 May 2024 06:58:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716904731; cv=pass; d=google.com; s=arc-20160816; b=icLTsNxOHj5r7UKreb4mGK5U2Nd7zIvo/Pn/TKXSSQ511pMmmsl4glMCYkd8BFxqTb FpderO6lDuCpYFN/wPlNQm0WeP9EO4jmrln6De/EI9Jd1q0LKLQm733QqbzTJiTbBTQ+ u2BTGh0VSHwIh0Xj05wuyAx+tczUSq3b0xCcIRT6CYCFGt+eka9TOJEVAP63veSx1a+p /RcUx055szh29xp4rU3WWsaMg7fdn4CNn0PY6jS6fxQUtv8X/s5neCwYzMk2ySvDXGmF rktZitq6FvYXcqTL9bmAJMAshilTqTb8d2/oCDf1lDyFqoxf402fvPOYUME7KEEJP6NA KMhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=54PHYlJ0PDEnDWhop/PaR+jnOIH2PsxLKNR7Lww/RKs=; fh=HEtoG3ArozuP9jqkdpjV254nYJiZRN8TUtHWlORAEsY=; b=XJl2RSjjzp+hPG2dI6Ig/G2ylGibcwF0e+gkuXC/anWQ1TXLcjA4eSl1vqLMNuuGfS xGxb/mE5hFnW1qg3oXbw+PPLdAZbFaqml0I2ia+TDAd29WDZO60lABJJESmw5J1hceKl Ga29Ke7/YPUEM0QKk4MkZvam8Fmr6r0MiDecuL9HQLQ8bXTXaalwQIj/IMT0IaiNEGs6 9waIfc0xeYR/4DAQZ9eev5KyA59GzaMWAzinCJMERfQzh2gFWeIz1Q39UMH5kcEyU3fN SYGWVLscmPWfbXeka02uT1XmL0XQpV/Ne+nqDewfCMxejAe2IK+tYX/Zbw+fF4WF3CbS k0nQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VMHF84Sz; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-192480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fbd210606si82290161cf.486.2024.05.28.06.58.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:58:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VMHF84Sz; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-192480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1FFD41C22400 for ; Tue, 28 May 2024 13:58:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63F3F16F29C; Tue, 28 May 2024 13:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="VMHF84Sz" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 346FB1DFEB for ; Tue, 28 May 2024 13:58:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716904723; cv=none; b=IQh500SNgJVdbQ39CC2/OWXx0FWwN4NwSb7O1PitQtXXm78oAF+teHNhYslsO2i/q0dPlkne6hCePQwtmsMsExaEJeMHJ20t9zM96vpxJzjpmBPvA+rxCvbjmlxhxBqAutql1aPMcD2ojdleq1FN4xCfhlcoI9h79rK0R6+lP+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716904723; c=relaxed/simple; bh=TKnCfkAVaoR5k11Y8L0f97Y9/r4L5dww9OcYJvQwv/g=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=GDkLd+ZLR76ymBgkB1cJXyNyxUeAhDaAvKmqkcWElitzak7KMFxcJjzf+Pg7OKaJ5X5U+6+hC5TgVnYcbaqz9cyCfF2OSE4xIEJb059MxcrD3DxFgp+Kz4Qu/B3nkPuJORGB469/T9lUweTtTymyTh9xRYDsy92gQs0XSpHirRg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=VMHF84Sz; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716904721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=54PHYlJ0PDEnDWhop/PaR+jnOIH2PsxLKNR7Lww/RKs=; b=VMHF84Szi7wSXjM9HU8RbBOhYLezt1AQtx5BkQ38lg+9tMI2fQJDpZ1faS/U8TqgKB35LY qbQbdgysOkeKafhStWvk8/qYtxNGrPy4Fw7jSI2Lil3pPLFC6B4oGjz4/uYY1kiSTQz9n9 q+YXEGW4RINCI3HAkgfJZFUjwY/j55s= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-552-cwxxvzqoO5WZBMPCIuKVyA-1; Tue, 28 May 2024 09:58:39 -0400 X-MC-Unique: cwxxvzqoO5WZBMPCIuKVyA-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a635b551919so9999466b.2 for ; Tue, 28 May 2024 06:58:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716904718; x=1717509518; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=54PHYlJ0PDEnDWhop/PaR+jnOIH2PsxLKNR7Lww/RKs=; b=jdALEGmi8IrU5AGV5ZvLj/s+rQTzQCADq3foaYCy9j/gxgC2SgR8gMQXROxTY2nl1m CCerM/y0ud7nN+VVocKPGTz3/1WJ5++mXx5TimQCHubzwjlSYmbVO6aNSVWA1LhnsBeb wkJwV5N6qFt0axcBjpYvh0P/43G5uPCrhLacHUJHNcRFDEjhmTgjmuSgKQkeBWKMCLJj vkDSBlm3mePGNuEtEZutCSdkIRqHSsbMupPvUAul1w7Aob6yGIdSqLf4suFtbH93/Dv2 zk/bbsAPE6EiSfi4FUkDQjMym/KFnJzlBPf+EyfYN+t7aOkbCV87YsScb71ww1/dQZN1 YNog== X-Forwarded-Encrypted: i=1; AJvYcCXJh43C0gjEK5Q1p1KWTPzcdYASaRUed4GwAPJDcu/3FYoi8af1Lij5zSeEfSbnr85ENaK3sMEesu0K9ZyJwDTla1BExXSHg1kNEzUe X-Gm-Message-State: AOJu0Yz4mwvvKgbGUHvsZ0n83g32wmY5OZwYtas2Lo5Pn88mgIQqZk1e 9D8DJdVQVFdxVGX7QNIrV9b+6V/oDunlUovkiGLdB14UNSM1bV0JLc5nzypzovol3v8X4ZUvlL7 Wn3l8yCuvcYcth8fPM6bcIBavnY7++cOWIe9I4JlXL5H5HXl8ePpRCj3YaNooLA== X-Received: by 2002:a17:906:bc42:b0:a62:3c94:3bd2 with SMTP id a640c23a62f3a-a6265011270mr904384566b.73.1716904718483; Tue, 28 May 2024 06:58:38 -0700 (PDT) X-Received: by 2002:a17:906:bc42:b0:a62:3c94:3bd2 with SMTP id a640c23a62f3a-a6265011270mr904382466b.73.1716904718020; Tue, 28 May 2024 06:58:38 -0700 (PDT) Received: from ?IPV6:2003:d8:2f28:4600:d3a7:6c26:54cf:e01e? (p200300d82f284600d3a76c2654cfe01e.dip0.t-ipconnect.de. [2003:d8:2f28:4600:d3a7:6c26:54cf:e01e]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626c818362sm617978566b.34.2024.05.28.06.58.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 May 2024 06:58:37 -0700 (PDT) Message-ID: <93ee4e04-bdc7-4ac6-b93b-b6cf1b3311af@redhat.com> Date: Tue, 28 May 2024 15:58:34 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] udmabuf: add CONFIG_MMU dependency To: Arnd Bergmann , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , Dave Airlie , Vivek Kasireddy , 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 References: <20240528133138.2237237-1-arnd@kernel.org> From: David Hildenbrand Content-Language: en-US In-Reply-To: <20240528133138.2237237-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Am 28.05.24 um 15:31 schrieb Arnd Bergmann: > 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. Acked-by: David Hildenbrand -- Thanks, David / dhildenb