[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-24
Subject:    Alpha: fix recursive inlining failure in pci_iommu.c
From:       Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date:       2006-02-01 5:00:04
Message-ID: 200602010500.k11504Tq022389 () hera ! kernel ! org
[Download RAW message or body]

tree 4a7f3fa924a52204541bdb51ca8a5bb94620d4c4
parent 7e2a27da75b66ada5dff2cb66afade2e6eb3ddc3
author Marcelo Tosatti <marcelo@dmt.cnet> Wed, 01 Feb 2006 04:26:40 -0600
committer Marcelo Tosatti <marcelo@dmt.cnet> Wed, 01 Feb 2006 04:26:40 -0600

Alpha: fix recursive inlining failure in pci_iommu.c

From: Solar Designer <solar@openwall.com>

2.4.32 fails to build on my Alpha like this:

make[1]: Entering directory
`/stuff/owl-2006-1/usr/src/linux-2.4.32-ow1/arch/alpha/kernel'
gcc -D__KERNEL__ -I/stuff/owl-2006-1/usr/src/linux-2.4.32-ow1/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8 -mcpu=pca56
-Wa,-mev6   -nostdinc -iwithprefix include -DKBUILD_BASENAME=pci_iommu
-c -o pci_iommu.o pci_iommu.c
pci_iommu.c: In function `sg_fill':
pci_iommu.c:510: sorry, unimplemented: inlining failed in call to
'sg_fill': recursive inlining
pci_iommu.c:558: sorry, unimplemented: called from here
make[1]: *** [pci_iommu.o] Error 1

This is with gcc 3.4.5.  Simply removing the "inline" from the
declaration
of sg_fill() makes it build and work.

 arch/alpha/kernel/pci_iommu.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/alpha/kernel/pci_iommu.c b/arch/alpha/kernel/pci_iommu.c
index dcbe60e..4d960b8 100644
--- a/arch/alpha/kernel/pci_iommu.c
+++ b/arch/alpha/kernel/pci_iommu.c
@@ -503,7 +503,7 @@ sg_classify(struct scatterlist *sg, stru
 /* Given a scatterlist leader, choose an allocation method and fill
    in the blanks.  */
 
-static inline int
+static int
 sg_fill(struct scatterlist *leader, struct scatterlist *end,
 	struct scatterlist *out, struct pci_iommu_arena *arena,
 	dma_addr_t max_dma, int dac_allowed)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-24" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic