Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp34449lqo; Wed, 15 May 2024 07:04:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmfEhPLVygtyT4Edzdi0Je2H5TqHJOQima9hI+x6DMqq1amMYp1aIwKzF9ULCcQy9pn67OVeomR9TRo6TVD2/dqFPiNv2R9udmr+vKyw== X-Google-Smtp-Source: AGHT+IF/lo8G1WQxMzzhwvS3ZE9XQUyz7zDYYqBTcENRKrZXMxbO3CKypzBxZg50WdCHtOai3Tnh X-Received: by 2002:a05:6a00:989:b0:6ec:fdcd:18eb with SMTP id d2e1a72fcca58-6f4e036b729mr17567759b3a.21.1715781896249; Wed, 15 May 2024 07:04:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715781896; cv=pass; d=google.com; s=arc-20160816; b=AMLvZ+YwVOxgEykF9raydUDxnF0X3CnQI1f8zTe5KaHqK1Te3BnurOf5xnnWs2O55I 0kjLkvM4qDyEsLBdbIyGySRAvLDUbqKlwFgD/o1d5JFWMWCb8PTuXFncHmtDKJS5BWCW j6zOwUHU3d7je+3PqQYrl/lOToccod2MZnbWnYLpqetW1DThwf1N6M4oQOIVQ6u0Kh9T xy9/1O/LpBBHAD5fh9vBcxf69LyG9eYlwPnpA4O4ACo+n9AWrvuE4O6IJVcHFyE+P/1H EaPdG9g/+jTksuDjqj5JgNL2xw/p6iSsghNPKNDExam63xzlUUpzqkCKXO3kWw658435 mdWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=2oOQ8nj/Y0gcH8MYc4s5Q8G0KZg8wvkwmB83Mq36OS8=; fh=oKXp7eYw+ueF/PASYm8o1QMj1RprGGi2Ykngp1NB+LU=; b=PR9ib07ciVri/oCkQrtUUvzP08nQwttkrOnyBq/f89hl0Bu645P6SGCLbnHhQrFA40 y+v6P2IrELAXbY7iRifF1DzfnV1vUd60uKYhzzKlLTWxze1x1tZz0qO5/mFTzHTMdfOD zNv62qe8bIFLTPMXHF7UYpsLMa+HEilzJlt1oUyC6sABh50rW+EgBEcp7AgML6EJrVfQ O1gM1SonaMyHM0dvbdh+0hsJulYYQLtc5+vcn6eY11WBIlnu7TjXCfvf7W2shXDWADhz X7VFT+Duje+yEZBovxaw1mpaGBeApKncQLzmNU/HmZ/I3jT2VBE7Zq4x0340mwf32MNL V9eA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tOp4lR8X; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aef039si14512130b3a.182.2024.05.15.07.04.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 07:04:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tOp4lR8X; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179955-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 51FDAB242AF for ; Wed, 15 May 2024 13:58:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93F3B14038F; Wed, 15 May 2024 13:57:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tOp4lR8X" 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 B769C14036A; Wed, 15 May 2024 13:57:51 +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=1715781471; cv=none; b=uw5GjysECbnsMly5EdG6OdgxwF4I1lvVKtszDILgWgpPwTDuWXsqOh36eqN0OB4DRzSjxdjr4sYeRF0zRISu+0Jr/vk2hKmDVCeBEtEj0K4IMLq08iryFVI0bYn756SY/EQlGJZa5orBb+ayS4kh09ufdH10srNXoc3KRrJs0Os= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715781471; c=relaxed/simple; bh=WlatdzDn5ln9onnNggxk+fyl1HpLY51fWYKvzy2mHOg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=c91rY8S5tUzr6ewzTbtiYbFvo3hwMJeW/5d7nPDmVOl6TChiKIot8qRF7W9LXXQ6LPrWJdmXKOvqRTTNzjvSqcfvkVDUwoCY6eYeAWcTzRxJQGFop7xW1ooVScjZsHsvCmrYLDBvj0w1jQ9baGL7wP/ILJrcMuEdRK/dxm0oqG0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tOp4lR8X; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18B28C116B1; Wed, 15 May 2024 13:57:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715781471; bh=WlatdzDn5ln9onnNggxk+fyl1HpLY51fWYKvzy2mHOg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=tOp4lR8Xi9y7SXrlPN4RRDtbbEihJDZsXFsYuT50HqukD2dqQDCKdRN12/0+EMRKb 4GxcHkEYYQwNTs55WBFKc3l8txKL7m7sWXy58yR6ih2EpH7fbVOpRIbmJzLB6y7L43 z3tzAMtENCjfDLcFGgLMxefwVbI2x/Ra7oqPq5kA6UeMNjS2ontIRJ7DJYf23xlGTD xRqA61OBzd3oV7HWy8to7fJOtP3opiZ9MdMxQw1dt2zDLuA0DQztG0HIZC/g1962Us k5i+gtEJav11An/G8O6Hb/Kv3zajjRErguxEBm1vDSs9KJn7+vjtGWzAjdYB9tbZ1E XDf25KvPwtkxA== From: Maxime Ripard Date: Wed, 15 May 2024 15:56:58 +0200 Subject: [PATCH 3/8] dma-buf: heaps: Import uAPI header Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240515-dma-buf-ecc-heap-v1-3-54cbbd049511@kernel.org> References: <20240515-dma-buf-ecc-heap-v1-0-54cbbd049511@kernel.org> In-Reply-To: <20240515-dma-buf-ecc-heap-v1-0-54cbbd049511@kernel.org> To: Rob Herring , Saravana Kannan , Sumit Semwal , Benjamin Gaignard , Brian Starkey , John Stultz , "T.J. Mercier" , =?utf-8?q?Christian_K=C3=B6nig?= Cc: Mattijs Korpershoek , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Maxime Ripard X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=758; i=mripard@kernel.org; h=from:subject:message-id; bh=WlatdzDn5ln9onnNggxk+fyl1HpLY51fWYKvzy2mHOg=; b=owGbwMvMwCmsHn9OcpHtvjLG02pJDGku+/3e/CltXrZHt3vnu0l/DhuoJs0MtQxoT13VdKcst 2F5oU55x1QWBmFOBlkxRZYnMmGnl7cvrnKwX/kDZg4rE8gQBi5OAZjI9cmMDY8aVp+d+WfjezXZ BxK7Ww+09n27yvEt6mCamVPDJU9H0ef93XVdB32ttZZOu7j37cmVVxnrPdJ8JPqMt8d3xXZP5t7 xT1xa/dZ8lb1mKvf895zO+z7ZtenGhg5hzzuPwsUUkhKear4GAA== X-Developer-Key: i=mripard@kernel.org; a=openpgp; fpr=BE5675C37E818C8B5764241C254BCFC56BF6CE8D The uAPI header has a bunch of constants and structures that might be handy in drivers. Let's include the header in the driver-side dma-heap header. Signed-off-by: Maxime Ripard --- include/linux/dma-heap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/dma-heap.h b/include/linux/dma-heap.h index 0c05561cad6e..e7cf110c5fdc 100644 --- a/include/linux/dma-heap.h +++ b/include/linux/dma-heap.h @@ -10,10 +10,12 @@ #define _DMA_HEAPS_H #include #include +#include + struct dma_heap; /** * struct dma_heap_ops - ops to operate on a given heap * @allocate: allocate dmabuf and return struct dma_buf ptr -- 2.44.0