lkml.org 
[lkml]   [2004]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[2.6 patch] fix aic7xxx_old.c for !PCI
    I got the following compile error in 2.6.6-mm1 (but it's not specific to 
    -mm) with CONFIG_PCI=n:

    <-- snip -->

    ...
    CC drivers/scsi/aic7xxx_old.o
    drivers/scsi/aic7xxx_old.c: In function `aic7xxx_release':
    drivers/scsi/aic7xxx_old.c:10971: warning: implicit declaration of function `pci_release_regions'
    ...
    LD .tmp_vmlinux1
    drivers/built-in.o(.text+0x2bf0ff): In function `aic7xxx_release':
    : undefined reference to `pci_release_regions'
    make: *** [.tmp_vmlinux1] Error 1

    <-- snip -->

    The patch below fixes this issue.

    Please apply
    Adrian

    --- linux-2.6.6-mm1-full/drivers/scsi/aic7xxx_old.c.old 2004-05-13 01:23:42.000000000 +0200
    +++ linux-2.6.6-mm1-full/drivers/scsi/aic7xxx_old.c 2004-05-13 01:25:05.000000000 +0200
    @@ -9675,7 +9675,9 @@
    found++;
    continue;
    skip_pci_controller:
    +#ifdef CONFIG_PCI
    pci_release_regions(temp_p->pdev);
    +#endif
    kfree(temp_p);
    } /* Found an Adaptec PCI device. */
    else /* Well, we found one, but we couldn't get any memory */
    @@ -10967,8 +10969,10 @@
    #endif /* MMAPIO */
    if(!p->pdev)
    release_region(p->base, MAXREG - MINREG);
    +#ifdef CONFIG_PCI
    else
    pci_release_regions(p->pdev);
    +#endif
    prev = NULL;
    next = first_aic7xxx;
    while(next != NULL)
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 14:03    [W:0.021 / U:58.936 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site