From: Tom Rix Date: Wed, 17 May 2023 13:41:40 +0000 (-0400) Subject: drm/mgag200: set variable mgag200_modeset storage-class-specifier to static X-Git-Tag: v6.6.7~1918^2~23^2~139 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=75f2d61b3d368eca5c026119d5b597358201bf9b;p=platform%2Fkernel%2Flinux-starfive.git drm/mgag200: set variable mgag200_modeset storage-class-specifier to static smatch reports drivers/gpu/drm/mgag200/mgag200_drv.c:23:5: warning: symbol 'mgag200_modeset' was not declared. Should it be static? This variable is only used in its defining file, so it should be static Signed-off-by: Tom Rix Reviewed-by: Jocelyn Falempe Reviewed-by: Thomas Zimmermann Signed-off-by: Jocelyn Falempe Link: https://patchwork.freedesktop.org/patch/msgid/20230517134140.874179-1-trix@redhat.com --- diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.c b/drivers/gpu/drm/mgag200/mgag200_drv.c index 976f0ab..abddf37 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.c +++ b/drivers/gpu/drm/mgag200/mgag200_drv.c @@ -20,7 +20,7 @@ #include "mgag200_drv.h" -int mgag200_modeset = -1; +static int mgag200_modeset = -1; MODULE_PARM_DESC(modeset, "Disable/Enable modesetting"); module_param_named(modeset, mgag200_modeset, int, 0400);