summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-10-08 11:05:01 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-11-09 00:16:27 -0500
commit22a8cb8248ba5d340307ba72432253b1dbdb5cf7 (patch)
treeddb88cce781598c909769c4d92f1e38d2716cd52 /arch/powerpc
parent7b1f4020d0d16a17b9c48570bdb7b4ad99be3553 (diff)
new helper: dump_align()
dump_skip to given alignment... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/cell/spufs/coredump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/coredump.c b/arch/powerpc/platforms/cell/spufs/coredump.c
index 1aaaa586fa50..be6212ddbf06 100644
--- a/arch/powerpc/platforms/cell/spufs/coredump.c
+++ b/arch/powerpc/platforms/cell/spufs/coredump.c
@@ -156,7 +156,7 @@ static int spufs_arch_write_note(struct spu_context *ctx, int i,
if (!dump_emit(cprm, fullname, en.n_namesz))
goto Eio;
- if (!dump_skip(cprm, roundup(cprm->written, 4) - cprm->written))
+ if (!dump_align(cprm, 4))
goto Eio;
do {