Patchwork [01/13] powerpc/ps3: set_dabr takes an unsigned long

login
register
mail settings
Submitter Stephen Rothwell
Date Jan. 14, 2009, 5:54 a.m.
Message ID <20090114165450.ebbc11a7.sfr@canb.auug.org.au>
Download mbox | patch
Permalink /patch/18359/
State Accepted
Commit c52fe6b620e9c7a52b296ec478bd24b91b4e7634
Headers show

Comments

Stephen Rothwell - Jan. 14, 2009, 5:54 a.m.
Also silences this warning:

arch/powerpc/platforms/ps3/setup.c:275: warning: initialization from incompatible pointer type

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 arch/powerpc/platforms/ps3/setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Geoff Levand - Jan. 14, 2009, 10:52 p.m.
Hi Stephen,

Thanks for working through it and making these fixups.  I
tested the set applied onto Ben's powerpc tree and they
seem to work OK (with ps3_defconfig).

Stephen Rothwell wrote:
> Also silences this warning:
> 
> arch/powerpc/platforms/ps3/setup.c:275: warning: initialization from incompatible pointer type
> 
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
>  arch/powerpc/platforms/ps3/setup.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Acked-by: Geoff Levand <geoffrey.levand@am.sony.com>

Patch

diff --git a/arch/powerpc/platforms/ps3/setup.c b/arch/powerpc/platforms/ps3/setup.c
index 35f3e85..3331ccb 100644
--- a/arch/powerpc/platforms/ps3/setup.c
+++ b/arch/powerpc/platforms/ps3/setup.c
@@ -186,7 +186,7 @@  early_param("ps3flash", early_parse_ps3flash);
 #define prealloc_ps3flash_bounce_buffer()	do { } while (0)
 #endif
 
-static int ps3_set_dabr(u64 dabr)
+static int ps3_set_dabr(unsigned long dabr)
 {
 	enum {DABR_USER = 1, DABR_KERNEL = 2,};