From: maximilian attems <janitor@sternwelten.at>
To: linux-scsi@vger.kernel.org
Subject: [patch-kj] remove old ifdef'd code from
Date: Mon, 21 Jun 2004 20:03:12 +0200 [thread overview]
Message-ID: <20040621180312.GL1545@sputnik.stro.at> (raw)
From: Domen Puncer <domen@coderock.org>
Patches to remove some old ifdefs.
kill compat cruft like #define ahd_pci_set_dma_mask pci_set_dma_mask
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
---
linux-2.6.7-max/drivers/scsi/aic7xxx/aic79xx_core.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff -puN drivers/scsi/aic7xxx/aic79xx_core.c~remove-old-ifdefs-aic79xx_core drivers/scsi/aic7xxx/aic79xx_core.c
--- linux-2.6.7/drivers/scsi/aic7xxx/aic79xx_core.c~remove-old-ifdefs-aic79xx_core 2004-06-18 09:13:42.000000000 +0200
+++ linux-2.6.7-max/drivers/scsi/aic7xxx/aic79xx_core.c 2004-06-18 09:13:42.000000000 +0200
@@ -5493,9 +5493,9 @@ ahd_probe_scbs(struct ahd_softc *ahd) {
static void
ahd_dmamap_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error)
{
- bus_addr_t *baddr;
+ dma_addr_t *baddr;
- baddr = (bus_addr_t *)arg;
+ baddr = (dma_addr_t *)arg;
*baddr = segs->ds_addr;
}
@@ -5926,9 +5926,9 @@ ahd_alloc_scbs(struct ahd_softc *ahd)
struct map_node *sense_map;
uint8_t *segs;
uint8_t *sense_data;
- bus_addr_t hscb_busaddr;
- bus_addr_t sg_busaddr;
- bus_addr_t sense_busaddr;
+ dma_addr_t hscb_busaddr;
+ dma_addr_t sg_busaddr;
+ dma_addr_t sense_busaddr;
int newcount;
int i;
@@ -6161,7 +6161,7 @@ ahd_init(struct ahd_softc *ahd)
{
uint8_t *base_vaddr;
uint8_t *next_vaddr;
- bus_addr_t next_baddr;
+ dma_addr_t next_baddr;
size_t driver_data_size;
int i;
int error;
@@ -6205,7 +6205,7 @@ ahd_init(struct ahd_softc *ahd)
if (ahd_dma_tag_create(ahd, ahd->parent_dmat, /*alignment*/1,
/*boundary*/BUS_SPACE_MAXADDR_32BIT + 1,
/*lowaddr*/ahd->flags & AHD_39BIT_ADDRESSING
- ? (bus_addr_t)0x7FFFFFFFFFULL
+ ? (dma_addr_t)0x7FFFFFFFFFULL
: BUS_SPACE_MAXADDR_32BIT,
/*highaddr*/BUS_SPACE_MAXADDR,
/*filter*/NULL, /*filterarg*/NULL,
_
next reply other threads:[~2004-06-21 18:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-21 18:03 maximilian attems [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-06-21 18:29 [patch-kj] remove old ifdef'd code from maximilian attems
2004-06-21 18:31 ` Christoph Hellwig
2004-06-22 8:44 ` maximilian attems
2004-06-22 8:47 ` Christoph Hellwig
2004-06-22 14:19 ` maximilian attems
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=20040621180312.GL1545@sputnik.stro.at \
--to=janitor@sternwelten.at \
--cc=linux-scsi@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 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.