Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 27 Jan 2002 20:42:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 27 Jan 2002 20:42:19 -0500 Received: from sombre.2ka.mipt.ru ([194.85.82.77]:26778 "EHLO sombre.2ka.mipt.ru") by vger.kernel.org with ESMTP id ; Sun, 27 Jan 2002 20:42:06 -0500 Date: Mon, 28 Jan 2002 04:41:21 +0300 From: Evgeniy Polyakov To: l16083@alunos.uevora.pt Cc: linux-kernel@vger.kernel.org, axboe@suse.de Subject: Re: Can't compile Symbios 53c416 SCSI support Message-Id: <20020128044121.033ce18e.johnpol@2ka.mipt.ru> In-Reply-To: <20020128043833.659e7102.johnpol@2ka.mipt.ru> In-Reply-To: <20020127201213.A7091@bleach> <20020128043833.659e7102.johnpol@2ka.mipt.ru> Reply-To: johnpol@2ka.mipt.ru Organization: MIPT X-Mailer: Sylpheed version 0.7.0 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Mon__28_Jan_2002_04:41:21_+0300_0828b568" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --Multipart_Mon__28_Jan_2002_04:41:21_+0300_0828b568 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > So i hope this patch will help a bit in this direction. Ooops, forgot to attach. Evgeniy Polyakov ( s0mbre ). --Multipart_Mon__28_Jan_2002_04:41:21_+0300_0828b568 Content-Type: application/octet-stream; name="drivers_scsi_sym53c416.diff" Content-Disposition: attachment; filename="drivers_scsi_sym53c416.diff" Content-Transfer-Encoding: base64 LS0tIC4vbGludXgub3JpZy9kcml2ZXJzL3Njc2kvc3ltNTNjNDE2LmMJTW9uIEphbiAyOCAwNDox NzoyNiAyMDAyCisrKyAuL2xpbnV4L2RyaXZlcnMvc2NzaS9zeW01M2M0MTYuYwlNb24gSmFuIDI4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B4RkYpIDw8IDgpIHwgKERJRF9PSyA8PCAxNik7CiAJCWN1cnJlbnRf Y29tbWFuZC0+U0NwLnBoYXNlID0gaWRsZTsKLQkJc3Bpbl9sb2NrX2lycXNhdmUoJmlvX3JlcXVl c3RfbG9jaywgZmxhZ3MpOworCQlzcGluX2xvY2tfaXJxc2F2ZSgmZGV2LT5ob3N0X2xvY2ssIGZs YWdzKTsKIAkJY3VycmVudF9jb21tYW5kLT5zY3NpX2RvbmUoY3VycmVudF9jb21tYW5kKTsKLQkJ c3Bpbl91bmxvY2tfaXJxcmVzdG9yZSgmaW9fcmVxdWVzdF9sb2NrLCBmbGFncyk7CisJCXNwaW5f dW5sb2NrX2lycXJlc3RvcmUoJmRldi0+aG9zdF9sb2NrLCBmbGFncyk7CiAJCXJldHVybjsKIAl9 CiAJLyogTm93IHdlIGhhbmRsZSBTQ1NJIHBoYXNlcyAgICAgICAgICovCkBAIC03MTksNyArNzIw LDcgQEAKIAkJCQljbGkoKTsKIAkJCQkvKiBGSVhNRTogUmVxdWVzdF9pcnEgd2l0aCBDTEkgaXMg bm90IHNhZmUgKi8KIAkJCQkvKiBSZXF1ZXN0IGZvciBzcGVjaWZpZWQgSVJRICovCi0JCQkJaWYo cmVxdWVzdF9pcnEoaG9zdHNbaV0uaXJxLCBzeW01M2M0MTZfaW50cl9oYW5kbGUsIDAsIElELCBO VUxMKSkKKwkJCQlpZihyZXF1ZXN0X2lycShob3N0c1tpXS5pcnEsIHN5bTUzYzQxNl9pbnRyX2hh bmRsZSwgMCwgSUQsIHNocG50KSkKIAkJCQl7CiAJCQkJCXJlc3RvcmVfZmxhZ3MoZmxhZ3MpOwog CQkJCQlwcmludGsoS0VSTl9FUlIgInN5bTUzYzQxNjogVW5hYmxlIHRvIGFzc2lnbiBJUlEgJWRc biIsIGhvc3RzW2ldLmlycSk7Cg== --Multipart_Mon__28_Jan_2002_04:41:21_+0300_0828b568-- - 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/