From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King Subject: Re: [PATCH 07/24] arm: scsi convert to accessors and !use_sg cleanup Date: Fri, 1 Feb 2008 20:10:47 +0000 Message-ID: <20080201201047.GC12138@flint.arm.linux.org.uk> References: <46E6F92D.2090409@panasas.com> <46E72AE7.4030507@panasas.com> <20070912074205.GB2653@flint.arm.linux.org.uk> <46EFE8FF.3010907@panasas.com> <1197678458.3154.119.camel@localhost.localdomain> <47654421.1030704@panasas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from caramon.arm.linux.org.uk ([78.32.30.218]:39612 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756073AbYBAUO3 (ORCPT ); Fri, 1 Feb 2008 15:14:29 -0500 Content-Disposition: inline In-Reply-To: <47654421.1030704@panasas.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Boaz Harrosh Cc: James Bottomley , FUJITA Tomonori , Alan Stern , Matthew Dharm , Jeff Garzik , "David S. Miller" , Bartlomiej Zolnierkiewicz , YOKOTA Hiroshi , linux-scsi , "Maciej W. Rozycki" , Mark Fortescue On Sun, Dec 16, 2007 at 05:28:33PM +0200, Boaz Harrosh wrote: > Russell or any other arm person. Please first see if this compiles at all, as I do > not have a cross compiler set up, and please check that this code works. > (Should apply on top of Linus latest) This patch seems to work with one change: > + SCpnt->SCp.phase = > + min(len, scsi_bufflen(SCpnt)); This min wants to be + min_t(unsigned long, len, scsi_bufflen(SCpnt)); -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: