All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 8319/11283] drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing resource_size with res
@ 2020-01-26 20:09 kbuild test robot
  2020-01-26 20:09   ` kbuild test robot
  0 siblings, 1 reply; 12+ messages in thread
From: kbuild test robot @ 2020-01-26 20:09 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 721 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   702ccea170f07783bd002055a353a0866c062267
commit: 8ad90d975e00c297a198f6ecbd65e414fbb06dc9 [8319/11283] PCI: brcmstb: Add Broadcom STB PCIe host controller driver

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>


coccinelle warnings: (new ones prefixed by >>)

>> drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing resource_size with res

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH] PCI: brcmstb: fix resource_size.cocci warnings
  2020-01-26 20:09 [linux-next:master 8319/11283] drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing resource_size with res kbuild test robot
  2020-01-26 20:09   ` kbuild test robot
@ 2020-01-26 20:09   ` kbuild test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kbuild test robot @ 2020-01-26 20:09 UTC (permalink / raw)
  To: Jim Quinlan
  Cc: kbuild-all, Lorenzo Pieralisi, Nicolas Saenz Julienne,
	Andrew Murray, Jeremy Linton, Bjorn Helgaas, Florian Fainelli,
	bcm-kernel-feedback-list, linux-pci, linux-arm-kernel

From: kbuild test robot <lkp@intel.com>

drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing resource_size with res


 Use resource_size function on resource object
 instead of explicit computation.

Generated by: scripts/coccinelle/api/resource_size.cocci

Fixes: 8ad90d975e00 ("PCI: brcmstb: Add Broadcom STB PCIe host controller driver")
CC: Jim Quinlan <james.quinlan@broadcom.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   702ccea170f07783bd002055a353a0866c062267
commit: 8ad90d975e00c297a198f6ecbd65e414fbb06dc9 [8319/11283] PCI: brcmstb: Add Broadcom STB PCIe host controller driver

 pcie-brcmstb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/pci/controller/pcie-brcmstb.c
+++ b/drivers/pci/controller/pcie-brcmstb.c
@@ -549,7 +549,7 @@ static int brcm_pcie_setup(struct brcm_p
 
 		brcm_pcie_set_outbound_win(pcie, num_out_wins, res->start,
 					   res->start - entry->offset,
-					   res->end - res->start + 1);
+					   resource_size(res));
 		num_out_wins++;
 	}
 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH] PCI: brcmstb: fix resource_size.cocci warnings
@ 2020-01-26 20:09   ` kbuild test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kbuild test robot @ 2020-01-26 20:09 UTC (permalink / raw)
  To: Jim Quinlan
  Cc: Lorenzo Pieralisi, kbuild-all, linux-pci, Jeremy Linton,
	Florian Fainelli, Bjorn Helgaas, linux-arm-kernel,
	bcm-kernel-feedback-list, Andrew Murray, Nicolas Saenz Julienne

From: kbuild test robot <lkp@intel.com>

drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing resource_size with res


 Use resource_size function on resource object
 instead of explicit computation.

Generated by: scripts/coccinelle/api/resource_size.cocci

Fixes: 8ad90d975e00 ("PCI: brcmstb: Add Broadcom STB PCIe host controller driver")
CC: Jim Quinlan <james.quinlan@broadcom.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   702ccea170f07783bd002055a353a0866c062267
commit: 8ad90d975e00c297a198f6ecbd65e414fbb06dc9 [8319/11283] PCI: brcmstb: Add Broadcom STB PCIe host controller driver

 pcie-brcmstb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/pci/controller/pcie-brcmstb.c
+++ b/drivers/pci/controller/pcie-brcmstb.c
@@ -549,7 +549,7 @@ static int brcm_pcie_setup(struct brcm_p
 
 		brcm_pcie_set_outbound_win(pcie, num_out_wins, res->start,
 					   res->start - entry->offset,
-					   res->end - res->start + 1);
+					   resource_size(res));
 		num_out_wins++;
 	}
 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH] PCI: brcmstb: fix resource_size.cocci warnings
@ 2020-01-26 20:09   ` kbuild test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kbuild test robot @ 2020-01-26 20:09 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]

From: kbuild test robot <lkp@intel.com>

drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing resource_size with res


 Use resource_size function on resource object
 instead of explicit computation.

Generated by: scripts/coccinelle/api/resource_size.cocci

Fixes: 8ad90d975e00 ("PCI: brcmstb: Add Broadcom STB PCIe host controller driver")
CC: Jim Quinlan <james.quinlan@broadcom.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   702ccea170f07783bd002055a353a0866c062267
commit: 8ad90d975e00c297a198f6ecbd65e414fbb06dc9 [8319/11283] PCI: brcmstb: Add Broadcom STB PCIe host controller driver

 pcie-brcmstb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/pci/controller/pcie-brcmstb.c
+++ b/drivers/pci/controller/pcie-brcmstb.c
@@ -549,7 +549,7 @@ static int brcm_pcie_setup(struct brcm_p
 
 		brcm_pcie_set_outbound_win(pcie, num_out_wins, res->start,
 					   res->start - entry->offset,
-					   res->end - res->start + 1);
+					   resource_size(res));
 		num_out_wins++;
 	}
 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] PCI: brcmstb: fix resource_size.cocci warnings
  2020-01-26 20:09   ` kbuild test robot
  (?)
@ 2020-01-27  9:31     ` Nicolas Saenz Julienne
  -1 siblings, 0 replies; 12+ messages in thread
From: Nicolas Saenz Julienne @ 2020-01-27  9:31 UTC (permalink / raw)
  To: kbuild test robot, Jim Quinlan
  Cc: kbuild-all, Lorenzo Pieralisi, Nicolas Saenz Julienne,
	Andrew Murray, Jeremy Linton, Bjorn Helgaas, Florian Fainelli,
	bcm-kernel-feedback-list, linux-pci, linux-arm-kernel

On Mon Jan 27, 2020 at 4:09 AM, kbuild test robot wrote:
> From: kbuild test robot <lkp@intel.com>
>
> drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing
> resource_size with res
>
>
> Use resource_size function on resource object
> instead of explicit computation.
>
> Generated by: scripts/coccinelle/api/resource_size.cocci
>
> Fixes: 8ad90d975e00 ("PCI: brcmstb: Add Broadcom STB PCIe host
> controller driver")
> CC: Jim Quinlan <james.quinlan@broadcom.com>
> Signed-off-by: kbuild test robot <lkp@intel.com>
> ---

Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>

Regards,
Nicolas

>
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> master
> head: 702ccea170f07783bd002055a353a0866c062267
> commit: 8ad90d975e00c297a198f6ecbd65e414fbb06dc9 [8319/11283] PCI:
> brcmstb: Add Broadcom STB PCIe host controller driver
>
> pcie-brcmstb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/pci/controller/pcie-brcmstb.c
> +++ b/drivers/pci/controller/pcie-brcmstb.c
> @@ -549,7 +549,7 @@ static int brcm_pcie_setup(struct brcm_p
>  
> brcm_pcie_set_outbound_win(pcie, num_out_wins, res->start,
> res->start - entry->offset,
> - res->end - res->start + 1);
> + resource_size(res));
> num_out_wins++;
> }
>  


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] PCI: brcmstb: fix resource_size.cocci warnings
@ 2020-01-27  9:31     ` Nicolas Saenz Julienne
  0 siblings, 0 replies; 12+ messages in thread
From: Nicolas Saenz Julienne @ 2020-01-27  9:31 UTC (permalink / raw)
  To: kbuild test robot, Jim Quinlan
  Cc: Lorenzo Pieralisi, kbuild-all, linux-pci, Jeremy Linton,
	Florian Fainelli, Bjorn Helgaas, linux-arm-kernel,
	bcm-kernel-feedback-list, Andrew Murray, Nicolas Saenz Julienne

On Mon Jan 27, 2020 at 4:09 AM, kbuild test robot wrote:
> From: kbuild test robot <lkp@intel.com>
>
> drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing
> resource_size with res
>
>
> Use resource_size function on resource object
> instead of explicit computation.
>
> Generated by: scripts/coccinelle/api/resource_size.cocci
>
> Fixes: 8ad90d975e00 ("PCI: brcmstb: Add Broadcom STB PCIe host
> controller driver")
> CC: Jim Quinlan <james.quinlan@broadcom.com>
> Signed-off-by: kbuild test robot <lkp@intel.com>
> ---

Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>

Regards,
Nicolas

>
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> master
> head: 702ccea170f07783bd002055a353a0866c062267
> commit: 8ad90d975e00c297a198f6ecbd65e414fbb06dc9 [8319/11283] PCI:
> brcmstb: Add Broadcom STB PCIe host controller driver
>
> pcie-brcmstb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/pci/controller/pcie-brcmstb.c
> +++ b/drivers/pci/controller/pcie-brcmstb.c
> @@ -549,7 +549,7 @@ static int brcm_pcie_setup(struct brcm_p
>  
> brcm_pcie_set_outbound_win(pcie, num_out_wins, res->start,
> res->start - entry->offset,
> - res->end - res->start + 1);
> + resource_size(res));
> num_out_wins++;
> }
>  


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] PCI: brcmstb: fix resource_size.cocci warnings
@ 2020-01-27  9:31     ` Nicolas Saenz Julienne
  0 siblings, 0 replies; 12+ messages in thread
From: Nicolas Saenz Julienne @ 2020-01-27  9:31 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]

On Mon Jan 27, 2020 at 4:09 AM, kbuild test robot wrote:
> From: kbuild test robot <lkp@intel.com>
>
> drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing
> resource_size with res
>
>
> Use resource_size function on resource object
> instead of explicit computation.
>
> Generated by: scripts/coccinelle/api/resource_size.cocci
>
> Fixes: 8ad90d975e00 ("PCI: brcmstb: Add Broadcom STB PCIe host
> controller driver")
> CC: Jim Quinlan <james.quinlan@broadcom.com>
> Signed-off-by: kbuild test robot <lkp@intel.com>
> ---

Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>

Regards,
Nicolas

>
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> master
> head: 702ccea170f07783bd002055a353a0866c062267
> commit: 8ad90d975e00c297a198f6ecbd65e414fbb06dc9 [8319/11283] PCI:
> brcmstb: Add Broadcom STB PCIe host controller driver
>
> pcie-brcmstb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/pci/controller/pcie-brcmstb.c
> +++ b/drivers/pci/controller/pcie-brcmstb.c
> @@ -549,7 +549,7 @@ static int brcm_pcie_setup(struct brcm_p
>  
> brcm_pcie_set_outbound_win(pcie, num_out_wins, res->start,
> res->start - entry->offset,
> - res->end - res->start + 1);
> + resource_size(res));
> num_out_wins++;
> }
>  

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] PCI: brcmstb: fix resource_size.cocci warnings
  2020-01-27  9:31     ` Nicolas Saenz Julienne
  (?)
@ 2020-01-27 10:33       ` Lorenzo Pieralisi
  -1 siblings, 0 replies; 12+ messages in thread
From: Lorenzo Pieralisi @ 2020-01-27 10:33 UTC (permalink / raw)
  To: Nicolas Saenz Julienne
  Cc: kbuild test robot, Jim Quinlan, kbuild-all, Andrew Murray,
	Jeremy Linton, Bjorn Helgaas, Florian Fainelli,
	bcm-kernel-feedback-list, linux-pci, linux-arm-kernel

On Mon, Jan 27, 2020 at 10:31:22AM +0100, Nicolas Saenz Julienne wrote:
> On Mon Jan 27, 2020 at 4:09 AM, kbuild test robot wrote:
> > From: kbuild test robot <lkp@intel.com>
> >
> > drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing
> > resource_size with res
> >
> >
> > Use resource_size function on resource object
> > instead of explicit computation.
> >
> > Generated by: scripts/coccinelle/api/resource_size.cocci
> >
> > Fixes: 8ad90d975e00 ("PCI: brcmstb: Add Broadcom STB PCIe host
> > controller driver")
> > CC: Jim Quinlan <james.quinlan@broadcom.com>
> > Signed-off-by: kbuild test robot <lkp@intel.com>
> > ---
> 
> Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>

Applied on top on pci/brcmstb, thanks.

Lorenzo

> Regards,
> Nicolas
> 
> >
> > tree:
> > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> > master
> > head: 702ccea170f07783bd002055a353a0866c062267
> > commit: 8ad90d975e00c297a198f6ecbd65e414fbb06dc9 [8319/11283] PCI:
> > brcmstb: Add Broadcom STB PCIe host controller driver
> >
> > pcie-brcmstb.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > --- a/drivers/pci/controller/pcie-brcmstb.c
> > +++ b/drivers/pci/controller/pcie-brcmstb.c
> > @@ -549,7 +549,7 @@ static int brcm_pcie_setup(struct brcm_p
> >  
> > brcm_pcie_set_outbound_win(pcie, num_out_wins, res->start,
> > res->start - entry->offset,
> > - res->end - res->start + 1);
> > + resource_size(res));
> > num_out_wins++;
> > }
> >  
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] PCI: brcmstb: fix resource_size.cocci warnings
@ 2020-01-27 10:33       ` Lorenzo Pieralisi
  0 siblings, 0 replies; 12+ messages in thread
From: Lorenzo Pieralisi @ 2020-01-27 10:33 UTC (permalink / raw)
  To: Nicolas Saenz Julienne
  Cc: Florian Fainelli, kbuild-all, kbuild test robot, linux-pci,
	Jeremy Linton, Bjorn Helgaas, Jim Quinlan,
	bcm-kernel-feedback-list, Andrew Murray, linux-arm-kernel

On Mon, Jan 27, 2020 at 10:31:22AM +0100, Nicolas Saenz Julienne wrote:
> On Mon Jan 27, 2020 at 4:09 AM, kbuild test robot wrote:
> > From: kbuild test robot <lkp@intel.com>
> >
> > drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing
> > resource_size with res
> >
> >
> > Use resource_size function on resource object
> > instead of explicit computation.
> >
> > Generated by: scripts/coccinelle/api/resource_size.cocci
> >
> > Fixes: 8ad90d975e00 ("PCI: brcmstb: Add Broadcom STB PCIe host
> > controller driver")
> > CC: Jim Quinlan <james.quinlan@broadcom.com>
> > Signed-off-by: kbuild test robot <lkp@intel.com>
> > ---
> 
> Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>

Applied on top on pci/brcmstb, thanks.

Lorenzo

> Regards,
> Nicolas
> 
> >
> > tree:
> > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> > master
> > head: 702ccea170f07783bd002055a353a0866c062267
> > commit: 8ad90d975e00c297a198f6ecbd65e414fbb06dc9 [8319/11283] PCI:
> > brcmstb: Add Broadcom STB PCIe host controller driver
> >
> > pcie-brcmstb.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > --- a/drivers/pci/controller/pcie-brcmstb.c
> > +++ b/drivers/pci/controller/pcie-brcmstb.c
> > @@ -549,7 +549,7 @@ static int brcm_pcie_setup(struct brcm_p
> >  
> > brcm_pcie_set_outbound_win(pcie, num_out_wins, res->start,
> > res->start - entry->offset,
> > - res->end - res->start + 1);
> > + resource_size(res));
> > num_out_wins++;
> > }
> >  
> 

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] PCI: brcmstb: fix resource_size.cocci warnings
@ 2020-01-27 10:33       ` Lorenzo Pieralisi
  0 siblings, 0 replies; 12+ messages in thread
From: Lorenzo Pieralisi @ 2020-01-27 10:33 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]

On Mon, Jan 27, 2020 at 10:31:22AM +0100, Nicolas Saenz Julienne wrote:
> On Mon Jan 27, 2020 at 4:09 AM, kbuild test robot wrote:
> > From: kbuild test robot <lkp@intel.com>
> >
> > drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing
> > resource_size with res
> >
> >
> > Use resource_size function on resource object
> > instead of explicit computation.
> >
> > Generated by: scripts/coccinelle/api/resource_size.cocci
> >
> > Fixes: 8ad90d975e00 ("PCI: brcmstb: Add Broadcom STB PCIe host
> > controller driver")
> > CC: Jim Quinlan <james.quinlan@broadcom.com>
> > Signed-off-by: kbuild test robot <lkp@intel.com>
> > ---
> 
> Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>

Applied on top on pci/brcmstb, thanks.

Lorenzo

> Regards,
> Nicolas
> 
> >
> > tree:
> > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> > master
> > head: 702ccea170f07783bd002055a353a0866c062267
> > commit: 8ad90d975e00c297a198f6ecbd65e414fbb06dc9 [8319/11283] PCI:
> > brcmstb: Add Broadcom STB PCIe host controller driver
> >
> > pcie-brcmstb.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > --- a/drivers/pci/controller/pcie-brcmstb.c
> > +++ b/drivers/pci/controller/pcie-brcmstb.c
> > @@ -549,7 +549,7 @@ static int brcm_pcie_setup(struct brcm_p
> >  
> > brcm_pcie_set_outbound_win(pcie, num_out_wins, res->start,
> > res->start - entry->offset,
> > - res->end - res->start + 1);
> > + resource_size(res));
> > num_out_wins++;
> > }
> >  
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH] PCI: brcmstb: fix resource_size.cocci warnings
  2020-03-19 15:02 [jwboyer-fedora:f30 14/46] drivers/pci/controller/pcie-brcmstb.c:545:13-16: ERROR: Missing resource_size with res kbuild test robot
@ 2020-03-19 15:02 ` kbuild test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kbuild test robot @ 2020-03-19 15:02 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]

From: kbuild test robot <lkp@intel.com>

drivers/pci/controller/pcie-brcmstb.c:545:13-16: ERROR: Missing resource_size with res


 Use resource_size function on resource object
 instead of explicit computation.

Generated by: scripts/coccinelle/api/resource_size.cocci

Fixes: 5070baa3a430 ("PCI: brcmstb: Add Broadcom STB PCIe host controller driver")
CC: Jim Quinlan <james.quinlan@broadcom.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git f30
head:   8d947ebeda09dd1e4da4953f8061c53de64a60f6
commit: 5070baa3a4304f6ed6448e37b637c2029e67d23d [14/46] PCI: brcmstb: Add Broadcom STB PCIe host controller driver

 pcie-brcmstb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/pci/controller/pcie-brcmstb.c
+++ b/drivers/pci/controller/pcie-brcmstb.c
@@ -542,7 +542,7 @@ static int brcm_pcie_setup(struct brcm_p
 
 		brcm_pcie_set_outbound_win(pcie, num_out_wins, res->start,
 					   res->start - entry->offset,
-					   res->end - res->start + 1);
+					   resource_size(res));
 		num_out_wins++;
 	}
 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH] PCI: brcmstb: fix resource_size.cocci warnings
  2020-02-25 18:21 [jwboyer-fedora:f31 15/46] drivers/pci/controller/pcie-brcmstb.c:545:13-16: ERROR: Missing resource_size with res kbuild test robot
@ 2020-02-25 18:21 ` kbuild test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kbuild test robot @ 2020-02-25 18:21 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]

From: kbuild test robot <lkp@intel.com>

drivers/pci/controller/pcie-brcmstb.c:545:13-16: ERROR: Missing resource_size with res


 Use resource_size function on resource object
 instead of explicit computation.

Generated by: scripts/coccinelle/api/resource_size.cocci

Fixes: e75e162cd3b2 ("PCI: brcmstb: Add Broadcom STB PCIe host controller driver")
CC: Jim Quinlan <james.quinlan@broadcom.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git f31
head:   4382f76bc8ef9fce5e7e96d4cdb0c073564ad249
commit: e75e162cd3b2056352a4797879dbd5c2d9fd8f2e [15/46] PCI: brcmstb: Add Broadcom STB PCIe host controller driver

 pcie-brcmstb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/pci/controller/pcie-brcmstb.c
+++ b/drivers/pci/controller/pcie-brcmstb.c
@@ -542,7 +542,7 @@ static int brcm_pcie_setup(struct brcm_p
 
 		brcm_pcie_set_outbound_win(pcie, num_out_wins, res->start,
 					   res->start - entry->offset,
-					   res->end - res->start + 1);
+					   resource_size(res));
 		num_out_wins++;
 	}
 

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-03-19 15:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-26 20:09 [linux-next:master 8319/11283] drivers/pci/controller/pcie-brcmstb.c:552:13-16: ERROR: Missing resource_size with res kbuild test robot
2020-01-26 20:09 ` [PATCH] PCI: brcmstb: fix resource_size.cocci warnings kbuild test robot
2020-01-26 20:09   ` kbuild test robot
2020-01-26 20:09   ` kbuild test robot
2020-01-27  9:31   ` Nicolas Saenz Julienne
2020-01-27  9:31     ` Nicolas Saenz Julienne
2020-01-27  9:31     ` Nicolas Saenz Julienne
2020-01-27 10:33     ` Lorenzo Pieralisi
2020-01-27 10:33       ` Lorenzo Pieralisi
2020-01-27 10:33       ` Lorenzo Pieralisi
2020-02-25 18:21 [jwboyer-fedora:f31 15/46] drivers/pci/controller/pcie-brcmstb.c:545:13-16: ERROR: Missing resource_size with res kbuild test robot
2020-02-25 18:21 ` [PATCH] PCI: brcmstb: fix resource_size.cocci warnings kbuild test robot
2020-03-19 15:02 [jwboyer-fedora:f30 14/46] drivers/pci/controller/pcie-brcmstb.c:545:13-16: ERROR: Missing resource_size with res kbuild test robot
2020-03-19 15:02 ` [PATCH] PCI: brcmstb: fix resource_size.cocci warnings kbuild test robot

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.