Subject: compiling isp.c on alpha failed...
To: None <>
From: Kurt Schreiner <>
List: current-users
Date: 07/08/2007 00:05:35

trying to compile a new kernel on my XP1000 failed:

    compile  XP1000/isp.o
cc1: warnings being treated as errors
/u/NetBSD/src/sys/dev/ic/isp.c: In function 'isp_rd_2400_nvram':
/u/NetBSD/src/sys/dev/ic/isp.c:7550: warning: implicit declaration of function 'ISP_SWIZZLE_NVRAM_LO
--- isp.o ---
*** [isp.o] Error code 1
1 error

This is remedied by adding a definiton for ISP_SWIZZLE_NVRAM_LONG in the
little-endian case in sys/dev/ic/isp_netbsd.h, too (see the following
patch; a kernel with this patch with the root disk on isp0 is running

--- /tmp/isp_netbsd.h   2007-07-07 12:53:41.000000000 +0200
+++ /usr/src/sys/dev/ic/isp_netbsd.h    2007-07-07 23:50:10.000000000 +0200
@@ -292,6 +292,7 @@
 #define        ISP_IOXGET_16(isp, s, d)        d = *(s)
 #define        ISP_IOXGET_32(isp, s, d)        d = *(s)
 #define        ISP_SWIZZLE_NVRAM_WORD(isp, rp)
+#define        ISP_SWIZZLE_NVRAM_LONG(isp, rp)
 #define        ISP_IOZPUT_8(isp, s, d)         *(d) = s
 #define        ISP_IOZPUT_16(isp, s, d)        *(d) = bswap16(s)