diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2007-06-15 18:07:23 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-06-28 05:18:05 -0400 |
commit | 32f44a12e0674499c4db09b08da0dfa576a91d84 (patch) | |
tree | 2c646f6fc6d02a81a05365566a5b1e6f5abbbc46 /arch/powerpc | |
parent | ae639ac97917929ae4ed752b1abf2adc70dd801c (diff) |
[POWERPC] PS3: Fix more sparse warnings
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/ps3/mm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/ps3/mm.c b/arch/powerpc/platforms/ps3/mm.c index c49c5dcb9485..56d47a7a022c 100644 --- a/arch/powerpc/platforms/ps3/mm.c +++ b/arch/powerpc/platforms/ps3/mm.c | |||
@@ -239,7 +239,7 @@ void ps3_mm_vas_destroy(void) | |||
239 | * @size is rounded down to a multiple of the vas large page size. | 239 | * @size is rounded down to a multiple of the vas large page size. |
240 | */ | 240 | */ |
241 | 241 | ||
242 | int ps3_mm_region_create(struct mem_region *r, unsigned long size) | 242 | static int ps3_mm_region_create(struct mem_region *r, unsigned long size) |
243 | { | 243 | { |
244 | int result; | 244 | int result; |
245 | unsigned long muid; | 245 | unsigned long muid; |
@@ -280,7 +280,7 @@ zero_region: | |||
280 | * @r: pointer to struct mem_region | 280 | * @r: pointer to struct mem_region |
281 | */ | 281 | */ |
282 | 282 | ||
283 | void ps3_mm_region_destroy(struct mem_region *r) | 283 | static void ps3_mm_region_destroy(struct mem_region *r) |
284 | { | 284 | { |
285 | int result; | 285 | int result; |
286 | 286 | ||
@@ -893,7 +893,7 @@ static int dma_ioc0_map_area(struct ps3_dma_region *r, unsigned long virt_addr, | |||
893 | * This is the common dma unmap routine. | 893 | * This is the common dma unmap routine. |
894 | */ | 894 | */ |
895 | 895 | ||
896 | int dma_sb_unmap_area(struct ps3_dma_region *r, unsigned long bus_addr, | 896 | static int dma_sb_unmap_area(struct ps3_dma_region *r, unsigned long bus_addr, |
897 | unsigned long len) | 897 | unsigned long len) |
898 | { | 898 | { |
899 | unsigned long flags; | 899 | unsigned long flags; |
@@ -929,8 +929,8 @@ int dma_sb_unmap_area(struct ps3_dma_region *r, unsigned long bus_addr, | |||
929 | return 0; | 929 | return 0; |
930 | } | 930 | } |
931 | 931 | ||
932 | int dma_ioc0_unmap_area(struct ps3_dma_region *r, unsigned long bus_addr, | 932 | static int dma_ioc0_unmap_area(struct ps3_dma_region *r, |
933 | unsigned long len) | 933 | unsigned long bus_addr, unsigned long len) |
934 | { | 934 | { |
935 | unsigned long flags; | 935 | unsigned long flags; |
936 | struct dma_chunk *c; | 936 | struct dma_chunk *c; |