public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: "Justin T. Gibbs" <gibbs@scsiguy.com>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Fix for EISA only aic7xxx compile
Date: 28 Aug 2003 12:40:32 -0400	[thread overview]
Message-ID: <1062088833.1999.31.camel@mulgrave> (raw)

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

If I build an EISA (no PCI) kernel for my intel express, I get undefined
references to ahc_linux_pci_exit().

The attached patch fixes this (seemed simpler than trying to work out
how to move the function calls).

Other than that, EISA only seems to work fine for me.

James


[-- Attachment #2: tmp.diff --]
[-- Type: text/plain, Size: 744 bytes --]

===== drivers/scsi/aic7xxx/aic7xxx_osm.h 1.50 vs edited =====
--- 1.50/drivers/scsi/aic7xxx/aic7xxx_osm.h	Fri May  2 15:26:21 2003
+++ edited/drivers/scsi/aic7xxx/aic7xxx_osm.h	Thu Aug 28 12:05:26 2003
@@ -852,10 +852,16 @@
 int			 aic7770_map_int(struct ahc_softc *ahc, u_int irq);
 
 /******************************* PCI Routines *********************************/
+#ifdef CONFIG_PCI
 int			 ahc_linux_pci_init(void);
 void			 ahc_linux_pci_exit(void);
 int			 ahc_pci_map_registers(struct ahc_softc *ahc);
 int			 ahc_pci_map_int(struct ahc_softc *ahc);
+#else
+static inline void ahc_linux_pci_exit(void)
+{
+}
+#endif
 
 static __inline uint32_t ahc_pci_read_config(ahc_dev_softc_t pci,
 					     int reg, int width);

                 reply	other threads:[~2003-08-28 16:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1062088833.1999.31.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=gibbs@scsiguy.com \
    --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