* [PATCH] PCI: dwc: designware: make dw_pcie_prog_*_atu_unroll() static
@ 2017-07-17 13:13 Carlos Palminha
2017-07-17 13:27 ` Joao Pinto
2017-08-02 21:50 ` Bjorn Helgaas
0 siblings, 2 replies; 5+ messages in thread
From: Carlos Palminha @ 2017-07-17 13:13 UTC (permalink / raw)
To: linux-pci, linux-kernel; +Cc: bhelgaas, jingoohan1, Joao.Pinto, Carlos Palminha
Helper functions dw_pcie_prog_*_atu_unroll don't need to be in global scope,
so make it static.
Cleans up sparse warnings:
- symbol 'dw_pcie_prog_outbound_atu_unroll' was not declared. Should it be static?
- symbol 'dw_pcie_prog_inbound_atu_unroll' was not declared. Should it be static?
Signed-off-by: Carlos Palminha <palminha@synopsys.com>
---
Patch made against linux-next tree, tag next-20170714
drivers/pci/dwc/pcie-designware.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/dwc/pcie-designware.c b/drivers/pci/dwc/pcie-designware.c
index 0e03af279259..48d6d0712ea8 100644
--- a/drivers/pci/dwc/pcie-designware.c
+++ b/drivers/pci/dwc/pcie-designware.c
@@ -107,7 +107,7 @@ static void dw_pcie_writel_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg,
dw_pcie_writel_dbi(pci, offset + reg, val);
}
-void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, int type,
+static void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, int type,
u64 cpu_addr, u64 pci_addr, u32 size)
{
u32 retries, val;
@@ -200,7 +200,7 @@ static void dw_pcie_writel_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg,
dw_pcie_writel_dbi(pci, offset + reg, val);
}
-int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, int bar,
+static int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, int bar,
u64 cpu_addr, enum dw_pcie_as_type as_type)
{
int type;
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] PCI: dwc: designware: make dw_pcie_prog_*_atu_unroll() static
2017-07-17 13:13 [PATCH] PCI: dwc: designware: make dw_pcie_prog_*_atu_unroll() static Carlos Palminha
@ 2017-07-17 13:27 ` Joao Pinto
2017-07-17 19:34 ` Jingoo Han
2017-08-02 21:50 ` Bjorn Helgaas
1 sibling, 1 reply; 5+ messages in thread
From: Joao Pinto @ 2017-07-17 13:27 UTC (permalink / raw)
To: Carlos Palminha, linux-pci, linux-kernel; +Cc: bhelgaas, jingoohan1, Joao.Pinto
Hi Carlos,
Às 2:13 PM de 7/17/2017, Carlos Palminha escreveu:
> Helper functions dw_pcie_prog_*_atu_unroll don't need to be in global scope,
> so make it static.
>
> Cleans up sparse warnings:
> - symbol 'dw_pcie_prog_outbound_atu_unroll' was not declared. Should it be static?
> - symbol 'dw_pcie_prog_inbound_atu_unroll' was not declared. Should it be static?
>
> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
> ---
> Patch made against linux-next tree, tag next-20170714
>
> drivers/pci/dwc/pcie-designware.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pci/dwc/pcie-designware.c b/drivers/pci/dwc/pcie-designware.c
> index 0e03af279259..48d6d0712ea8 100644
> --- a/drivers/pci/dwc/pcie-designware.c
> +++ b/drivers/pci/dwc/pcie-designware.c
> @@ -107,7 +107,7 @@ static void dw_pcie_writel_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg,
> dw_pcie_writel_dbi(pci, offset + reg, val);
> }
>
> -void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, int type,
> +static void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, int type,
> u64 cpu_addr, u64 pci_addr, u32 size)
> {
> u32 retries, val;
> @@ -200,7 +200,7 @@ static void dw_pcie_writel_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg,
> dw_pcie_writel_dbi(pci, offset + reg, val);
> }
>
> -int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, int bar,
> +static int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, int bar,
> u64 cpu_addr, enum dw_pcie_as_type as_type)
> {
> int type;
> --
> 2.11.0
>
That indeed escaped in the refactoring :) Thanks!
Acked-by: Joao Pinto <jpinto@synopsys.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] PCI: dwc: designware: make dw_pcie_prog_*_atu_unroll() static
2017-07-17 13:27 ` Joao Pinto
@ 2017-07-17 19:34 ` Jingoo Han
0 siblings, 0 replies; 5+ messages in thread
From: Jingoo Han @ 2017-07-17 19:34 UTC (permalink / raw)
To: 'Joao Pinto', 'Carlos Palminha', linux-pci,
linux-kernel
Cc: bhelgaas
On Monday, July 17, 2017 9:28 AM, Joao Pinto wrote:
>
>
> Hi Carlos,
>
> Às 2:13 PM de 7/17/2017, Carlos Palminha escreveu:
> > Helper functions dw_pcie_prog_*_atu_unroll don't need to be in global
> scope,
> > so make it static.
> >
> > Cleans up sparse warnings:
> > - symbol 'dw_pcie_prog_outbound_atu_unroll' was not declared. Should it
> be static?
> > - symbol 'dw_pcie_prog_inbound_atu_unroll' was not declared. Should it
> be static?
> >
> > Signed-off-by: Carlos Palminha <palminha@synopsys.com>
> > ---
> > Patch made against linux-next tree, tag next-20170714
> >
> > drivers/pci/dwc/pcie-designware.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/pci/dwc/pcie-designware.c b/drivers/pci/dwc/pcie-
> designware.c
> > index 0e03af279259..48d6d0712ea8 100644
> > --- a/drivers/pci/dwc/pcie-designware.c
> > +++ b/drivers/pci/dwc/pcie-designware.c
> > @@ -107,7 +107,7 @@ static void dw_pcie_writel_ob_unroll(struct dw_pcie
> *pci, u32 index, u32 reg,
> > dw_pcie_writel_dbi(pci, offset + reg, val);
> > }
> >
> > -void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index,
> int type,
> > +static void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int
> index, int type,
> > u64 cpu_addr, u64 pci_addr, u32 size)
> > {
> > u32 retries, val;
> > @@ -200,7 +200,7 @@ static void dw_pcie_writel_ib_unroll(struct dw_pcie
> *pci, u32 index, u32 reg,
> > dw_pcie_writel_dbi(pci, offset + reg, val);
> > }
> >
> > -int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, int
> bar,
> > +static int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int
> index, int bar,
> > u64 cpu_addr, enum dw_pcie_as_type as_type)
> > {
> > int type;
> > --
> > 2.11.0
> >
>
> That indeed escaped in the refactoring :) Thanks!
>
> Acked-by: Joao Pinto <jpinto@synopsys.com>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
Best regards,
Jingoo Han
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] PCI: dwc: designware: make dw_pcie_prog_*_atu_unroll() static
2017-07-17 13:13 [PATCH] PCI: dwc: designware: make dw_pcie_prog_*_atu_unroll() static Carlos Palminha
2017-07-17 13:27 ` Joao Pinto
@ 2017-08-02 21:50 ` Bjorn Helgaas
2017-08-03 8:51 ` Carlos Palminha
1 sibling, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2017-08-02 21:50 UTC (permalink / raw)
To: Carlos Palminha; +Cc: linux-pci, linux-kernel, bhelgaas, jingoohan1, Joao.Pinto
On Mon, Jul 17, 2017 at 02:13:34PM +0100, Carlos Palminha wrote:
> Helper functions dw_pcie_prog_*_atu_unroll don't need to be in global scope,
> so make it static.
>
> Cleans up sparse warnings:
> - symbol 'dw_pcie_prog_outbound_atu_unroll' was not declared. Should it be static?
> - symbol 'dw_pcie_prog_inbound_atu_unroll' was not declared. Should it be static?
>
> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
Applied with acks from Joao and Jingoo to pci/host-designware for v4.14,
thanks!
I rewrapped these so they still fit in 80 columns, like the rest of the
file.
> ---
> Patch made against linux-next tree, tag next-20170714
>
> drivers/pci/dwc/pcie-designware.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pci/dwc/pcie-designware.c b/drivers/pci/dwc/pcie-designware.c
> index 0e03af279259..48d6d0712ea8 100644
> --- a/drivers/pci/dwc/pcie-designware.c
> +++ b/drivers/pci/dwc/pcie-designware.c
> @@ -107,7 +107,7 @@ static void dw_pcie_writel_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg,
> dw_pcie_writel_dbi(pci, offset + reg, val);
> }
>
> -void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, int type,
> +static void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, int type,
> u64 cpu_addr, u64 pci_addr, u32 size)
> {
> u32 retries, val;
> @@ -200,7 +200,7 @@ static void dw_pcie_writel_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg,
> dw_pcie_writel_dbi(pci, offset + reg, val);
> }
>
> -int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, int bar,
> +static int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, int bar,
> u64 cpu_addr, enum dw_pcie_as_type as_type)
> {
> int type;
> --
> 2.11.0
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] PCI: dwc: designware: make dw_pcie_prog_*_atu_unroll() static
2017-08-02 21:50 ` Bjorn Helgaas
@ 2017-08-03 8:51 ` Carlos Palminha
0 siblings, 0 replies; 5+ messages in thread
From: Carlos Palminha @ 2017-08-03 8:51 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: linux-pci, linux-kernel, bhelgaas, jingoohan1, Joao.Pinto
thanks
On 02-08-2017 22:50, Bjorn Helgaas wrote:
> On Mon, Jul 17, 2017 at 02:13:34PM +0100, Carlos Palminha wrote:
>> Helper functions dw_pcie_prog_*_atu_unroll don't need to be in global scope,
>> so make it static.
>>
>> Cleans up sparse warnings:
>> - symbol 'dw_pcie_prog_outbound_atu_unroll' was not declared. Should it be static?
>> - symbol 'dw_pcie_prog_inbound_atu_unroll' was not declared. Should it be static?
>>
>> Signed-off-by: Carlos Palminha <palminha@synopsys.com>
>
> Applied with acks from Joao and Jingoo to pci/host-designware for v4.14,
> thanks!
>
> I rewrapped these so they still fit in 80 columns, like the rest of the
> file.
>
>> ---
>> Patch made against linux-next tree, tag next-20170714
>>
>> drivers/pci/dwc/pcie-designware.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/pci/dwc/pcie-designware.c b/drivers/pci/dwc/pcie-designware.c
>> index 0e03af279259..48d6d0712ea8 100644
>> --- a/drivers/pci/dwc/pcie-designware.c
>> +++ b/drivers/pci/dwc/pcie-designware.c
>> @@ -107,7 +107,7 @@ static void dw_pcie_writel_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg,
>> dw_pcie_writel_dbi(pci, offset + reg, val);
>> }
>>
>> -void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, int type,
>> +static void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, int type,
>> u64 cpu_addr, u64 pci_addr, u32 size)
>> {
>> u32 retries, val;
>> @@ -200,7 +200,7 @@ static void dw_pcie_writel_ib_unroll(struct dw_pcie *pci, u32 index, u32 reg,
>> dw_pcie_writel_dbi(pci, offset + reg, val);
>> }
>>
>> -int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, int bar,
>> +static int dw_pcie_prog_inbound_atu_unroll(struct dw_pcie *pci, int index, int bar,
>> u64 cpu_addr, enum dw_pcie_as_type as_type)
>> {
>> int type;
>> --
>> 2.11.0
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-08-03 8:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 13:13 [PATCH] PCI: dwc: designware: make dw_pcie_prog_*_atu_unroll() static Carlos Palminha
2017-07-17 13:27 ` Joao Pinto
2017-07-17 19:34 ` Jingoo Han
2017-08-02 21:50 ` Bjorn Helgaas
2017-08-03 8:51 ` Carlos Palminha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox