ANDROID: binder: make binder_alloc_new_buf_locked static and indent its arguments

The function binder_alloc_new_buf_locked() is only used in this file, so
make it static. Also clean up sparse warning:

drivers/android/binder_alloc.c:330:23: warning: no previous prototype
for ‘binder_alloc_new_buf_locked’ [-Wmissing-prototypes]

In addition, the line of the function name exceeds 80 characters when
add static for this function, hence indent its arguments anew.

Signed-off-by: Xiongwei Song <sxwjean@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Xiongwei Song 2017-12-14 12:15:42 +08:00 committed by Greg Kroah-Hartman
parent 8a943bd283
commit 3f82724546
1 changed files with 6 additions and 5 deletions

View File

@ -327,11 +327,12 @@ err_no_vma:
return vma ? -ENOMEM : -ESRCH; return vma ? -ENOMEM : -ESRCH;
} }
struct binder_buffer *binder_alloc_new_buf_locked(struct binder_alloc *alloc, static struct binder_buffer *binder_alloc_new_buf_locked(
size_t data_size, struct binder_alloc *alloc,
size_t offsets_size, size_t data_size,
size_t extra_buffers_size, size_t offsets_size,
int is_async) size_t extra_buffers_size,
int is_async)
{ {
struct rb_node *n = alloc->free_buffers.rb_node; struct rb_node *n = alloc->free_buffers.rb_node;
struct binder_buffer *buffer; struct binder_buffer *buffer;