powerpc/ps3: The lv1_ routines have u64 parameters
We just fix up the reference parameters as the others are dealt with by arithmetic promotion rules and don't cause warnings. This removes warnings like this: arch/powerpc/platforms/ps3/interrupt.c:327: warning: passing argument 1 of 'lv1_construct_event_receive_port' from incompatible pointer type Also, these: drivers/ps3/ps3-vuart.c:462: warning: passing argument 4 of 'ps3_vuart_raw_read' from incompatible pointer type drivers/ps3/ps3-vuart.c:592: warning: passing argument 4 of 'ps3_vuart_raw_read' from incompatible pointer type Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Acked-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
494fd07a88
commit
b17b3df161
@@ -149,7 +149,7 @@ EXPORT_SYMBOL_GPL(ps3_get_spe_id);
|
||||
|
||||
static unsigned long get_vas_id(void)
|
||||
{
|
||||
unsigned long id;
|
||||
u64 id;
|
||||
|
||||
lv1_get_logical_ppe_id(&id);
|
||||
lv1_get_virtual_address_space_id_of_ppe(id, &id);
|
||||
@@ -160,14 +160,18 @@ static unsigned long get_vas_id(void)
|
||||
static int __init construct_spu(struct spu *spu)
|
||||
{
|
||||
int result;
|
||||
unsigned long unused;
|
||||
u64 unused;
|
||||
u64 problem_phys;
|
||||
u64 local_store_phys;
|
||||
|
||||
result = lv1_construct_logical_spe(PAGE_SHIFT, PAGE_SHIFT, PAGE_SHIFT,
|
||||
PAGE_SHIFT, PAGE_SHIFT, get_vas_id(), SPE_TYPE_LOGICAL,
|
||||
&spu_pdata(spu)->priv2_addr, &spu->problem_phys,
|
||||
&spu->local_store_phys, &unused,
|
||||
&spu_pdata(spu)->priv2_addr, &problem_phys,
|
||||
&local_store_phys, &unused,
|
||||
&spu_pdata(spu)->shadow_addr,
|
||||
&spu_pdata(spu)->spe_id);
|
||||
spu->problem_phys = problem_phys;
|
||||
spu->local_store_phys = local_store_phys;
|
||||
|
||||
if (result) {
|
||||
pr_debug("%s:%d: lv1_construct_logical_spe failed: %s\n",
|
||||
|
Reference in New Issue
Block a user