From: Colin Ian King Date: Fri, 11 Aug 2017 13:49:38 +0000 (+0100) Subject: drm/i915: make structure intel_sprite_plane_funcs static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2d56758557bc465a44879b471c84bd09ce8a2aac;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/i915: make structure intel_sprite_plane_funcs static The structure intel_sprite_plane_funcs is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'intel_sprite_plane_funcs' was not declared. Should it be static? Signed-off-by: Colin Ian King Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20170811134938.4183-1-colin.king@canonical.com --- diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index e11f8782c9eb..524933b01483 100644 --- a/drivers/gpu/drm/i915/intel_sprite.c +++ b/drivers/gpu/drm/i915/intel_sprite.c @@ -1184,7 +1184,7 @@ static bool intel_sprite_plane_format_mod_supported(struct drm_plane *plane, unreachable(); } -const struct drm_plane_funcs intel_sprite_plane_funcs = { +static const struct drm_plane_funcs intel_sprite_plane_funcs = { .update_plane = drm_atomic_helper_update_plane, .disable_plane = drm_atomic_helper_disable_plane, .destroy = intel_plane_destroy,