Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261768AbVAMXiR (ORCPT ); Thu, 13 Jan 2005 18:38:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261818AbVAMXbI (ORCPT ); Thu, 13 Jan 2005 18:31:08 -0500 Received: from wproxy.gmail.com ([64.233.184.204]:39180 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S261781AbVAMX2u (ORCPT ); Thu, 13 Jan 2005 18:28:50 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=Le3FGLDiuPDssqVwrT7u+1qDxg2BpMmE7oXz//axt55OxPvfV3VLYdwvSA7x7dC+txnmtPE7UB6/cgFQrWGQW3I6gXpe6WY+Dep+Xj+vB7LMR5vyQAtf3DfDwml0zEyxmdpHoDh9ijf3j+zpcrqhErhwp/AxGDSf8MuHQRIKClU= Message-ID: <8746466a050113152843f32a2f@mail.gmail.com> Date: Thu, 13 Jan 2005 16:28:49 -0700 From: Dave Reply-To: Dave To: akpm@osdl.org, torvalds@osdl.org, linux-kernel@vger.kernel.org, smaurer@teja.com, linux@arm.linux.org.uk, dsaxena@plexity.net, drew.moseley@intel.com, mporter@kernel.crashing.org Subject: [PATCH 2/5] Convert resource to u64 from unsigned long Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_700_18812632.1105658929692" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8453 Lines: 130 ------=_Part_700_18812632.1105658929692 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Fixed some of the drivers as example just to get working on i386. Signed-off-by: Dave Jiang (dave.jiang@gmail.com) -- -= Dave =- Software Engineer - Advanced Development Engineering Team Storage Component Division - Intel Corp. mailto://dave.jiang @ intel http://sourceforge.net/projects/xscaleiop/ ---- The views expressed in this email are mine alone and do not necessarily reflect the views of my employer (Intel Corp.). ------=_Part_700_18812632.1105658929692 Content-Type: application/octet-stream; name="patch-driver_u64fix" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-driver_u64fix" ZGlmZiAtTmF1ciBsaW51eC0yLjYuMTEtcmMxL2RyaXZlcnMvaWRlL3BjaS9jbWQ2NHguYyBsaW51 eC0yLjYuMTEtcmMxLXU2NC9kcml2ZXJzL2lkZS9wY2kvY21kNjR4LmMKLS0tIGxpbnV4LTIuNi4x MS1yYzEvZHJpdmVycy9pZGUvcGNpL2NtZDY0eC5jCTIwMDUtMDEtMTMgMTQ6Mzk6NTUuOTY3MTky NDI0IC0wNzAwCisrKyBsaW51eC0yLjYuMTEtcmMxLXU2NC9kcml2ZXJzL2lkZS9wY2kvY21kNjR4 LmMJMjAwNS0wMS0xMyAxMjoyMDoyOC43MDMyMDk4OTYgLTA3MDAKQEAgLTU2MCw3ICs1NjAsNyBA QAogI2lmZGVmIF9faTM4Nl9fCiAJaWYgKGRldi0+cmVzb3VyY2VbUENJX1JPTV9SRVNPVVJDRV0u c3RhcnQpIHsKIAkJcGNpX3dyaXRlX2NvbmZpZ19ieXRlKGRldiwgUENJX1JPTV9BRERSRVNTLCBk ZXYtPnJlc291cmNlW1BDSV9ST01fUkVTT1VSQ0VdLnN0YXJ0IHwgUENJX1JPTV9BRERSRVNTX0VO QUJMRSk7Ci0JCXByaW50ayhLRVJOX0lORk8gIiVzOiBST00gZW5hYmxlZCBhdCAweCUwOGx4XG4i LCBuYW1lLCBkZXYtPnJlc291cmNlW1BDSV9ST01fUkVTT1VSQ0VdLnN0YXJ0KTsKKwkJcHJpbnRr KEtFUk5fSU5GTyAiJXM6IFJPTSBlbmFibGVkIGF0IDB4JSIgVTY0Rk1UICJcbiIsIG5hbWUsIGRl di0+cmVzb3VyY2VbUENJX1JPTV9SRVNPVVJDRV0uc3RhcnQpOwogCX0KICNlbmRpZgogCmRpZmYg LU5hdXIgbGludXgtMi42LjExLXJjMS9kc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Part_700_18812632.1105658929692-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/