diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2007-09-19 06:38:12 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-09-19 07:12:19 +0200 |
commit | e55014923e65e4ee8e477a1212381cca0125f3aa (patch) | |
tree | e84c0cab99f6963e644083be123042a0da6cd515 /drivers/atm/adummy.c | |
parent | [POWERPC] spufs: Combine spufs_coredump_calls with spufs_calls (diff) | |
download | linux-e55014923e65e4ee8e477a1212381cca0125f3aa.tar.xz linux-e55014923e65e4ee8e477a1212381cca0125f3aa.zip |
[POWERPC] spufs: Cleanup ELF coredump extra notes logic
To start with, arch_notes_size() etc. is a little too ambiguous a name for
my liking, so change the function names to be more explicit.
Calling through macros is ugly, especially with hidden parameters, so don't
do that, call the routines directly.
Use ARCH_HAVE_EXTRA_ELF_NOTES as the only flag, and based on it decide
whether we want the extern declarations or the empty versions.
Since we have empty routines, actually use them in the coredump code to
save a few #ifdefs.
We want to change the handling of foffset so that the write routine updates
foffset as it goes, instead of using file->f_pos (so that writing to a pipe
works). So pass foffset to the write routine, and for now just set it to
file->f_pos at the end of writing.
It should also be possible for the write routine to fail, so change it to
return int and treat a non-zero return as failure.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/atm/adummy.c')
0 files changed, 0 insertions, 0 deletions