summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2021-11-17 10:32:19 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2021-11-17 10:32:19 +0800
commitce0582d18b96f5fa3c11373b3610eec6f93b406d (patch)
tree376e9f15bae64a4e8a17eb96c0fd3fd2d9f88e96
parentbd8f6cd3ae982d56f9a7e9ba18396edbbf0eb620 (diff)
downloadomap-modules-ce0582d18b96f5fa3c11373b3610eec6f93b406d.tar.gz
pvr dmabuf.c: import DMA_BUF namespace
to work with the following change: 16b0314aa746 "dma-buf: move dma-buf symbols into the DMA_BUF module namespace" otherwise there will be build error reported like this: 20:37:20 MODPOST ../../../omap-modules/android-mainline/Module.symvers 20:37:20 ERROR: modpost: module pvrsrvkm uses symbol dma_buf_map_attachment from namespace DMA_BUF, but does not import it. 20:37:20 ERROR: modpost: module pvrsrvkm uses symbol dma_buf_attach from namespace DMA_BUF, but does not import it. 20:37:20 ERROR: modpost: module pvrsrvkm uses symbol dma_buf_get from namespace DMA_BUF, but does not import it. 20:37:20 ERROR: modpost: module pvrsrvkm uses symbol dma_buf_put from namespace DMA_BUF, but does not import it. 20:37:20 ERROR: modpost: module pvrsrvkm uses symbol dma_buf_detach from namespace DMA_BUF, but does not import it. 20:37:20 ERROR: modpost: module pvrsrvkm uses symbol dma_buf_unmap_attachment from namespace DMA_BUF, but does not import it. https://ci.linaro.org/job/lkft-generic-build-gitlab/634/console Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org> Change-Id: I410402fe3949ad38215d8575d320bb73f193322b
-rw-r--r--pvr/services4/srvkm/env/linux/dmabuf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pvr/services4/srvkm/env/linux/dmabuf.c b/pvr/services4/srvkm/env/linux/dmabuf.c
index 0051bff..af129f9 100644
--- a/pvr/services4/srvkm/env/linux/dmabuf.c
+++ b/pvr/services4/srvkm/env/linux/dmabuf.c
@@ -48,6 +48,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <linux/err.h>
#include <linux/dma-buf.h>
#include <linux/scatterlist.h>
+#include <linux/module.h>
#if defined(SUPPORT_DRI_DRM)
#include <drm/drmP.h>
#endif
@@ -57,6 +58,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "linkage.h"
#include "pvr_bridge.h"
+MODULE_IMPORT_NS(DMA_BUF);
+
struct dmabuf_import
{
struct dma_buf *dma_buf;