Use resource_size_t for pci_resource_start() and pci_resource_len() return
values. Makes tehuti driver work correctly on 32 bit systems with 64 bit
resources.
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
---
drivers/net/tehuti.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c
index 432e837..6e674a5 100644
--- a/drivers/net/tehuti.c
+++ b/drivers/net/tehuti.c
@@ -1909,8 +1909,7 @@ bdx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
struct net_device *ndev;
struct bdx_priv *priv;
int err, pci_using_dac, port;
- unsigned long pciaddr;
- u32 regionSize;
+ resource_size_t pciaddr, regionSize;
struct pci_nic *nic;
ENTER;
@@ -1949,7 +1948,8 @@ bdx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
}
if ((regionSize = pci_resource_len(pdev, 0)) < BDX_REGS_SIZE) {
err = -EIO;
- ERR("tehuti: MMIO resource (%x) too small\n", regionSize);
+ ERR("tehuti: MMIO resource (%llx) too small\n",
+ (u64)regionSize);
goto err_out_res;
}
--
1.5.6.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html| Benjamin Herrenschmidt | Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway |
| Ulrich Drepper | Re: [patch 7/8] fdmap v2 - implement sys_socket2 |
| Washington Odhiambo | Weird Problem with NAT - more details |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
| Jarek Poplawski | [PATCH take 2] pkt_sched: Protect gen estimators under est_lock. |
| David Miller | Re: [GIT]: Networking |
