Hi Ian, kernel test robot noticed the following build errors:
[auto build test ERROR on drm/drm-next] [also build test ERROR on drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip linus/master v6.18-rc3 next-20251031] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Ian-Forbes/drm-vmwgfx-Restore-Guest-Backed-only-cursor-plane-support/20251030-224831 base: git://anongit.freedesktop.org/drm/drm drm-next patch link: https://lore.kernel.org/r/20251030143910.134767-1-ian.forbes%40broadcom.com patch subject: [PATCH v2] drm/vmwgfx: Restore Guest-Backed only cursor plane support config: arm64-randconfig-001-20251101 (https://download.01.org/0day-ci/archive/20251101/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251101/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c: In function 'vmw_cursor_plane_atomic_update': >> drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c:770:3: error: a label can only >> be part of a statement and a declaration is not a statement struct vmw_bo *bo = vmw_user_object_buffer(&vps->uo); ^~~~~~ vim +770 drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c 739 740 void 741 vmw_cursor_plane_atomic_update(struct drm_plane *plane, 742 struct drm_atomic_state *state) 743 { 744 struct drm_plane_state *new_state = 745 drm_atomic_get_new_plane_state(state, plane); 746 struct drm_plane_state *old_state = 747 drm_atomic_get_old_plane_state(state, plane); 748 struct drm_crtc *crtc = new_state->crtc ?: old_state->crtc; 749 struct vmw_private *dev_priv = vmw_priv(plane->dev); 750 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); 751 struct vmw_plane_state *vps = vmw_plane_state_to_vps(new_state); 752 s32 hotspot_x, hotspot_y, cursor_x, cursor_y; 753 754 /* 755 * Hide the cursor if the new bo is null 756 */ 757 if (vmw_user_object_is_null(&vps->uo)) { 758 vmw_cursor_update_position(dev_priv, false, 0, 0); 759 return; 760 } 761 762 switch (vps->cursor.update_type) { 763 case VMW_CURSOR_UPDATE_LEGACY: 764 vmw_cursor_plane_update_legacy(dev_priv, vps); 765 break; 766 case VMW_CURSOR_UPDATE_MOB: 767 vmw_cursor_update_mob(dev_priv, vps); 768 break; 769 case VMW_CURSOR_UPDATE_GB_ONLY: > 770 struct vmw_bo *bo = vmw_user_object_buffer(&vps->uo); 771 772 if (bo) 773 vmw_send_define_cursor_cmd(dev_priv, bo->map.virtual, 774 vps->base.crtc_w, 775 vps->base.crtc_h, 776 vps->base.hotspot_x, 777 vps->base.hotspot_y); 778 break; 779 case VMW_CURSOR_UPDATE_NONE: 780 /* do nothing */ 781 break; 782 } 783 784 /* 785 * For all update types update the cursor position 786 */ 787 cursor_x = new_state->crtc_x + du->set_gui_x; 788 cursor_y = new_state->crtc_y + du->set_gui_y; 789 790 hotspot_x = vps->cursor.legacy.hotspot_x + new_state->hotspot_x; 791 hotspot_y = vps->cursor.legacy.hotspot_y + new_state->hotspot_y; 792 793 vmw_cursor_update_position(dev_priv, true, cursor_x + hotspot_x, 794 cursor_y + hotspot_y); 795 } 796 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
