From: Hans de Goede <hdegoede@redhat.com>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Make symbol static
Date: Wed, 5 Mar 2025 12:22:17 +0100 [thread overview]
Message-ID: <b8fb489b-bc7b-405a-8ff9-f7438d855c94@redhat.com> (raw)
In-Reply-To: <20250304160639.4295-1-ilpo.jarvinen@linux.intel.com>
Hi Ilpo,
On 4-Mar-25 5:06 PM, Ilpo Järvinen wrote:
> Sparse reports:
>
> lenovo-yoga-tab2-pro-1380-fastcharger.c:222:29: warning: symbol
> 'yt2_1380_fc_serdev_driver' was not declared. Should it be static?
>
> Fix that by making the symbol static.
>
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thanks, patch looks good to me:
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Regards,
Hans
> ---
> drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c b/drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c
> index a96b215cd2c5..25933cd018d1 100644
> --- a/drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c
> +++ b/drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c
> @@ -219,7 +219,7 @@ static int yt2_1380_fc_serdev_probe(struct serdev_device *serdev)
> return 0;
> }
>
> -struct serdev_device_driver yt2_1380_fc_serdev_driver = {
> +static struct serdev_device_driver yt2_1380_fc_serdev_driver = {
> .probe = yt2_1380_fc_serdev_probe,
> .driver = {
> .name = KBUILD_MODNAME,
>
> base-commit: 432c2adb9e2f84f81c4b218acb07a2cd3dce64a9
next prev parent reply other threads:[~2025-03-05 11:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-04 16:06 Ilpo Järvinen
2025-03-04 16:06 ` [PATCH 2/2] platform/x86: dell-uart-backlight: Make dell_uart_bl_serdev_driver static Ilpo Järvinen
2025-03-04 17:22 ` Mario Limonciello
2025-03-05 11:22 ` Hans de Goede
2025-03-04 17:21 ` [PATCH 1/2] platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Make symbol static Mario Limonciello
2025-03-05 11:22 ` Hans de Goede [this message]
2025-03-05 13:09 ` Ilpo Järvinen
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=b8fb489b-bc7b-405a-8ff9-f7438d855c94@redhat.com \
--to=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/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
all inboxes | Powered by JetHome®