1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Fix types

This commit is contained in:
Alex Forencich 2021-01-13 20:18:01 -08:00
parent ddda63476c
commit 9ceacea0e0
2 changed files with 2 additions and 2 deletions

View File

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

View File

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