From patchwork Mon Dec 16 02:11:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengjiu Wang X-Patchwork-Id: 13909120 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2076.outbound.protection.outlook.com [40.107.22.76]) (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 134548BE8; Mon, 16 Dec 2024 02:12:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.76 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734315136; cv=fail; b=M4cg9U/HHsK6pj4LEIWNeIGTCxrYfXWLsAOrHOAvDXWqUDp8UXz2UTbt5uXir0yX5JXJLqHBM6pPymXPekRc6tpxno119+HFni0eN2zgVoNdVeUIggcnQIfLFZ/qSaHB0mbo/47rpFrw7ItOWLHMTYbTRI2fow2A7G8hUpszRVg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734315136; c=relaxed/simple; bh=RobLszullQceywn5t2KsGvXTU9E0HwQOpYmCmZGcsFA=; h=From:To:Subject:Date:Message-Id:Content-Type:MIME-Version; b=LJXTqfUSt1mTczdSQIkF+yDVW5cio0vDMZe34vxsJIom9rckeOCf4xHYcm+ymgiwj2ciu/oma1hpK/IbwIx5zDHjKa9XmP5JjwvCp+y/UPMGrOrYO+xh9DOFBtHKLN4fGCKUiBn/fkJGXJ2nmO+Xq6qCZsJSKx9Z6pPygJvwf68= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=W59GdtVY; arc=fail smtp.client-ip=40.107.22.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="W59GdtVY" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=styG+Z7Gy16a96T6SfAEvKZzTYhheEoe/f5m+0lgaLqOwNS7TmT/6nTcQXHHlnkCO0uNghFcUrNSrD/x1l9EWPzjtNHnebNkyvrPhf/dFRF6ak0pWJzgAtrMknmYeGLO0R/VAEvCNX2FiSADW40I5l04fwg+2ziGuCXnWjzqvEskgRc27j8duO2aZQh/dW/mgCalndOLtS6YtJOISkapmqoBFd1kafSvXI1yhbCWMo2Mp9gcUJHrKwMi9OGPYwTfkYpfn8/jCxIJST8kQeacIdEUm+hdG/FDlOzXTi1LMc2AgpbzB3yiwtkXkDkByMS97Au4/reRF9tpGb51au3cfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=czNPFLqoFHMi+mFuVpGbawhekDfw3VPIEY5towpSYyA=; b=Jm81T++Ov7CYyx7M0874bd7fL7lRpSNjXhpeHNMEM3I4BAyhzaoudCzBopN3fRB0EaJGBJ34mplpYyiqkdOCe9UiSGy2aUw5js5sKnL/CT711dYyRmVDbtqZE2ke29Ea/D1QfLP+I9g0383kKNoFM6/wzUUFZDQSJ7vM48EhTJ3fU0Rz4LAlv6WaZf3CSPO6YJjA3kSpr6lFqqFEKosLwdATb9nCx1T+nRXeg5s5gPnqBqH/p1J5KBkJe+OcasgwuH0KWqjC70nvjtL5rH6OOf7cvqWuuCkGcWipDBpcsh7DNdJ4Nx8GgjhyCWdtaej5qMLxJS6KqhT05CfouCt8eA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=czNPFLqoFHMi+mFuVpGbawhekDfw3VPIEY5towpSYyA=; b=W59GdtVYEVfu0brLH6gujglzcCQxVMT3h2P7YI3LHJkIGYXLbZmB+F9LQ3oQ6gf7MwZ/mpdr4Dx2MwK/nyRDJhQ8I5gP4u+ucxGhq+C3rM/lnjMj7p5ROXG3qQU6UiYRm9DAL6EP1mBdVxhyMyfERoajQ3XMqKHIHXhkN9cZB3Qzv7tdsERwsl0jaJfG90/zrNsd0rZPl5X55nhdOrWLv5MQbXzb//sJLKTAKaQIWvvguySjuVbkhCCv79UEeirJsNcFx7nO5hCON3UrJKASNxqpaeRfy43sOtaIwqjEmbtI5j/PURausiAPXX8jnYE0rp9BLBpalO9hzeh/8pQNZA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB7044.eurprd04.prod.outlook.com (2603:10a6:208:191::20) by GVXPR04MB10024.eurprd04.prod.outlook.com (2603:10a6:150:117::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.20; Mon, 16 Dec 2024 02:12:11 +0000 Received: from AM0PR04MB7044.eurprd04.prod.outlook.com ([fe80::7be0:296:768c:e891]) by AM0PR04MB7044.eurprd04.prod.outlook.com ([fe80::7be0:296:768c:e891%6]) with mapi id 15.20.8251.015; Mon, 16 Dec 2024 02:12:10 +0000 From: Shengjiu Wang To: vkoul@kernel.org, perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, broonie@kernel.org, lgirdwood@gmail.com Subject: [PATCH] ALSA: compress_offload: import namespace DMA_BUF Date: Mon, 16 Dec 2024 10:11:36 +0800 Message-Id: <20241216021136.3763127-1-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SI1PR02CA0041.apcprd02.prod.outlook.com (2603:1096:4:1f6::18) To AM0PR04MB7044.eurprd04.prod.outlook.com (2603:10a6:208:191::20) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB7044:EE_|GVXPR04MB10024:EE_ X-MS-Office365-Filtering-Correlation-Id: d82f8183-13f3-46af-6742-08dd1d770c7f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: fAZW0k9uq5AMt3moqh99L6xjfKUVNDPQeKBheVK+5kKllzZV5/48JuONC8by0GwppgaBOjrFod1PF5IS01WIUyoG+fR6HOOR9ffrNH2DT56hY7QhpldsIWJUutkDe612N1A6EuDY8pBmdLoONKM77kaLtloCNbC3/kQaDq6C2EYGC6CY6G1ffhrF/dqYXivjg6xhZ5dzCdIPIhr4KeaaRBZLjm/PFPryzJ5R6DB1ApaZxb5ETETLa8aEXg3G07XgYZu7xj2XnyLKtgRAHhIDd0ZMCYwZTceiabxHL3GK3e47AsjNJYYhYFP2MO/QU5GRz+Vn0LVGpMBYS5jAl/eDbvv8XaPTGt/EBYrxN+yxlKbXAO/HHMO6e7kwTwQ7RgbqK3Y9KLHUh+vrXO9gsOVxFZt2uFfCItNF/dP1lWiyRIH2Ndp9JZCYKsbIMR1HSi58Nv0d4QmgsRSocqMhfuDwdvVrDDt4X9DA9hGxmPi6B5T6rdyQ+EKSyjzeSZaaYlSJNXxIMJRfVvkoaG4VwJsDSbBjoVewytj/voc8JaI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Vbj13qkcejQmh59XkE7ORo5A8arlNB0yJuZRPLF+yBARDokZe6tUwOmadazfrukQotxlPi7gQQk9NVXL0WcZXHvo46xRgizjf4TPbExZfTivdqaxCbUXQd6iz8ZsOBt96srqpDXSQmsg2mi5r/kCR/dEpPbI+x9m7JVorMK5TBnx5257X9Y1NXd4tinoleIFx8d0sqc/Nmk4vtlXpMmtm+rrEOGP5/TfuyBYKCUIA6yk4yIX6xtRIQg/97rGQBXRsINcEa+amGrUpii0bX0KIixEj3J72MJ794cJomDBLc+5dlypjjYfiBaKiL+gwoIxmuzsYnBpsOLb9qfWexv61CtMab61CrNonQc/N8YqsOx1DZKJ8EgQFn33UKbKbAMIGZKFi0ck9SqNhBtamVoG3fcgLYAmgLyg41x3TfnoZCObDB1FR2VKU48LW+iWZYMI1g0S7/JfiKeWo6tsWYdobUYLhIMxN5/8P9cKJhKnMCm8SqsMQ8xexmvzDFQIm7FWHaZ9915E1aVIu1nU9vrAxvybq4mo0eGNEFnaY2NXFdjBe2Ko0GDaqiy4aNMLyLaNq0L35D3EuGg6AcWuZ8vCtnIM4eMsyp29Lx8Fy X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d82f8183-13f3-46af-6742-08dd1d770c7f X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB7044.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2024 02:12:10.7591 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oY7HtXryutX2zcLEo8GnkQjQX+IA+6zG0kC68WwVTMYdQGIuJw8sGcmv1GBJPaaNMMFyg84+6ZwxY6heUs7r3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10024 Fix below warning: WARNING: modpost: module snd-compress uses symbol dma_buf_put from namespace DMA_BUF, but does not import it. WARNING: modpost: module snd-compress uses symbol dma_buf_fd from namespace DMA_BUF, but does not import it. WARNING: modpost: module snd-compress uses symbol dma_buf_get from namespace DMA_BUF, but does not import it. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202412150026.EMUdbO09-lkp@intel.com/ Signed-off-by: Shengjiu Wang --- sound/core/compress_offload.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index 86ed2fbee0c8..6f2d389abd04 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c @@ -993,6 +993,8 @@ static int snd_compr_partial_drain(struct snd_compr_stream *stream) #if IS_ENABLED(CONFIG_SND_COMPRESS_ACCEL) +MODULE_IMPORT_NS("DMA_BUF"); + static struct snd_compr_task_runtime * snd_compr_find_task(struct snd_compr_stream *stream, __u64 seqno) {