public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Yaroslav Klyukin <skintwin@mail.ru>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] aic79xx on Opteron compilation issues.
Date: Mon, 01 Dec 2003 16:53:43 -0500	[thread overview]
Message-ID: <3FCBB867.7030606@mail.ru> (raw)

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

The 2.4.23 kernel would not compile with aic79xx support enabled.
The error message is attached.
In a nutshell it complains about function not used.

The patch attached is just a pair of "ifndef __x86_64__" statements.

I don't know all the details, but the kernel seems to compile and the 
driver work after patching.
I tried to partition and format the drive, then copied files onto it.
While doing that, did not notice anything extraordinary in dmesg output.





[-- Attachment #2: aic79xx_osm_pci.c.patch --]
[-- Type: text/plain, Size: 972 bytes --]

diff -urN linux-2.4.23/drivers/scsi/aic7xxx/aic79xx_osm_pci.c linux/drivers/scsi/aic7xxx/aic79xx_osm_pci.c
--- linux-2.4.23/drivers/scsi/aic7xxx/aic79xx_osm_pci.c	2003-08-25 07:44:42.000000000 -0400
+++ linux/drivers/scsi/aic7xxx/aic79xx_osm_pci.c	2003-12-01 15:51:53.000000000 -0500
@@ -52,9 +52,11 @@
 					const struct pci_device_id *ent);
 static int	ahd_linux_pci_reserve_io_regions(struct ahd_softc *ahd,
 						 u_long *base, u_long *base2);
+#ifndef __x86_64__
 static int	ahd_linux_pci_reserve_mem_region(struct ahd_softc *ahd,
 						 u_long *bus_addr,
 						 uint8_t **maddr);
+#endif
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
 static void	ahd_linux_pci_dev_remove(struct pci_dev *pdev);
 
@@ -271,6 +273,9 @@
 	return (0);
 }
 
+
+#ifndef __x86_64__
+
 static int
 ahd_linux_pci_reserve_mem_region(struct ahd_softc *ahd,
 				 u_long *bus_addr,
@@ -319,6 +324,8 @@
 	return (error);
 }
 
+#endif
+
 int
 ahd_pci_map_registers(struct ahd_softc *ahd)
 {

[-- Attachment #3: description.txt --]
[-- Type: text/plain, Size: 972 bytes --]

diff -urN linux-2.4.23/drivers/scsi/aic7xxx/aic79xx_osm_pci.c linux/drivers/scsi/aic7xxx/aic79xx_osm_pci.c
--- linux-2.4.23/drivers/scsi/aic7xxx/aic79xx_osm_pci.c	2003-08-25 07:44:42.000000000 -0400
+++ linux/drivers/scsi/aic7xxx/aic79xx_osm_pci.c	2003-12-01 15:51:53.000000000 -0500
@@ -52,9 +52,11 @@
 					const struct pci_device_id *ent);
 static int	ahd_linux_pci_reserve_io_regions(struct ahd_softc *ahd,
 						 u_long *base, u_long *base2);
+#ifndef __x86_64__
 static int	ahd_linux_pci_reserve_mem_region(struct ahd_softc *ahd,
 						 u_long *bus_addr,
 						 uint8_t **maddr);
+#endif
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
 static void	ahd_linux_pci_dev_remove(struct pci_dev *pdev);
 
@@ -271,6 +273,9 @@
 	return (0);
 }
 
+
+#ifndef __x86_64__
+
 static int
 ahd_linux_pci_reserve_mem_region(struct ahd_softc *ahd,
 				 u_long *bus_addr,
@@ -319,6 +324,8 @@
 	return (error);
 }
 
+#endif
+
 int
 ahd_pci_map_registers(struct ahd_softc *ahd)
 {

                 reply	other threads:[~2003-12-01 21:53 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=3FCBB867.7030606@mail.ru \
    --to=skintwin@mail.ru \
    --cc=linux-kernel@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