goldfish_pipe: fix build warning about using too much stack.
commitf563dab41733c0e73202a8a5977b441715dc9946
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Apr 2017 09:43:39 +0000 (26 11:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Apr 2017 09:43:39 +0000 (26 11:43 +0200)
treea978195ff9d0302f623990bbb7f2e677b0cfeeb7
parent726ea1a8ea96b2bba34ee2073b58f0770800701c
goldfish_pipe: fix build warning about using too much stack.

The new goldfish_pipe code used too much stack space in the
transfer_max_buffers() call.  As the function is serialized with a lock,
let's make the buffer static to not use the stack for the large buffer.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Yurii Zubrytskyi <zyy@google.com>
Cc: Jin Qian <jinqian@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/goldfish/goldfish_pipe.c