-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow building usb_f_uvc as module
Signed-off-by: ZHANG Yuntian <yt@radxa.com>
- Loading branch information
1 parent
96101a9
commit 8bdce8e
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
linux/rk2312/0100-vendor/0002-fix-import-namespace-DMA_BUF-before-using-it.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: ZHANG Yuntian <yt@radxa.com> | ||
Date: Tue, 25 Jun 2024 16:31:45 +0800 | ||
Subject: [PATCH] fix: import namespace DMA_BUF before using it | ||
|
||
--- | ||
drivers/usb/gadget/function/uvc_queue.c | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/drivers/usb/gadget/function/uvc_queue.c b/drivers/usb/gadget/function/uvc_queue.c | ||
index 3565bbe8976e1..237e2335cee6c 100644 | ||
--- a/drivers/usb/gadget/function/uvc_queue.c | ||
+++ b/drivers/usb/gadget/function/uvc_queue.c | ||
@@ -81,6 +81,7 @@ static int uvc_queue_setup(struct vb2_queue *vq, | ||
} | ||
|
||
#if defined(CONFIG_ARCH_ROCKCHIP) && defined(CONFIG_NO_GKI) | ||
+MODULE_IMPORT_NS(DMA_BUF); | ||
/* | ||
* uvc_dma_buf_phys_to_virt - Get the physical address of the dma_buf and | ||
* translate it to virtual address. | ||
-- | ||
2.45.2 | ||
|