]> Git Repo - linux.git/commitdiff
drm/msm/dp: fix incorrect function prototype of dp_debug_get()
authorAbhinav Kumar <[email protected]>
Sat, 26 Sep 2020 02:55:12 +0000 (19:55 -0700)
committerRob Clark <[email protected]>
Sat, 26 Sep 2020 03:31:06 +0000 (20:31 -0700)
Fix the incorrect function prototype for dp_debug_get()
in the dp_debug module to address compilation warning.
Also add prototype for msm_dp_debugfs_init() for fixing compilation
issue with other defconfigs.

changes in v2:
- add prototype for msm_dp_debugfs_init()

Fixes: f913454aae8e ("drm/msm/dp: move debugfs node to /sys/kernel/debug/dri/*/")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Abhinav Kumar <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
drivers/gpu/drm/msm/dp/dp_debug.h
drivers/gpu/drm/msm/msm_drv.h

index 377e166fd0ead70335ea82ba0196a20bef0ca915..7eaedfbb149c43df8f52315887fb4be77c07c562 100644 (file)
@@ -60,7 +60,7 @@ void dp_debug_put(struct dp_debug *dp_debug);
 static inline
 struct dp_debug *dp_debug_get(struct device *dev, struct dp_panel *panel,
                struct dp_usbpd *usbpd, struct dp_link *link,
-               struct drm_connector **connector)
+               struct drm_connector **connector, struct drm_minor *minor)
 {
        return ERR_PTR(-EINVAL);
 }
index 28e3c8d628cb1a61b0ef9dca21ea1e6262657059..b9dd8f8f4887243ce6669d3015d2f8cc7b2b3da3 100644 (file)
@@ -434,6 +434,11 @@ static inline void msm_dp_irq_postinstall(struct msm_dp *dp_display)
 {
 }
 
+static inline void msm_dp_debugfs_init(struct msm_dp *dp_display,
+               struct drm_minor *minor)
+{
+}
+
 #endif
 
 void __init msm_mdp_register(void);
This page took 0.061042 seconds and 4 git commands to generate.