summaryrefslogtreecommitdiff
path: root/drivers/devfreq/event/Kconfig
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-10-22 16:26:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-24 08:36:41 +0100
commit704582e6a714fe667c9f1615510e36eb2858b943 (patch)
tree17a685f40143f5e7262f45e302db1fbe2990925a /drivers/devfreq/event/Kconfig
parentbc866376d7cd231a4bf040e348739e0ef81b3cc2 (diff)
PM / devfreq: exynos-ppmu: Fix excessive stack usage
[ Upstream commit d4556f5e99d5f603913bac01adaff8670cb2d08b ] Putting a 'struct devfreq_event_dev' object on the stack is generally a bad idea and here it leads to a warnig about potential stack overflow: drivers/devfreq/event/exynos-ppmu.c:643:12: error: stack frame size of 1040 bytes in function 'exynos_ppmu_probe' [-Werror,-Wframe-larger-than=] There is no real need for the device structure, only the string inside it, so add an internal helper function that simply takes the string as its argument and remove the device structure. Fixes: 1dd62c66d345 ("PM / devfreq: events: extend events by type of counted data") Signed-off-by: Arnd Bergmann <arnd@arndb.de> [cw00.choi: Fix the issue from 'desc->name' to 'desc[j].name'] Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/devfreq/event/Kconfig')
0 files changed, 0 insertions, 0 deletions