diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-10-30 05:30:45 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-11-03 07:30:23 -0500 |
commit | 5b9f2081e0844581cc94384eb052007002b2bfa8 (patch) | |
tree | d0bf09ebacf1272ba884f39c806b89f7f7518583 /arch/s390/pci/pci.c | |
parent | b19148f6e2d90738ecf0c2eeeb9bdbae25c59e9b (diff) |
s390/pci: add sparse annotations
Fix the following warnings from the sparse code checker:
arch/s390/include/asm/pci_io.h:165:49: warning: cast removes address space of expression
arch/s390/pci/pci.c:476:44: warning: cast removes address space of expression
arch/s390/pci/pci.c:491:36: warning: incorrect type in argument 2 (different address spaces)
arch/s390/pci/pci.c:491:36: expected void [noderef] <asn:2>*addr
arch/s390/pci/pci.c:491:36: got void *<noident>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/pci/pci.c')
-rw-r--r-- | arch/s390/pci/pci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c index 47a4568e141d..ed3725e2d16e 100644 --- a/arch/s390/pci/pci.c +++ b/arch/s390/pci/pci.c | |||
@@ -473,7 +473,8 @@ static void zpci_map_resources(struct zpci_dev *zdev) | |||
473 | len = pci_resource_len(pdev, i); | 473 | len = pci_resource_len(pdev, i); |
474 | if (!len) | 474 | if (!len) |
475 | continue; | 475 | continue; |
476 | pdev->resource[i].start = (resource_size_t) pci_iomap(pdev, i, 0); | 476 | pdev->resource[i].start = |
477 | (resource_size_t __force) pci_iomap(pdev, i, 0); | ||
477 | pdev->resource[i].end = pdev->resource[i].start + len - 1; | 478 | pdev->resource[i].end = pdev->resource[i].start + len - 1; |
478 | } | 479 | } |
479 | } | 480 | } |
@@ -488,7 +489,8 @@ static void zpci_unmap_resources(struct zpci_dev *zdev) | |||
488 | len = pci_resource_len(pdev, i); | 489 | len = pci_resource_len(pdev, i); |
489 | if (!len) | 490 | if (!len) |
490 | continue; | 491 | continue; |
491 | pci_iounmap(pdev, (void *) pdev->resource[i].start); | 492 | pci_iounmap(pdev, (void __iomem __force *) |
493 | pdev->resource[i].start); | ||
492 | } | 494 | } |
493 | } | 495 | } |
494 | 496 | ||