From: Andrew Morton <akpm@osdl.org>
To: "Carlos Martín" <carlosmn@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.15-rc3-mm1
Date: Wed, 30 Nov 2005 12:39:20 -0800 [thread overview]
Message-ID: <20051130123920.35193b6a.akpm@osdl.org> (raw)
In-Reply-To: <fe726f4e0511300932l2ee9eabdg@mail.gmail.com>
Carlos Martín <carlosmn@gmail.com> wrote:
>
> I get this when I try to compile on a x86_64.
>
> carlos@kiopa:~/kernel/linux-2.6.15-rc2-mm1$
> CROSS_COMPILE=/cross-tools/bin/x86_64-gnu-linux- make bzImage modules
> CHK include/linux/version.h
> CHK include/linux/compile.h
> CHK usr/initramfs_list
> LD arch/x86_64/kernel/bootflag.o
> CC arch/x86_64/kernel/pci-dma.o
> arch/x86_64/kernel/pci-dma.c:29: error: conflicting types for 'dma_map_sg'
> include/asm/dma-mapping.h:149: error: previous declaration of
> 'dma_map_sg' was here
> arch/x86_64/kernel/pci-dma.c:50: error: conflicting types for 'dma_unmap_sg'
> include/asm/dma-mapping.h:151: error: previous declaration of
> 'dma_unmap_sg' was here
--- devel/arch/x86_64/kernel/pci-dma.c~move-swiotlb-header-file-into-common-code-fix-2 2005-11-30 12:38:52.000000000 -0800
+++ devel-akpm/arch/x86_64/kernel/pci-dma.c 2005-11-30 12:38:52.000000000 -0800
@@ -25,11 +25,11 @@
* the same here.
*/
int dma_map_sg(struct device *hwdev, struct scatterlist *sg,
- int nents, int direction)
+ int nents, enum dma_data_direction dir)
{
int i;
- BUG_ON(direction == DMA_NONE);
+ BUG_ON(dir == DMA_NONE);
for (i = 0; i < nents; i++ ) {
struct scatterlist *s = &sg[i];
BUG_ON(!s->page);
@@ -38,7 +38,6 @@ int dma_map_sg(struct device *hwdev, str
}
return nents;
}
-
EXPORT_SYMBOL(dma_map_sg);
/* Unmap a set of streaming mode DMA translations.
@@ -46,7 +45,7 @@ EXPORT_SYMBOL(dma_map_sg);
* pci_unmap_single() above.
*/
void dma_unmap_sg(struct device *dev, struct scatterlist *sg,
- int nents, int dir)
+ int nents, enum dma_data_direction dir)
{
int i;
for (i = 0; i < nents; i++) {
@@ -56,5 +55,4 @@ void dma_unmap_sg(struct device *dev, st
dma_unmap_single(dev, s->dma_address, s->dma_length, dir);
}
}
-
EXPORT_SYMBOL(dma_unmap_sg);
_
next prev parent reply other threads:[~2005-11-30 20:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-30 4:31 2.6.15-rc3-mm1 Andrew Morton
2005-11-30 16:23 ` 2.6.15-rc3-mm1 Christoph Hellwig
2005-11-30 20:27 ` 2.6.15-rc3-mm1 Andrew Morton
2005-11-30 23:18 ` 2.6.15-rc3-mm1 Benjamin Herrenschmidt
2005-12-01 11:31 ` 2.6.15-rc3-mm1 Christoph Hellwig
2005-12-01 21:10 ` 2.6.15-rc3-mm1 Benjamin Herrenschmidt
2005-12-01 21:20 ` 2.6.15-rc3-mm1 Christoph Hellwig
2005-11-30 17:32 ` 2.6.15-rc3-mm1 Carlos Martín
2005-11-30 20:39 ` Andrew Morton [this message]
2005-11-30 23:24 ` 2.6.15-rc3-mm1 Carlos Martín
2005-11-30 17:34 ` [PATCH 0/2] 2.6.15rc3mm1 ppc64 compile problems Andy Whitcroft
2005-11-30 17:34 ` [PATCH 1/2] powerpc powermac adb fix dependancy on btext_drawchar Andy Whitcroft
2005-11-30 17:35 ` [PATCH 2/2] powerpc powermac adb fix udbg_adb_use_btext warning Andy Whitcroft
2005-12-01 22:59 2.6.15-rc3-mm1 Kilau, Scott
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=20051130123920.35193b6a.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=carlosmn@gmail.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
Powered by JetHome