[Cbe-oss-dev] [PATCH 5/9] Pass the ctx, not the ctx_info to spufs_ctx_note_size()

Michael Ellerman michael at ellerman.id.au
Fri Aug 17 17:19:12 EST 2007


Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
---
 arch/powerpc/platforms/cell/spufs/coredump.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/powerpc/platforms/cell/spufs/coredump.c b/arch/powerpc/platforms/cell/spufs/coredump.c
index d1d9148..631555b 100644
--- a/arch/powerpc/platforms/cell/spufs/coredump.c
+++ b/arch/powerpc/platforms/cell/spufs/coredump.c
@@ -77,7 +77,7 @@ static u64 ctx_ls_size(struct spu_context *ctx)
 	return ctx->csa.priv2.spu_lslr_RW + 1;
 }
 
-static int spufs_ctx_note_size(struct spufs_ctx_info *ctx_info, int dfd)
+static int spufs_ctx_note_size(struct spu_context *ctx, int dfd)
 {
 	int i, sz, total = 0;
 	char *name;
@@ -92,7 +92,7 @@ static int spufs_ctx_note_size(struct spufs_ctx_info *ctx_info, int dfd)
 		total += sizeof(struct elf_note);
 		total += roundup(strlen(fullname) + 1, 4);
 		if (!strcmp(name, "mem"))
-			total += roundup(ctx_ls_size(ctx_info->ctx), 4);
+			total += roundup(ctx_ls_size(ctx), 4);
 		else
 			total += roundup(sz, 4);
 	}
@@ -112,7 +112,7 @@ static int spufs_add_one_context(struct spu_context *ctx, int dfd)
 	ctx_info->dfd = dfd;
 	ctx_info->ctx = ctx;
 
-	size = spufs_ctx_note_size(ctx_info, dfd);
+	size = spufs_ctx_note_size(ctx, dfd);
 	list_add(&ctx_info->list, &ctx_info_list);
 	return size;
 }
-- 
1.5.1.3.g7a33b




More information about the cbe-oss-dev mailing list