mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Non-PCI build broken on sparc64, maybe others
@ 2004-02-17  4:50 David Dillow
  2004-02-17  5:32 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: David Dillow @ 2004-02-17  4:50 UTC (permalink / raw)
  To: sparclinux; +Cc: linux-kernel

I believe this changeset in Linus's tree:
======== ChangeSet 1.1500.12.4 ========
D 1.1500.12.4 04/02/02 11:04:46-08:00 dsaxena@plexity.net 35779 35702 5/0/1
P ChangeSet
C [PATCH] PCI: Replace pci_pool with generic dma_pool
C
C - Move drivers/pci/pool.c to drivers/base/pool.c
C - Initialize struct device.dma_pools in device_initialize()
C - Remove initialization of struct pci_dev.pools from pci_setup_device()
------------------------------------------------

with key: dsaxena@plexity.net|ChangeSet|20040202190446|51997

breaks builds that do not include PCI support.

If I set CONFIG_PCI=y, it builds. If not, I get:
  LD      init/built-in.o
  LD      .tmp_vmlinux1
drivers/built-in.o(.text+0x2056c): In function `pool_alloc_page':
: undefined reference to `dma_alloc_coherent'
drivers/built-in.o(.text+0x2060c): In function `pool_free_page':
: undefined reference to `dma_free_coherent'
make: *** [.tmp_vmlinux1] Error 1

while building BK-latest for my Ultra1.

Just a heads up,
Dave

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Non-PCI build broken on sparc64, maybe others
  2004-02-17  4:50 Non-PCI build broken on sparc64, maybe others David Dillow
@ 2004-02-17  5:32 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-02-17  5:32 UTC (permalink / raw)
  To: David Dillow; +Cc: sparclinux, linux-kernel

On 16 Feb 2004 23:50:03 -0500
David Dillow <dave@thedillows.org> wrote:

> I believe this changeset in Linus's tree:
 ...
> breaks builds that do not include PCI support.

Indeed, thanks for catching this David.  This patch should fix it
and I'll be pushing this to Linus.

Thanks again.

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/02/16 21:28:29-08:00 davem@nuts.davemloft.net 
#   [SPARC64]: Fix non-PCI build, reported by David Dillow.
# 
# include/asm-sparc64/dma-mapping.h
#   2004/02/16 21:25:35-08:00 davem@nuts.davemloft.net +21 -1
#   [SPARC64]: Fix non-PCI build, reported by David Dillow.
# 
diff -Nru a/include/asm-sparc64/dma-mapping.h b/include/asm-sparc64/dma-mapping.h
--- a/include/asm-sparc64/dma-mapping.h	Mon Feb 16 21:28:51 2004
+++ b/include/asm-sparc64/dma-mapping.h	Mon Feb 16 21:28:51 2004
@@ -1,5 +1,25 @@
+#ifndef _ASM_SPARC64_DMA_MAPPING_H
+#define _ASM_SPARC64_DMA_MAPPING_H
+
 #include <linux/config.h>
 
 #ifdef CONFIG_PCI
 #include <asm-generic/dma-mapping.h>
-#endif
+#else
+
+static inline void *dma_alloc_coherent(struct device *dev, size_t size,
+			 dma_addr_t *dma_handle, int flag)
+{
+	BUG();
+	return NULL;
+}
+
+static inline void dma_free_coherent(struct device *dev, size_t size,
+		       void *vaddr, dma_addr_t dma_handle)
+{
+	BUG();
+}
+
+#endif /* PCI */
+
+#endif /* _ASM_SPARC64_DMA_MAPPING_H */

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-17  5:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-17  4:50 Non-PCI build broken on sparc64, maybe others David Dillow
2004-02-17  5:32 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®