Skip to content

Commit

Permalink
[POWERPC] PS3: Fix more sparse warnings
Browse files Browse the repository at this point in the history
Fix some PS3 build warnings reported by `make C=1'.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Geert Uytterhoeven authored and Paul Mackerras committed Jun 28, 2007
1 parent ae639ac commit 32f44a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arch/powerpc/platforms/ps3/mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void ps3_mm_vas_destroy(void)
* @size is rounded down to a multiple of the vas large page size.
*/

int ps3_mm_region_create(struct mem_region *r, unsigned long size)
static int ps3_mm_region_create(struct mem_region *r, unsigned long size)
{
int result;
unsigned long muid;
Expand Down Expand Up @@ -280,7 +280,7 @@ int ps3_mm_region_create(struct mem_region *r, unsigned long size)
* @r: pointer to struct mem_region
*/

void ps3_mm_region_destroy(struct mem_region *r)
static void ps3_mm_region_destroy(struct mem_region *r)
{
int result;

Expand Down Expand Up @@ -893,7 +893,7 @@ static int dma_ioc0_map_area(struct ps3_dma_region *r, unsigned long virt_addr,
* This is the common dma unmap routine.
*/

int dma_sb_unmap_area(struct ps3_dma_region *r, unsigned long bus_addr,
static int dma_sb_unmap_area(struct ps3_dma_region *r, unsigned long bus_addr,
unsigned long len)
{
unsigned long flags;
Expand Down Expand Up @@ -929,8 +929,8 @@ int dma_sb_unmap_area(struct ps3_dma_region *r, unsigned long bus_addr,
return 0;
}

int dma_ioc0_unmap_area(struct ps3_dma_region *r, unsigned long bus_addr,
unsigned long len)
static int dma_ioc0_unmap_area(struct ps3_dma_region *r,
unsigned long bus_addr, unsigned long len)
{
unsigned long flags;
struct dma_chunk *c;
Expand Down

0 comments on commit 32f44a1

Please sign in to comment.