Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp133078lqo; Thu, 16 May 2024 01:14:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYAJj3kQczgAiwfSnaBwzoIZuZ5vMafaOaFcqXE4D5oV5hFhjghL64zLgXrafoItVuPO9kCxBK2ejQHHldELmuAt8O2+Gop3bPLBTYCA== X-Google-Smtp-Source: AGHT+IEI7wROI48CE+9d+pNCxb2fOR+sNbU6CfnsHokgIV9hSoxzTXQRl5DhWtTgkG7nwmjB0ZI0 X-Received: by 2002:a50:bb05:0:b0:572:8aab:4420 with SMTP id 4fb4d7f45d1cf-5734d6de8c1mr12843046a12.39.1715847282145; Thu, 16 May 2024 01:14:42 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c2d5cbbsi8181402a12.307.2024.05.16.01.14.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:14:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180748-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=@amd.com header.s=selector1 header.b=lIF8OBSG; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-180748-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180748-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.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 am.mirrors.kernel.org (Postfix) with ESMTPS id B63A81F220D6 for ; Thu, 16 May 2024 08:14:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 610E286267; Thu, 16 May 2024 08:14:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="lIF8OBSG" Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2041.outbound.protection.outlook.com [40.107.223.41]) (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 BF8AD4120A; Thu, 16 May 2024 08:14:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.41 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715847270; cv=fail; b=SxWU99b5Nfu0yDwFFpXeSNLwQpvEjzPhWG9EuuyURsaQ9DguAMmxNghHdcQfKPT37j3tUkJb9txEPSP04VZ0SsuFKtKQeChqRuC7hemZpoqwamzOVZGYfnXxqF7br7QAyH9Mu8J1d1vKBDtsKBCDuoEZm5G4rR2bQkMJV656qTc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715847270; c=relaxed/simple; bh=UpA05vk1tr4SuIFkmYjbjx+bRkgfEvJ2vD3xibRS8TA=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=YNUDv2SU+Ej9rGyjOHONmwJrKYQYzdocXXxz13DjcmvOXZUMKYIe50Ng30FnFbc9lloPQ13OINHlPNa3JSwBx2n7rvMSJuioIJjShlmy5HYQ+a/xy+1XU7hlZ+dCJa3/LfWRzY8xJpvjXOSC4ZMTVZVQrsT4Q3ddYHEyeK2R1xs= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=lIF8OBSG; arc=fail smtp.client-ip=40.107.223.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jBJwjyFc8DaJ2DVZrfbIgCknMQwFkNNNO7wKxuJQFoFDAX4KJ6LnSduQsN61J6iZG1r47Hu0ud5vB0SYRQIgukYXdM/RB/utu8OfWl42fhOIPlJVMXPmz0tU9i6cdS5i1NF7rT+KG9KkXefqFsxrqnHcNcJDx9fJ9OioFepz6/896Rhy3kbBnpz82+7j2AquE1VdpLquFVrwOSVO88EZ4oIUdFVp60V9v/Lnd/sHdYvNfzYx0gYhyyOl8MgbY1psTLz4VFD4IgjhtKLtryRnhpmIhzHhd7WqqSwbKPatD6bex5Y9DIFHhQIJviXDksj6DpfJ/fpOYbry5zC5jiw4KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xMBG43wfknCemQ0HFTcgaZt/GMbSv0hDvvt1lNy6ECw=; b=QdmIt1LtLG65ZGEABNY2ttoLhtLwPf/Z2iD/0hD8+K1VvAkphzKTcEj0mnD5Q3Is7OdFLloTTmBGWIlFmVENKXiHuLFw0Yfv1Ivu+D3UvZHo0z2DzpPgxurFKZuqRpgovEUzP7JgW/Yar8ZCD1edPAgoacJWjbaBu5AJADIWd4K0K9eHdoSFmrJHpM1AbJWQMJPQ0KWTkreXWWOl0lDwI6hnH8herNXaU8T4UdfLDhh50jqg61AgV+N0xGe6zg2bgcBa/vhrihW/DYKmC/dXV/jDB82E01fK2fcav3pbla/M2J93riGS9jDb0CMQKr9WQloLxU7LvHk75K1fLFLcyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xMBG43wfknCemQ0HFTcgaZt/GMbSv0hDvvt1lNy6ECw=; b=lIF8OBSGcb8L8upO6JSy8Zibwfap19TLmSrSc6GuzaL7hKGCupzequyf6EWVAE4VdROUirEKpChq/VK93gj0n4xOWfLUc0TlUGAtPTk4CAkv1VS1nATB7TxSv96fcznCmiIgVNPu059ddJWEfKloB7MtotdSabVR7UIBl5zdOS0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from PH7PR12MB5685.namprd12.prod.outlook.com (2603:10b6:510:13c::22) by SA1PR12MB6919.namprd12.prod.outlook.com (2603:10b6:806:24e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.28; Thu, 16 May 2024 08:14:26 +0000 Received: from PH7PR12MB5685.namprd12.prod.outlook.com ([fe80::46fb:96f2:7667:7ca5]) by PH7PR12MB5685.namprd12.prod.outlook.com ([fe80::46fb:96f2:7667:7ca5%2]) with mapi id 15.20.7587.025; Thu, 16 May 2024 08:14:26 +0000 Message-ID: Date: Thu, 16 May 2024 10:14:18 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/8] dma-buf: heaps: Import uAPI header To: Maxime Ripard , Rob Herring , Saravana Kannan , Sumit Semwal , Benjamin Gaignard , Brian Starkey , John Stultz , "T.J. Mercier" 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 References: <20240515-dma-buf-ecc-heap-v1-0-54cbbd049511@kernel.org> <20240515-dma-buf-ecc-heap-v1-3-54cbbd049511@kernel.org> Content-Language: en-US From: =?UTF-8?Q?Christian_K=C3=B6nig?= In-Reply-To: <20240515-dma-buf-ecc-heap-v1-3-54cbbd049511@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR4P281CA0434.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:d1::7) To PH7PR12MB5685.namprd12.prod.outlook.com (2603:10b6:510:13c::22) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB5685:EE_|SA1PR12MB6919:EE_ X-MS-Office365-Filtering-Correlation-Id: 75a5ca1d-040b-47b1-74cb-08dc75803356 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?NnJRY1FCaG5aSFo3UGpTVkNuMVZVek5uWk05TmsyWlk1RXlqUHlDRWNpaEVt?= =?utf-8?B?T0J4MVdMRVlmUmpzemxLSTlRUHRISTA4R1VsM0tYOUd1cWdmQmhXWDB3RDNQ?= =?utf-8?B?QWtxWjhDSE9Zczh6TmhXd1BNc2J4MDNKdGdoWHdLRG1CRThmZlRBV254bElL?= =?utf-8?B?cHlGcDR2SHVrbmpVbmdUbGdvSXVCcWg2WkZnU1JtZ2tIMkFZNFExZnhnQkZE?= =?utf-8?B?WjZ5MkZ3WnA3d3k2Tk4vN295SVBOTzkyWHpZaDhYR0tad1lscW5iSmRUaWhN?= =?utf-8?B?bFhWclhZUElFMUFBZnd5SVhjdFdwZUNoeng2ZHUzY3FmYXliUExhVk00WVlE?= =?utf-8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NL?= =?utf-8?B?ekRyMmtoaFZZZjhHc0VPNmhaWGNsczB5VTljU3F2NU44N1QydEt1U1dJYU1X?= =?utf-8?B?UkdPaUo0T2JSaGRqN0lRK1k5WEhMUFlmQUVnckFkMnRpaHhTbklrZlgxNlVt?= =?utf-8?B?Vno3QnFkRHFVempmc1dlaURUejBkMk5lNXZoREZzdUI0dWlaSDU2c3JPRDBJ?= =?utf-8?B?bVRtaFNza1FwS0tvY0U3UHE1eXNiUEZmU1JhdWxqbDh3UnZrZU9sdzdEN3Ur?= =?utf-8?B?WUxDRFByRjJFYTYva0lrbEhIeDFJcXEzRXk1L0I3bG44NVZBcENCeUpOVGdJ?= =?utf-8?B?UkE4OXZKbEJTbFVIdUsxQkM1U29GVWUvSkx6QjFyZjk1b00xMTJwU1BOeWNr?= =?utf-8?B?QnRQZUMrL0x3MzFKSkRkTVkrV2FqUGxUSkVxSXdTc0JEd0gvWjF1N2pzdExt?= =?utf-8?B?Q1pnLzdxOE9RTWMxSk5wRUZaR3RpRG9aUnFUVk5GSWZHbFl6OHo2Y1B3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB5685.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?THpmcUZIK1BvSkdaZk9sM1J1SE1tb3JWYXRmRDgvL3RHMHZxVFcyU1R3K0NW?= =?utf-8?B?b0V1dlNZalFVL05iOWlFcGJNM1Z5WWRYNE1DalVsSkpZK0pOWjV5TDMvOWV1?= =?utf-8?B?a1dZakRhVS9wa3lqNTkxckNhUlNGS0FIa2RaMDVvNElERnVhMHNjbEU5dnZm?= =?utf-8?B?YTQxazJESS9FdUxCRml2eGI0eWk4NzdNL043L2dLOEEyWXZtbk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W43MGY2UlFFOTFCWEpsTjhEVzA4TzVrTHJKUVFjRW1F?= =?utf-8?B?OS9XS3RUUHg1QUw3R0pnNk43cG9xcWhpTThMaXFEOEJPei9wbHUxcDljTG5T?= =?utf-8?Q?qMECOjt6x95rhoUVbLLzDbTm0?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75a5ca1d-040b-47b1-74cb-08dc75803356 X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB5685.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2024 08:14:25.9895 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kEc+Qs1FFJC243aVke/lJVQTun4SR5AaDT5WJ8BLoD312gPudKa0yUnlnJ7gj7K2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6919 Am 15.05.24 um 15:56 schrieb Maxime Ripard: > 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. Well as long as this header doesn't need any symbols from the uAPI itself I think that is a no-go. Includes should only be applied for things which are really necessary and not because some driver might need it. Regards, Christian. > > 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 >