]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm: verisilicon: make vs_dc_platform_driver static
authorIcenowy Zheng <zhengxingda@iscas.ac.cn>
Tue, 24 Mar 2026 06:08:06 +0000 (14:08 +0800)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 25 Mar 2026 14:21:23 +0000 (15:21 +0100)
The platform_driver struct isn't export and is only used for module
init/exit functions generated by module_platform_driver() macro.

Make it static to prevent namespace pollution.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603180616.TM6qYvIY-lkp@intel.com/
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260324060806.2047121-1-zhengxingda@iscas.ac.cn
drivers/gpu/drm/verisilicon/vs_dc.c

index 5f629d2d4beac0a42c7a08e36d56f9327117b3ce..dad9967bc10b8d4a965d754f364a5fea24e589c4 100644 (file)
@@ -190,7 +190,7 @@ static void vs_dc_shutdown(struct platform_device *pdev)
        vs_drm_shutdown_handler(dc);
 }
 
-struct platform_driver vs_dc_platform_driver = {
+static struct platform_driver vs_dc_platform_driver = {
        .probe = vs_dc_probe,
        .remove = vs_dc_remove,
        .shutdown = vs_dc_shutdown,