couple of patches for compilation on non-386 machines

From: Philip Blundell (Philip.Blundell@pobox.com)
Date: Sun Jun 11 2000 - 10:26:38 EST


--- linux/drivers/scsi/in2000.h Sun Apr 30 11:00:42 2000
+++ linux/drivers/scsi/in2000.h Sun Jun 4 20:21:21 2000
@@ -34,8 +34,10 @@
 #define DEBUGGING_ON /* enable command-line debugging bitmask */
 #define DEBUG_DEFAULTS 0 /* default bitmask - change from command-line */
 
+#ifdef __i386__
 #define FAST_READ_IO /* No problems with these on my machine */
 #define FAST_WRITE_IO
+#endif
 
 #ifdef DEBUGGING_ON
 #define DB(f,a) if (hostdata->args & (f)) a;
@@ -52,6 +54,7 @@
 #define write1_io(b,a) (outb((b),hostdata->io_base+(a)))
 #define write2_io(w,a) (outw((w),hostdata->io_base+(a)))
 
+#ifdef __i386__
 /* These inline assembly defines are derived from a patch
  * sent to me by Bill Earnest. He's done a lot of very
  * valuable thinking, testing, and coding during his effort
@@ -90,6 +93,7 @@ int __dummy_1,__dummy_2; \
    : "2" (f), "0" (sp), "1" (i) /* input */ \
    ); /* trashed */ \
 })
+#endif
 
 /* IN2000 io_port offsets */
 #define IO_WD_ASR 0x00 /* R - 3393 auxstat reg */
--- linux/drivers/net/wan/Config.in Sun Apr 30 11:16:41 2000
+++ linux/drivers/net/wan/Config.in Sun Apr 30 11:37:24 2000
@@ -81,7 +81,9 @@ if [ "$CONFIG_WAN" = "y" ]; then
         dep_tristate 'LAPB over Ethernet driver' CONFIG_LAPBETHER $CONFIG_LAPB $CONFIG_X25
         dep_tristate 'X.25 async driver' CONFIG_X25_ASY $CONFIG_LAPB $CONFIG_X25
 
- tristate 'SBNI12-xx support' CONFIG_SBNI
+ if [ "$CONFIG_X86" = "y" ]; then
+ tristate 'SBNI12-xx support' CONFIG_SBNI
+ fi
 fi
 
 endmenu

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:23 EST