]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/fb: Make intel_fb_needs_pot_stride_remap() static
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 7 Apr 2026 15:50:43 +0000 (18:50 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Apr 2026 10:26:38 +0000 (13:26 +0300)
intel_fb_needs_pot_stride_remap() isn't needed outside intel_fb.c.
Make it static.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260407155053.32156-3-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_fb.c
drivers/gpu/drm/i915/display/intel_fb.h

index 83392c1a1ebe6c4bba2b63c167d486a0040303d3..4b0afea1c45681d61f1d13b90574f446ca679212 100644 (file)
@@ -1265,7 +1265,7 @@ static bool intel_plane_can_remap(const struct intel_plane_state *plane_state)
        return true;
 }
 
-bool intel_fb_needs_pot_stride_remap(const struct intel_framebuffer *fb)
+static bool intel_fb_needs_pot_stride_remap(const struct intel_framebuffer *fb)
 {
        struct intel_display *display = to_intel_display(fb->base.dev);
 
index fb1ec2a1e905cb152308c9554b3b8d4ff887b39d..fc2c4d59bf06f50c3b57b783d6c331cd7cc8156b 100644 (file)
@@ -77,7 +77,6 @@ u32 intel_plane_compute_aligned_offset(int *x, int *y,
                                       const struct intel_plane_state *plane_state,
                                       int color_plane);
 
-bool intel_fb_needs_pot_stride_remap(const struct intel_framebuffer *fb);
 bool intel_plane_uses_fence(const struct intel_plane_state *plane_state);
 bool intel_fb_supports_90_270_rotation(const struct intel_framebuffer *fb);