mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
[elf] get rid of get_note_info_size()
it's trivial now... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -1946,11 +1946,6 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t get_note_info_size(struct elf_note_info *info)
|
|
||||||
{
|
|
||||||
return info->size;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Write all the notes for each thread. When writing the first thread, the
|
* Write all the notes for each thread. When writing the first thread, the
|
||||||
* process-wide notes are interleaved after the first thread-specific note.
|
* process-wide notes are interleaved after the first thread-specific note.
|
||||||
@@ -2068,7 +2063,7 @@ static int elf_core_dump(struct coredump_params *cprm)
|
|||||||
|
|
||||||
/* Write notes phdr entry */
|
/* Write notes phdr entry */
|
||||||
{
|
{
|
||||||
size_t sz = get_note_info_size(&info);
|
size_t sz = info.size;
|
||||||
|
|
||||||
/* For cell spufs */
|
/* For cell spufs */
|
||||||
sz += elf_coredump_extra_notes_size();
|
sz += elf_coredump_extra_notes_size();
|
||||||
|
Reference in New Issue
Block a user