soc: qcom: smd: Remove use of VLAIS
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 2 Sep 2015 22:46:48 +0000 (15:46 -0700)
committerAndy Gross <agross@codeaurora.org>
Wed, 14 Oct 2015 19:51:21 +0000 (14:51 -0500)
commit50e1b29b4438bdb0be61ff41e6925cab6f8a9284
treed756f80fc02c454bfb8f5dc36e9331c2a9d637eb
parent3b781e55c6cb1afa5da7b2b1b2bb1b0c9ee7bf97
soc: qcom: smd: Remove use of VLAIS

Usage of VLAIS prevents clang from compiling this file, and it
also opens us to the possibility of allocating a large structure
on the stack to the point that we blow past the limit of the
kernel stack. Remove the VLAIS and allocate a structure on the
heap with kmalloc so that we're safer and more clang friendly.

Cc: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Andy Gross <agross@codeaurora.org>
drivers/soc/qcom/smd-rpm.c