mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
Use correct type
This commit is contained in:
parent
d24c53a2ad
commit
d0976f193b
@ -81,7 +81,7 @@ struct mqnic_dev {
|
||||
struct device *dev;
|
||||
struct pci_dev *pdev;
|
||||
|
||||
size_t hw_regs_size;
|
||||
resource_size_t hw_regs_size;
|
||||
phys_addr_t hw_regs_phys;
|
||||
u8 __iomem *hw_addr;
|
||||
u8 __iomem *phc_hw_addr;
|
||||
|
@ -59,7 +59,7 @@ static int mqnic_map_registers(struct mqnic_dev *mqnic, struct vm_area_struct *v
|
||||
|
||||
if (map_size > mqnic->hw_regs_size)
|
||||
{
|
||||
dev_err(mqnic->dev, "mqnic_map_registers: Tried to map registers region with wrong size %lu (expected <=%zu)", vma->vm_end - vma->vm_start, mqnic->hw_regs_size);
|
||||
dev_err(mqnic->dev, "mqnic_map_registers: Tried to map registers region with wrong size %lu (expected <= %llu)", vma->vm_end - vma->vm_start, mqnic->hw_regs_size);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
@ -249,7 +249,7 @@ static int mqnic_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent
|
||||
if (mqnic->if_count*mqnic->if_stride > mqnic->hw_regs_size)
|
||||
{
|
||||
ret = -EIO;
|
||||
dev_err(dev, "Invalid BAR configuration (%d IF * 0x%x > 0x%lx)", mqnic->if_count, mqnic->if_stride, mqnic->hw_regs_size);
|
||||
dev_err(dev, "Invalid BAR configuration (%d IF * 0x%x > 0x%llx)", mqnic->if_count, mqnic->if_stride, mqnic->hw_regs_size);
|
||||
goto fail_map_bars;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user