mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Fix types
This commit is contained in:
parent
ddda63476c
commit
9ceacea0e0
@ -116,7 +116,7 @@ static long mqnic_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
ctl.board_ver = mqnic->board_ver;
|
||||
ctl.regs_size = mqnic->hw_regs_size;
|
||||
|
||||
if (copy_to_user((void *)arg, &ctl, sizeof(ctl)) != 0)
|
||||
if (copy_to_user((void __user *)arg, &ctl, sizeof(ctl)) != 0)
|
||||
return -EFAULT;
|
||||
|
||||
return 0;
|
||||
|
@ -240,7 +240,7 @@ static int mqnic_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent
|
||||
// Set up interrupts
|
||||
for (k = 0; k < mqnic->irq_count; k++)
|
||||
{
|
||||
ret = pci_request_irq(pdev, k, mqnic_interrupt, 0, mqnic, "mqnic%d-%d", mqnic->id, k);
|
||||
ret = pci_request_irq(pdev, k, mqnic_interrupt, NULL, mqnic, "mqnic%d-%d", mqnic->id, k);
|
||||
if (ret < 0)
|
||||
{
|
||||
dev_err(dev, "Failed to request IRQ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user