* PPC compile fixes for 2.6.5-rc1
@ 2004-03-16 22:30 Colin Leroy
0 siblings, 0 replies; only message in thread
From: Colin Leroy @ 2004-03-16 22:30 UTC (permalink / raw)
To: linuxppc-dev; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 236 bytes --]
Hi,
I had trouble compiling 2.6.5-rc1 on ppc32. For information and
people interested in testing it, here are the changes I needed to
make it work.
No doubt these little glitches will be ironed out for 2.6.5, anyway :)
hth,
--
Colin
[-- Attachment #2: 2.6.5-rc1.diff --]
[-- Type: text/plain, Size: 1839 bytes --]
--- include/sound/pcm.h.orig 2004-03-16 23:24:29.564616688 +0100
+++ include/sound/pcm.h 2004-03-16 23:20:02.236256776 +0100
@@ -904,6 +904,8 @@
* Memory
*/
+#define snd_pcm_dma_flags(x) ((void *)(unsigned long)(x))
+
int snd_pcm_lib_preallocate_free(snd_pcm_substream_t *substream);
int snd_pcm_lib_preallocate_free_for_all(snd_pcm_t *pcm);
int snd_pcm_lib_preallocate_pages(snd_pcm_substream_t *substream,
--- arch/ppc/syslib/indirect_pci.c.orig 2004-03-16 23:25:49.905403032 +0100
+++ arch/ppc/syslib/indirect_pci.c 2004-03-16 13:23:20.000000000 +0100
@@ -44,8 +44,8 @@
cfg_type = 1;
PCI_CFG_OUT(hose->cfg_addr,
- (0x80000000 | ((dev->bus->number - hose->bus_offset) << 16)
- | (dev->devfn << 8) | ((offset & 0xfc) | cfg_type)));
+ (0x80000000 | ((bus->number - hose->bus_offset) << 16)
+ | (devfn << 8) | ((offset & 0xfc) | cfg_type)));
/*
* Note: the caller has already checked that offset is
@@ -83,8 +83,8 @@
cfg_type = 1;
PCI_CFG_OUT(hose->cfg_addr,
- (0x80000000 | ((dev->bus->number - hose->bus_offset) << 16)
- | (dev->devfn << 8) | ((offset & 0xfc) | cfg_type)));
+ (0x80000000 | ((bus->number - hose->bus_offset) << 16)
+ | (devfn << 8) | ((offset & 0xfc) | cfg_type)));
/*
* Note: the caller has already checked that offset is
--- include/asm-ppc/pci.h.orig 2004-03-16 23:27:41.291469776 +0100
+++ include/asm-ppc/pci.h 2004-03-16 23:27:28.587401088 +0100
@@ -10,6 +10,11 @@
#include <asm/io.h>
#include <asm/pci-bridge.h>
+#define consistent_sync_for_cpu consistent_sync
+#define consistent_sync_for_device consistent_sync
+#define consistent_sync_page_for_cpu consistent_sync_page
+#define consistent_sync_page_for_device consistent_sync_page
+
struct pci_dev;
/* Values for the `which' argument to sys_pciconfig_iobase syscall. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-16 22:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-16 22:30 PPC compile fixes for 2.6.5-rc1 Colin Leroy
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®