From: GOTO Masanori Subject: Re: [PATCH] Mark Workbit NinjaSCSI driver non 64bit Date: Sun, 04 Jan 2004 03:08:59 +0900 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <813cawsy4k.wl@omega.webmasters.gr.jp> References: <20040101215835.GA3001@averell> Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from omega.webmasters.gr.jp ([218.44.239.78]:53450 "EHLO webmasters.gr.jp") by vger.kernel.org with ESMTP id S263622AbUACSJE (ORCPT ); Sat, 3 Jan 2004 13:09:04 -0500 In-Reply-To: <20040101215835.GA3001@averell> List-Id: linux-scsi@vger.kernel.org To: Andi Kleen Cc: linux-scsi@vger.kernel.org, gotom@debian.or.jp, yokota@netlab.is.tsukuba.ac.jp Hi Andi, At Thu, 1 Jan 2004 22:58:35 +0100, Andi Kleen wrote: > Judging from the warnings it spews out on a 64bit compilation on AMD64 > it is not 64bit clean. Mark it as such in Kconfig. > > Better would be of course to fix it. Thanks for your report. I compiled and exactly I saw some warnings on amd64 machine. I checked all warnings, and these warnings are trivial, they can be easily fixed. I attached the patch to fix warnings. Nsp32 is PCI device driver, so it should also work on amd64 architecture. --- drivers/scsi/nsp32.h.orig 2004-01-03 08:34:30.000000000 +0900 +++ drivers/scsi/nsp32.h 2004-01-03 08:34:48.000000000 +0900 @@ -667,10 +667,5 @@ } #endif -/* for Kernel 2.6 */ -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) -# define __devinitdata /* */ -#endif - #endif /* _NSP32_H */ /* end */ --- drivers/scsi/nsp32_io.h.orig 2004-01-03 08:35:07.000000000 +0900 +++ drivers/scsi/nsp32_io.h 2004-01-03 08:41:47.000000000 +0900 @@ -173,7 +173,7 @@ /*==============================================*/ -static inline unsigned char nsp32_mmio_index_read1(unsigned int base, +static inline unsigned char nsp32_mmio_index_read1(unsigned long base, unsigned int reg) { volatile unsigned short *index_ptr, *data_ptr; @@ -185,7 +185,7 @@ return readb(data_ptr); } -static inline void nsp32_mmio_index_write1(unsigned int base, +static inline void nsp32_mmio_index_write1(unsigned long base, unsigned int reg, unsigned char val) { @@ -198,8 +198,8 @@ writeb(val, data_ptr ); } -static inline unsigned short nsp32_mmio_index_read2(unsigned int base, - unsigned int reg) +static inline unsigned short nsp32_mmio_index_read2(unsigned long base, + unsigned int reg) { volatile unsigned short *index_ptr, *data_ptr; @@ -210,7 +210,7 @@ return le16_to_cpu(readw(data_ptr)); } -static inline void nsp32_mmio_index_write2(unsigned int base, +static inline void nsp32_mmio_index_write2(unsigned long base, unsigned int reg, unsigned short val) { Regards, -- gotom > > -Andi > > diff -burpN -X ../KDIFX linux-2.6.1-rc1/drivers/scsi/Kconfig linux-2.6.1-rc1-amd64/drivers/scsi/Kconfig > --- linux-2.6.1-rc1/drivers/scsi/Kconfig 2004-01-01 06:25:23.000000000 +0100 > +++ linux-2.6.1-rc1-amd64/drivers/scsi/Kconfig 2004-01-01 06:56:50.000000000 +0100 > @@ -1388,7 +1388,7 @@ config SCSI_ULTRASTOR > > config SCSI_NSP32 > tristate "Workbit NinjaSCSI-32Bi/UDE support" > - depends on PCI && SCSI > + depends on PCI && SCSI && !64BIT > help > This is support for the Workbit NinjaSCSI-32Bi/UDE PCI/Cardbus > SCSI host adapter. Please read the SCSI-HOWTO, available from