From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: John Weber <weber@nyc.rr.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: linux 2.5.4-pre3 and IDE changes
Date: Thu, 07 Feb 2002 22:47:47 -0500 [thread overview]
Message-ID: <3C634A63.75CAD844@mandrakesoft.com> (raw)
In-Reply-To: <3C634346.1010405@nyc.rr.com>
[-- Attachment #1: Type: text/plain, Size: 926 bytes --]
John Weber wrote:
>
> The address member of struct scatterlist appears to have been changed to
> dma_address.
>
> A simple s/\.address/\.dma_address/ should fix this compile error.
>
> ide-dma.c: In function `ide_raw_build_sglist':
> ide-dma.c:269: structure has no member named `address'
> ide-dma.c:276: structure has no member named `address'
> make[3]: *** [ide-dma.o] Error 1
> make[3]: Leaving directory `/usr/src/linux-2.5.4/drivers/ide'
> make[2]: *** [first_rule] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.5.4/drivers/ide'
> make[1]: *** [_subdir_ide] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.5.4/drivers'
> make: *** [_dir_drivers] Error 2
According to another poster on lkml, the attached patch from Jens is
needed.
--
Jeff Garzik | "I went through my candy like hot oatmeal
Building 1024 | through an internally-buttered weasel."
MandrakeSoft | - goats.com
[-- Attachment #2: ide-dma.patch --]
[-- Type: text/plain, Size: 779 bytes --]
diff -Nru a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
--- a/drivers/ide/ide-dma.c Thu Feb 7 09:44:56 2002
+++ b/drivers/ide/ide-dma.c Thu Feb 7 09:44:56 2002
@@ -266,14 +266,16 @@
#if 1
if (sector_count > 128) {
memset(&sg[nents], 0, sizeof(*sg));
- sg[nents].address = virt_addr;
+ sg[nents].page = virt_to_page(virt_addr);
+ sg[nents].offset = (unsigned long) virt_addr & ~PAGE_MASK;
sg[nents].length = 128 * SECTOR_SIZE;
nents++;
virt_addr = virt_addr + (128 * SECTOR_SIZE);
sector_count -= 128;
}
memset(&sg[nents], 0, sizeof(*sg));
- sg[nents].address = virt_addr;
+ sg[nents].page = virt_to_page(virt_addr);
+ sg[nents].offset = (unsigned long) virt_addr & ~PAGE_MASK;
sg[nents].length = sector_count * SECTOR_SIZE;
nents++;
#endif
next prev parent reply other threads:[~2002-02-08 3:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-08 3:17 linux 2.5.4-pre3 and IDE changes John Weber
2002-02-08 3:29 ` flaniganr
2002-02-08 3:47 ` Jeff Garzik [this message]
2002-02-08 3:54 ` Andre Hedrick
2002-02-08 6:09 ` Skip Ford
2002-02-08 7:21 ` Vojtech Pavlik
2002-02-08 3:56 ` Skip Ford
2002-02-08 4:10 ` Dave Jones
2002-02-08 4:52 ` Anton Altaparmakov
[not found] <fa.c2cp66v.1dgedgb@ifi.uio.no>
[not found] ` <fa.10ej114v.oj62bd@ifi.uio.no>
2002-02-08 4:05 ` John Weber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C634A63.75CAD844@mandrakesoft.com \
--to=jgarzik@mandrakesoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=weber@nyc.rr.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.