* [PATCH -next] ntb_hw_switchtec: Make function switchtec_ntb_remove() static
@ 2018-01-23 2:09 ` Wei Yongjun
0 siblings, 0 replies; 6+ messages in thread
From: Wei Yongjun @ 2018-01-23 2:09 UTC (permalink / raw)
To: Kurt Schwemmer, Logan Gunthorpe, Jon Mason, Dave Jiang, Allen Hubbe
Cc: Wei Yongjun, linux-pci, linux-ntb, kernel-janitors
Fixes the following sparse warnings:
drivers/ntb/hw/mscc/ntb_hw_switchtec.c:1552:6: warning:
symbol 'switchtec_ntb_remove' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
index a1d547b6..f624ae2 100644
--- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
+++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
@@ -1549,8 +1549,8 @@ static int switchtec_ntb_add(struct device *dev,
return rc;
}
-void switchtec_ntb_remove(struct device *dev,
- struct class_interface *class_intf)
+static void switchtec_ntb_remove(struct device *dev,
+ struct class_interface *class_intf)
{
struct switchtec_dev *stdev = to_stdev(dev);
struct switchtec_ntb *sndev = stdev->sndev;
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH -next] ntb_hw_switchtec: Make function switchtec_ntb_remove() static
@ 2018-01-23 2:09 ` Wei Yongjun
0 siblings, 0 replies; 6+ messages in thread
From: Wei Yongjun @ 2018-01-23 2:09 UTC (permalink / raw)
To: Kurt Schwemmer, Logan Gunthorpe, Jon Mason, Dave Jiang, Allen Hubbe
Cc: Wei Yongjun, linux-pci, linux-ntb, kernel-janitors
Fixes the following sparse warnings:
drivers/ntb/hw/mscc/ntb_hw_switchtec.c:1552:6: warning:
symbol 'switchtec_ntb_remove' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
index a1d547b6..f624ae2 100644
--- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
+++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
@@ -1549,8 +1549,8 @@ static int switchtec_ntb_add(struct device *dev,
return rc;
}
-void switchtec_ntb_remove(struct device *dev,
- struct class_interface *class_intf)
+static void switchtec_ntb_remove(struct device *dev,
+ struct class_interface *class_intf)
{
struct switchtec_dev *stdev = to_stdev(dev);
struct switchtec_ntb *sndev = stdev->sndev;
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH -next] ntb_hw_switchtec: Make function switchtec_ntb_remove() static
2018-01-23 2:09 ` Wei Yongjun
@ 2018-01-23 16:35 ` Logan Gunthorpe
-1 siblings, 0 replies; 6+ messages in thread
From: Logan Gunthorpe @ 2018-01-23 16:35 UTC (permalink / raw)
To: Wei Yongjun, Kurt Schwemmer, Jon Mason, Dave Jiang, Allen Hubbe
Cc: linux-pci, linux-ntb, kernel-janitors
Looks good, thanks.
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Logan
On 22/01/18 07:09 PM, Wei Yongjun wrote:
> Fixes the following sparse warnings:
>
> drivers/ntb/hw/mscc/ntb_hw_switchtec.c:1552:6: warning:
> symbol 'switchtec_ntb_remove' was not declared. Should it be static?
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---
> drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> index a1d547b6..f624ae2 100644
> --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> @@ -1549,8 +1549,8 @@ static int switchtec_ntb_add(struct device *dev,
> return rc;
> }
>
> -void switchtec_ntb_remove(struct device *dev,
> - struct class_interface *class_intf)
> +static void switchtec_ntb_remove(struct device *dev,
> + struct class_interface *class_intf)
> {
> struct switchtec_dev *stdev = to_stdev(dev);
> struct switchtec_ntb *sndev = stdev->sndev;
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH -next] ntb_hw_switchtec: Make function switchtec_ntb_remove() static
@ 2018-01-23 16:35 ` Logan Gunthorpe
0 siblings, 0 replies; 6+ messages in thread
From: Logan Gunthorpe @ 2018-01-23 16:35 UTC (permalink / raw)
To: Wei Yongjun, Kurt Schwemmer, Jon Mason, Dave Jiang, Allen Hubbe
Cc: linux-pci, linux-ntb, kernel-janitors
Looks good, thanks.
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Logan
On 22/01/18 07:09 PM, Wei Yongjun wrote:
> Fixes the following sparse warnings:
>
> drivers/ntb/hw/mscc/ntb_hw_switchtec.c:1552:6: warning:
> symbol 'switchtec_ntb_remove' was not declared. Should it be static?
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---
> drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> index a1d547b6..f624ae2 100644
> --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> @@ -1549,8 +1549,8 @@ static int switchtec_ntb_add(struct device *dev,
> return rc;
> }
>
> -void switchtec_ntb_remove(struct device *dev,
> - struct class_interface *class_intf)
> +static void switchtec_ntb_remove(struct device *dev,
> + struct class_interface *class_intf)
> {
> struct switchtec_dev *stdev = to_stdev(dev);
> struct switchtec_ntb *sndev = stdev->sndev;
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH -next] ntb_hw_switchtec: Make function switchtec_ntb_remove() static
2018-01-23 16:35 ` Logan Gunthorpe
@ 2018-01-24 4:07 ` Jon Mason
-1 siblings, 0 replies; 6+ messages in thread
From: Jon Mason @ 2018-01-24 4:07 UTC (permalink / raw)
To: Logan Gunthorpe
Cc: Wei Yongjun, Kurt Schwemmer, Dave Jiang, Allen Hubbe, linux-pci,
linux-ntb, kernel-janitors
On Tue, Jan 23, 2018 at 09:35:52AM -0700, Logan Gunthorpe wrote:
> Looks good, thanks.
>
> Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Applied to ntb-next
Thanks,
Jon
>
> Logan
>
>
> On 22/01/18 07:09 PM, Wei Yongjun wrote:
> > Fixes the following sparse warnings:
> >
> > drivers/ntb/hw/mscc/ntb_hw_switchtec.c:1552:6: warning:
> > symbol 'switchtec_ntb_remove' was not declared. Should it be static?
> >
> > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> > ---
> > drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> > index a1d547b6..f624ae2 100644
> > --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> > +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> > @@ -1549,8 +1549,8 @@ static int switchtec_ntb_add(struct device *dev,
> > return rc;
> > }
> > -void switchtec_ntb_remove(struct device *dev,
> > - struct class_interface *class_intf)
> > +static void switchtec_ntb_remove(struct device *dev,
> > + struct class_interface *class_intf)
> > {
> > struct switchtec_dev *stdev = to_stdev(dev);
> > struct switchtec_ntb *sndev = stdev->sndev;
> >
>
> --
> You received this message because you are subscribed to the Google Groups "linux-ntb" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-ntb+unsubscribe@googlegroups.com.
> To post to this group, send email to linux-ntb@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/linux-ntb/14b5eb05-c152-6a30-d590-881600a8a72f%40deltatee.com.
> For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH -next] ntb_hw_switchtec: Make function switchtec_ntb_remove() static
@ 2018-01-24 4:07 ` Jon Mason
0 siblings, 0 replies; 6+ messages in thread
From: Jon Mason @ 2018-01-24 4:07 UTC (permalink / raw)
To: Logan Gunthorpe
Cc: Wei Yongjun, Kurt Schwemmer, Dave Jiang, Allen Hubbe, linux-pci,
linux-ntb, kernel-janitors
On Tue, Jan 23, 2018 at 09:35:52AM -0700, Logan Gunthorpe wrote:
> Looks good, thanks.
>
> Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Applied to ntb-next
Thanks,
Jon
>
> Logan
>
>
> On 22/01/18 07:09 PM, Wei Yongjun wrote:
> > Fixes the following sparse warnings:
> >
> > drivers/ntb/hw/mscc/ntb_hw_switchtec.c:1552:6: warning:
> > symbol 'switchtec_ntb_remove' was not declared. Should it be static?
> >
> > Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> > ---
> > drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> > index a1d547b6..f624ae2 100644
> > --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> > +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
> > @@ -1549,8 +1549,8 @@ static int switchtec_ntb_add(struct device *dev,
> > return rc;
> > }
> > -void switchtec_ntb_remove(struct device *dev,
> > - struct class_interface *class_intf)
> > +static void switchtec_ntb_remove(struct device *dev,
> > + struct class_interface *class_intf)
> > {
> > struct switchtec_dev *stdev = to_stdev(dev);
> > struct switchtec_ntb *sndev = stdev->sndev;
> >
>
> --
> You received this message because you are subscribed to the Google Groups "linux-ntb" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-ntb+unsubscribe@googlegroups.com.
> To post to this group, send email to linux-ntb@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/linux-ntb/14b5eb05-c152-6a30-d590-881600a8a72f%40deltatee.com.
> For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-01-24 4:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-23 2:09 [PATCH -next] ntb_hw_switchtec: Make function switchtec_ntb_remove() static Wei Yongjun
2018-01-23 2:09 ` Wei Yongjun
2018-01-23 16:35 ` Logan Gunthorpe
2018-01-23 16:35 ` Logan Gunthorpe
2018-01-24 4:07 ` Jon Mason
2018-01-24 4:07 ` Jon Mason
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.