1
0
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:
Alex Forencich 2021-09-09 17:49:11 -07:00
parent d24c53a2ad
commit d0976f193b
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
}