* [PATCH] platform/x86: mlx-platform: make a couple of structures static
@ 2017-10-05 10:42 ` Colin King
0 siblings, 0 replies; 8+ messages in thread
From: Colin King @ 2017-10-05 10:42 UTC (permalink / raw)
To: Vadim Pasternak, Darren Hart, Andy Shevchenko, platform-driver-x86
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
The structures mlxplat_dev and mlxplat_hotplug are local to the source
and do not need to be in global scope, so make them static.
Cleans up sparse warnings:
symbol 'mlxplat_dev' was not declared. Should it be static?
symbol 'mlxplat_hotplug' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/platform/x86/mlx-platform.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c
index 4f3de2a8c4df..504256c3660d 100644
--- a/drivers/platform/x86/mlx-platform.c
+++ b/drivers/platform/x86/mlx-platform.c
@@ -216,8 +216,8 @@ static struct resource mlxplat_mlxcpld_resources[] = {
[0] = DEFINE_RES_IRQ_NAMED(17, "mlxcpld-hotplug"),
};
-struct platform_device *mlxplat_dev;
-struct mlxcpld_hotplug_platform_data *mlxplat_hotplug;
+static struct platform_device *mlxplat_dev;
+static struct mlxcpld_hotplug_platform_data *mlxplat_hotplug;
static int __init mlxplat_dmi_default_matched(const struct dmi_system_id *dmi)
{
--
2.14.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] platform/x86: mlx-platform: make a couple of structures static
@ 2017-10-05 10:42 ` Colin King
0 siblings, 0 replies; 8+ messages in thread
From: Colin King @ 2017-10-05 10:42 UTC (permalink / raw)
To: Vadim Pasternak, Darren Hart, Andy Shevchenko, platform-driver-x86
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
The structures mlxplat_dev and mlxplat_hotplug are local to the source
and do not need to be in global scope, so make them static.
Cleans up sparse warnings:
symbol 'mlxplat_dev' was not declared. Should it be static?
symbol 'mlxplat_hotplug' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/platform/x86/mlx-platform.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c
index 4f3de2a8c4df..504256c3660d 100644
--- a/drivers/platform/x86/mlx-platform.c
+++ b/drivers/platform/x86/mlx-platform.c
@@ -216,8 +216,8 @@ static struct resource mlxplat_mlxcpld_resources[] = {
[0] = DEFINE_RES_IRQ_NAMED(17, "mlxcpld-hotplug"),
};
-struct platform_device *mlxplat_dev;
-struct mlxcpld_hotplug_platform_data *mlxplat_hotplug;
+static struct platform_device *mlxplat_dev;
+static struct mlxcpld_hotplug_platform_data *mlxplat_hotplug;
static int __init mlxplat_dmi_default_matched(const struct dmi_system_id *dmi)
{
--
2.14.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] platform/x86: mlx-platform: make a couple of structures static
2017-10-05 10:42 ` Colin King
@ 2017-10-07 14:03 ` Andy Shevchenko
-1 siblings, 0 replies; 8+ messages in thread
From: Andy Shevchenko @ 2017-10-07 14:03 UTC (permalink / raw)
To: Colin King
Cc: Vadim Pasternak, Darren Hart, Andy Shevchenko, Platform Driver,
kernel-janitors, linux-kernel
On Thu, Oct 5, 2017 at 1:42 PM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The structures mlxplat_dev and mlxplat_hotplug are local to the source
> and do not need to be in global scope, so make them static.
>
> Cleans up sparse warnings:
> symbol 'mlxplat_dev' was not declared. Should it be static?
> symbol 'mlxplat_hotplug' was not declared. Should it be static?
Thanks for the patch.
Since Vadim did some rather big driver changes I would like to hear
from him how to proceed with this one: either I apply it now, or after
we get Vadim's series in.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] platform/x86: mlx-platform: make a couple of structures static
@ 2017-10-07 14:03 ` Andy Shevchenko
0 siblings, 0 replies; 8+ messages in thread
From: Andy Shevchenko @ 2017-10-07 14:03 UTC (permalink / raw)
To: Colin King
Cc: Vadim Pasternak, Darren Hart, Andy Shevchenko, Platform Driver,
kernel-janitors, linux-kernel
On Thu, Oct 5, 2017 at 1:42 PM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The structures mlxplat_dev and mlxplat_hotplug are local to the source
> and do not need to be in global scope, so make them static.
>
> Cleans up sparse warnings:
> symbol 'mlxplat_dev' was not declared. Should it be static?
> symbol 'mlxplat_hotplug' was not declared. Should it be static?
Thanks for the patch.
Since Vadim did some rather big driver changes I would like to hear
from him how to proceed with this one: either I apply it now, or after
we get Vadim's series in.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] platform/x86: mlx-platform: make a couple of structures static
2017-10-07 14:03 ` Andy Shevchenko
@ 2017-10-09 18:29 ` Darren Hart
-1 siblings, 0 replies; 8+ messages in thread
From: Darren Hart @ 2017-10-09 18:29 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Colin King, Vadim Pasternak, Andy Shevchenko, Platform Driver,
kernel-janitors, linux-kernel
On Sat, Oct 07, 2017 at 05:03:41PM +0300, Andy Shevchenko wrote:
> On Thu, Oct 5, 2017 at 1:42 PM, Colin King <colin.king@canonical.com> wrote:
> > From: Colin Ian King <colin.king@canonical.com>
> >
> > The structures mlxplat_dev and mlxplat_hotplug are local to the source
> > and do not need to be in global scope, so make them static.
> >
> > Cleans up sparse warnings:
> > symbol 'mlxplat_dev' was not declared. Should it be static?
> > symbol 'mlxplat_hotplug' was not declared. Should it be static?
>
> Thanks for the patch.
> Since Vadim did some rather big driver changes I would like to hear
> from him how to proceed with this one: either I apply it now, or after
> we get Vadim's series in.
I'll be working with Vadim's series shortly and would like to take this
after that is settled.
--
Darren Hart
VMware Open Source Technology Center
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] platform/x86: mlx-platform: make a couple of structures static
@ 2017-10-09 18:29 ` Darren Hart
0 siblings, 0 replies; 8+ messages in thread
From: Darren Hart @ 2017-10-09 18:29 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Colin King, Vadim Pasternak, Andy Shevchenko, Platform Driver,
kernel-janitors, linux-kernel
On Sat, Oct 07, 2017 at 05:03:41PM +0300, Andy Shevchenko wrote:
> On Thu, Oct 5, 2017 at 1:42 PM, Colin King <colin.king@canonical.com> wrote:
> > From: Colin Ian King <colin.king@canonical.com>
> >
> > The structures mlxplat_dev and mlxplat_hotplug are local to the source
> > and do not need to be in global scope, so make them static.
> >
> > Cleans up sparse warnings:
> > symbol 'mlxplat_dev' was not declared. Should it be static?
> > symbol 'mlxplat_hotplug' was not declared. Should it be static?
>
> Thanks for the patch.
> Since Vadim did some rather big driver changes I would like to hear
> from him how to proceed with this one: either I apply it now, or after
> we get Vadim's series in.
I'll be working with Vadim's series shortly and would like to take this
after that is settled.
--
Darren Hart
VMware Open Source Technology Center
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] platform/x86: mlx-platform: make a couple of structures static
2017-10-07 14:03 ` Andy Shevchenko
@ 2017-10-16 21:26 ` Darren Hart
-1 siblings, 0 replies; 8+ messages in thread
From: Darren Hart @ 2017-10-16 21:26 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Colin King, Vadim Pasternak, Andy Shevchenko, Platform Driver,
kernel-janitors, linux-kernel
On Sat, Oct 07, 2017 at 05:03:41PM +0300, Andy Shevchenko wrote:
> On Thu, Oct 5, 2017 at 1:42 PM, Colin King <colin.king@canonical.com> wrote:
> > From: Colin Ian King <colin.king@canonical.com>
> >
> > The structures mlxplat_dev and mlxplat_hotplug are local to the source
> > and do not need to be in global scope, so make them static.
> >
> > Cleans up sparse warnings:
> > symbol 'mlxplat_dev' was not declared. Should it be static?
> > symbol 'mlxplat_hotplug' was not declared. Should it be static?
>
> Thanks for the patch.
> Since Vadim did some rather big driver changes I would like to hear
> from him how to proceed with this one: either I apply it now, or after
> we get Vadim's series in.
>
I've asked Vadim to rework some of the mlx platform and hotplug patches, so I'll
be taking this now as it is a minimal patch - this way it doesn't get lost.
Thanks Colin.
--
Darren Hart
VMware Open Source Technology Center
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] platform/x86: mlx-platform: make a couple of structures static
@ 2017-10-16 21:26 ` Darren Hart
0 siblings, 0 replies; 8+ messages in thread
From: Darren Hart @ 2017-10-16 21:26 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Colin King, Vadim Pasternak, Andy Shevchenko, Platform Driver,
kernel-janitors, linux-kernel
On Sat, Oct 07, 2017 at 05:03:41PM +0300, Andy Shevchenko wrote:
> On Thu, Oct 5, 2017 at 1:42 PM, Colin King <colin.king@canonical.com> wrote:
> > From: Colin Ian King <colin.king@canonical.com>
> >
> > The structures mlxplat_dev and mlxplat_hotplug are local to the source
> > and do not need to be in global scope, so make them static.
> >
> > Cleans up sparse warnings:
> > symbol 'mlxplat_dev' was not declared. Should it be static?
> > symbol 'mlxplat_hotplug' was not declared. Should it be static?
>
> Thanks for the patch.
> Since Vadim did some rather big driver changes I would like to hear
> from him how to proceed with this one: either I apply it now, or after
> we get Vadim's series in.
>
I've asked Vadim to rework some of the mlx platform and hotplug patches, so I'll
be taking this now as it is a minimal patch - this way it doesn't get lost.
Thanks Colin.
--
Darren Hart
VMware Open Source Technology Center
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-10-16 21:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-05 10:42 [PATCH] platform/x86: mlx-platform: make a couple of structures static Colin King
2017-10-05 10:42 ` Colin King
2017-10-07 14:03 ` Andy Shevchenko
2017-10-07 14:03 ` Andy Shevchenko
2017-10-09 18:29 ` Darren Hart
2017-10-09 18:29 ` Darren Hart
2017-10-16 21:26 ` Darren Hart
2017-10-16 21:26 ` Darren Hart
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.