From: Miguel Angel Flores <maf@sombragris.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] aic7xxx driver warning
Date: Fri, 10 Dec 2004 23:15:56 +0100 [thread overview]
Message-ID: <41BA201C.9090103@sombragris.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 235 bytes --]
Hi all,
These are two possible patches for the 2.6.10rc3. The patches correct a
compiler warning when CONFIG_HIGHMEM64G is not defined.
Both patches works well. "Opt1" is the Alan Cox way and "Opt2" is the
MaF way :-)
Cheers,
MaF
[-- Attachment #2: aic7xxx.opt1.patch --]
[-- Type: text/x-patch, Size: 566 bytes --]
diff -r -u linux-2.6.10rc3/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c linux-2.6.10rc3-maf/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
--- linux-2.6.10rc3/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c 2004-12-05 20:02:40.000000000 +0100
+++ linux-2.6.10rc3-maf/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c 2004-12-10 21:21:57.000000000 +0100
@@ -226,7 +226,7 @@
}
pci_set_master(pdev);
- mask_39bit = 0x7FFFFFFFFFULL;
+ mask_39bit = (dma_addr_t)0x7FFFFFFFFFULL;
if (sizeof(dma_addr_t) > 4
&& ahc_linux_get_memsize() > 0x80000000
&& pci_set_dma_mask(pdev, mask_39bit) == 0) {
[-- Attachment #3: aic7xxx.opt2.patch --]
[-- Type: text/x-patch, Size: 668 bytes --]
diff -r -u linux-2.6.10rc3/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c linux-2.6.10rc3-maf/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
--- linux-2.6.10rc3/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c 2004-12-05 20:02:40.000000000 +0100
+++ linux-2.6.10rc3-maf/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c 2004-12-10 21:31:51.000000000 +0100
@@ -226,10 +226,10 @@
}
pci_set_master(pdev);
- mask_39bit = 0x7FFFFFFFFFULL;
if (sizeof(dma_addr_t) > 4
&& ahc_linux_get_memsize() > 0x80000000
&& pci_set_dma_mask(pdev, mask_39bit) == 0) {
+ mask_39bit = (dma_addr_t)0x7FFFFFFFFFULL;
ahc->flags |= AHC_39BIT_ADDRESSING;
ahc->platform_data->hw_dma_mask = mask_39bit;
} else {
next reply other threads:[~2004-12-10 22:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-10 22:15 Miguel Angel Flores [this message]
2004-12-10 22:24 ` [PATCH] aic7xxx driver warning Dave Jones
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=41BA201C.9090103@sombragris.com \
--to=maf@sombragris.com \
--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