Skip to content

Commit d1ea914

Browse files
Abhinav Kumarrobclark
authored andcommitted
drm/msm/dp: fix incorrect function prototype of dp_debug_get()
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: f913454 ("drm/msm/dp: move debugfs node to /sys/kernel/debug/dri/*/") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org> Signed-off-by: Rob Clark <robdclark@chromium.org>
1 parent 3c0f462 commit d1ea914

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

drivers/gpu/drm/msm/dp/dp_debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void dp_debug_put(struct dp_debug *dp_debug);
6060
static inline
6161
struct dp_debug *dp_debug_get(struct device *dev, struct dp_panel *panel,
6262
struct dp_usbpd *usbpd, struct dp_link *link,
63-
struct drm_connector **connector)
63+
struct drm_connector **connector, struct drm_minor *minor)
6464
{
6565
return ERR_PTR(-EINVAL);
6666
}

drivers/gpu/drm/msm/msm_drv.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,11 @@ static inline void msm_dp_irq_postinstall(struct msm_dp *dp_display)
434434
{
435435
}
436436

437+
static inline void msm_dp_debugfs_init(struct msm_dp *dp_display,
438+
struct drm_minor *minor)
439+
{
440+
}
441+
437442
#endif
438443

439444
void __init msm_mdp_register(void);

0 commit comments

Comments
 (0)