From: Thomas Zimmermann <tzimmermann@suse.de>
To: Icenowy Zheng <zhengxingda@iscas.ac.cn>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
Han Gao <rabenda.cn@gmail.com>, Icenowy Zheng <uwu@icenowy.me>,
kernel test robot <lkp@intel.com>
Subject: Re: [PATCH -next] drm: verisilicon: make vs_dc_platform_driver static
Date: Tue, 24 Mar 2026 08:46:34 +0100 [thread overview]
Message-ID: <2949f17b-93e3-408c-97ef-31eaa3e49a94@suse.de> (raw)
In-Reply-To: <20260324060806.2047121-1-zhengxingda@iscas.ac.cn>
Am 24.03.26 um 07:08 schrieb Icenowy Zheng:
> 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>
> ---
> drivers/gpu/drm/verisilicon/vs_dc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/verisilicon/vs_dc.c b/drivers/gpu/drm/verisilicon/vs_dc.c
> index 5f629d2d4beac..dad9967bc10b8 100644
> --- a/drivers/gpu/drm/verisilicon/vs_dc.c
> +++ b/drivers/gpu/drm/verisilicon/vs_dc.c
> @@ -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,
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)
next prev parent reply other threads:[~2026-03-24 7:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-24 6:08 [PATCH -next] drm: verisilicon: make vs_dc_platform_driver static Icenowy Zheng
2026-03-24 7:46 ` Thomas Zimmermann [this message]
2026-03-24 21:02 ` Claude review: " Claude Code Review Bot
2026-03-24 21:02 ` Claude Code Review Bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2949f17b-93e3-408c-97ef-31eaa3e49a94@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=rabenda.cn@gmail.com \
--cc=simona@ffwll.ch \
--cc=uwu@icenowy.me \
--cc=zhengxingda@iscas.ac.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox