From: Ville Syrjälä Date: Thu, 8 Oct 2020 10:16:08 +0000 (+0300) Subject: drm/i915: s/int/u32/ for aux_offset/alignment X-Git-Tag: v5.15~303^2~29^2~808 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63b9d9aa8582f13ad265abbf15681e690cfa2109;p=platform%2Fkernel%2Flinux-starfive.git drm/i915: s/int/u32/ for aux_offset/alignment ggtt offsets/alignments are u32 everywhere else. Don't use a signed int for them here. Signed-off-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20201008101608.8652-3-ville.syrjala@linux.intel.com Reviewed-by: Imre Deak --- diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index 85f8b08..19bed7a 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -4026,8 +4026,8 @@ static int skl_check_nv12_aux_surface(struct intel_plane_state *plane_state) if (is_ccs_modifier(fb->modifier)) { int ccs_plane = main_to_ccs_plane(fb, uv_plane); - int aux_offset = plane_state->color_plane[ccs_plane].offset; - int alignment = intel_surf_alignment(fb, uv_plane); + u32 aux_offset = plane_state->color_plane[ccs_plane].offset; + u32 alignment = intel_surf_alignment(fb, uv_plane); if (offset > aux_offset) offset = intel_plane_adjust_aligned_offset(&x, &y,