Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/hyperv: include drm_print.h where needed

hyperv_drm_drv.c and hyperv_drm_modeset.c depend on drm_print.h being
indirectly included via drm_buddy.h, drm_mm.h, or
ttm/ttm_resource.h. Include drm_print.h explicitly.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/r/20251104101158.1cc9abcd@canb.auug.org.au
Fixes: f6e8dc9edf96 ("drm: include drm_print.h where needed")
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20251104100253.646577-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+2
+1
drivers/gpu/drm/hyperv/hyperv_drm_drv.c
··· 14 14 #include <drm/drm_drv.h> 15 15 #include <drm/drm_fbdev_shmem.h> 16 16 #include <drm/drm_gem_shmem_helper.h> 17 + #include <drm/drm_print.h> 17 18 #include <drm/drm_simple_kms_helper.h> 18 19 19 20 #include "hyperv_drm.h"
+1
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
··· 19 19 #include <drm/drm_probe_helper.h> 20 20 #include <drm/drm_panic.h> 21 21 #include <drm/drm_plane.h> 22 + #include <drm/drm_print.h> 22 23 #include <drm/drm_vblank.h> 23 24 #include <drm/drm_vblank_helper.h> 24 25