* arch/sparc64/kernel/iommu_common.c:237: error: implicit declaration of function 'next_sg'
@ 2007-10-24 21:11 Josip Rodin
2007-10-24 22:28 ` arch/sparc64/kernel/iommu_common.c:237: error: implicit David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Josip Rodin @ 2007-10-24 21:11 UTC (permalink / raw)
To: sparclinux
Hi,
Just tried 2.6.24-rc1... but:
arch/sparc64/kernel/iommu_common.c: In function 'prepare_sg':
arch/sparc64/kernel/iommu_common.c:237: error: implicit declaration of function 'next_sg'
cc1: warnings being treated as errors
arch/sparc64/kernel/iommu_common.c:237: warning: assignment makes pointer from integer without a cast
make[1]: *** [arch/sparc64/kernel/iommu_common.o] Error 1
The error looks like a simple typo - should this be sg_next(), like
elsewhere in the file? It compiles the file when I replace that.
--
2. That which causes joy or happiness.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: arch/sparc64/kernel/iommu_common.c:237: error: implicit
2007-10-24 21:11 arch/sparc64/kernel/iommu_common.c:237: error: implicit declaration of function 'next_sg' Josip Rodin
@ 2007-10-24 22:28 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-10-24 22:28 UTC (permalink / raw)
To: sparclinux
From: Josip Rodin <joy@entuzijast.net>
Date: Wed, 24 Oct 2007 23:11:02 +0200
> Hi,
>
> Just tried 2.6.24-rc1... but:
>
> arch/sparc64/kernel/iommu_common.c: In function 'prepare_sg':
> arch/sparc64/kernel/iommu_common.c:237: error: implicit declaration of function 'next_sg'
> cc1: warnings being treated as errors
> arch/sparc64/kernel/iommu_common.c:237: warning: assignment makes pointer from integer without a cast
> make[1]: *** [arch/sparc64/kernel/iommu_common.o] Error 1
>
> The error looks like a simple typo - should this be sg_next(), like
> elsewhere in the file? It compiles the file when I replace that.
Yep, I tossed that fix to Jens last night, it should show up
in Linus's tree soon:
diff --git a/arch/sparc64/kernel/iommu_common.c b/arch/sparc64/kernel/iommu_common.c
index b70324e..efd5dff 100644
--- a/arch/sparc64/kernel/iommu_common.c
+++ b/arch/sparc64/kernel/iommu_common.c
@@ -234,7 +234,7 @@ unsigned long prepare_sg(struct scatterlist *sg, int nents)
dma_sg->dma_length = dent_len;
if (dma_sg != sg) {
- dma_sg = next_sg(dma_sg);
+ dma_sg = sg_next(dma_sg);
dma_sg->dma_length = 0;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-24 22:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 21:11 arch/sparc64/kernel/iommu_common.c:237: error: implicit declaration of function 'next_sg' Josip Rodin
2007-10-24 22:28 ` arch/sparc64/kernel/iommu_common.c:237: error: implicit David Miller
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.