From: Pete Zaitcev <zaitcev@redhat.com>
To: Carlos E Gorges <carlos@techlinux.com.br>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] 2.5.40 - DMA-mapping && misc
Date: Fri, 4 Oct 2002 15:54:46 -0400 [thread overview]
Message-ID: <200210041954.g94Jsku26979@devserv.devel.redhat.com> (raw)
In-Reply-To: <mailman.1033712580.28994.linux-kernel2news@redhat.com>
> --- linux-2.5.40/drivers/scsi/53c7,8xx.c Tue Oct 1 04:06:15 2002
> +++ linux-2.5/drivers/scsi/53c7,8xx.c Fri Oct 4 02:53:48 2002
> @@ -62,8 +62,6 @@
> * the fourth byte from 50 to 25.
> */
>
> -#error Please convert me to Documentation/DMA-mapping.txt
> -
> #include <linux/config.h>
>
> #ifdef CONFIG_SCSI_NCR53C7xx_sync
> @@ -3788,7 +3786,9 @@
> for (i = 0; cmd->use_sg ? (i < cmd->use_sg) : !i; cmd_datain += 4,
> cmd_dataout += 4, ++i) {
> u32 buf = cmd->use_sg ?
> - virt_to_bus(((struct scatterlist *)cmd->buffer)[i].address) :
> + virt_to_bus(
> + page_address(((struct scatterlist *)cmd->buffer)[i].page) +
> + ((struct scatterlist *)cmd->buffer)[i].offset ) :
> virt_to_bus(cmd->request_buffer);
> u32 count = cmd->use_sg ?
> ((struct scatterlist *)cmd->buffer)[i].length :
These parts contradict. Remove virt_to_bus, then you can take the
#error out, but not before.
-- Pete
next parent reply other threads:[~2002-10-04 19:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1033712580.28994.linux-kernel2news@redhat.com>
2002-10-04 19:54 ` Pete Zaitcev [this message]
2002-10-04 17:59 Matthew Wilcox
-- strict thread matches above, loose matches on Subject: below --
2002-10-04 6:19 Carlos E Gorges
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=200210041954.g94Jsku26979@devserv.devel.redhat.com \
--to=zaitcev@redhat.com \
--cc=carlos@techlinux.com.br \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®