[PATCH] drivers: drm: fix msm_drv.h warning
dev god
g0d3ph at gmail.com
Tue Nov 3 03:44:04 UTC 2020
Hi
fix implicit declaration of function error.
>> drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1229:7: error: implicit
declaration of function 'msm_dp_display_pre_disable'
[-Werror,-Wimplicit-function-declaration]
if (msm_dp_display_pre_disable(priv->dp, drm_enc))
^
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1229:7: note: did you mean
'msm_dp_display_disable'?
drivers/gpu/drm/msm/msm_drv.h:420:19: note: 'msm_dp_display_disable'
declared here
static inline int msm_dp_display_disable(struct msm_dp *dp,
^
1 error generated.
Signed-off-by: Gah0 <g0d3ph at gmail.com>
Reported-by: kernel test robot <lkp at intel.com>
---
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
index f7f5c258b553..52d9a82fb64f 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
@@ -14,7 +14,7 @@
#include <drm/drm_file.h>
#include <drm/drm_probe_helper.h>
-#include "msm_drv.h"
+#include "../../msm_drv.h"
#include "dpu_kms.h"
#include "dpu_hwio.h"
#include "dpu_hw_catalog.h"
--
2.25.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20201103/b6f39105/attachment-0001.htm>
More information about the dri-devel
mailing list