All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: sparclinux@vger.kernel.org
Subject: Re: arch/sparc64/kernel/iommu_common.c:237: error: implicit
Date: Wed, 24 Oct 2007 22:28:45 +0000	[thread overview]
Message-ID: <20071024.152845.07025481.davem@davemloft.net> (raw)
In-Reply-To: <20071024211102.GA5842@keid.carnet.hr>

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;
 	}
 

      reply	other threads:[~2007-10-24 22:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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=20071024.152845.07025481.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=sparclinux@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.