diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-01-25 23:20:59 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-01-26 11:21:43 +0000 |
commit | 33f0698a52d9ebc089eccff7d2fc376974d7e7bf (patch) | |
tree | 41350dbbba32ff9a05dd1adcd284096f608cd292 /fs/cachefiles | |
parent | d00b74613fb18dfd0a5aa99270ee2e72d5c808d7 (diff) | |
download | linux-33f0698a52d9ebc089eccff7d2fc376974d7e7bf.tar.gz linux-33f0698a52d9ebc089eccff7d2fc376974d7e7bf.tar.bz2 linux-33f0698a52d9ebc089eccff7d2fc376974d7e7bf.zip |
regulator: s2mpa01: reduce stack size for probe function
In some rare configurations we can run into rather high kernel stack
consumption:
drivers/regulator/s2mpa01.c:397:1: error: the frame size of 1536 bytes is larger than 1152 bytes [-Werror=frame-larger-than=]
This is probably harmless since it happens only in the probe function,
but there is also a relatively simple workaround, moving the regulator
match data into the device specific structure.
As a small downside, we waste a little memory at runtime. An alternative
approach would free the array at the end of the probe function, which in
turn is a little more complicated.
Fixes: f18792714608 ("regulator: Add support for S2MPA01 regulator")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'fs/cachefiles')
0 files changed, 0 insertions, 0 deletions