From: Colin Leroy <colin@colino.net>
To: linuxppc-dev@lists.linuxppc.org
Cc: linux-kernel@vger.kernel.org
Subject: PPC compile fixes for 2.6.5-rc1
Date: Tue, 16 Mar 2004 23:30:32 +0100 [thread overview]
Message-ID: <20040316233032.63a6e26f@jack.colino.net> (raw)
[-- 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. */
reply other threads:[~2004-03-16 22:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20040316233032.63a6e26f@jack.colino.net \
--to=colin@colino.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.linuxppc.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 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®