public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@fs.tum.de>
To: linux-scsi@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] fix aic7xxx_old.c for !PCI
Date: Thu, 13 May 2004 01:55:55 +0200	[thread overview]
Message-ID: <20040512235555.GF21408@fs.tum.de> (raw)

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)

             reply	other threads:[~2004-05-12 23:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-12 23:55 Adrian Bunk [this message]
2004-05-13  7:41 ` [2.6 patch] fix aic7xxx_old.c for !PCI Arjan van de Ven
2004-05-13 12:36   ` Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040512235555.GF21408@fs.tum.de \
    --to=bunk@fs.tum.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox