mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 03:04:01 +08:00
d4556f5e99
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:
|
||
---|---|---|
.. | ||
exynos-nocp.c | ||
exynos-nocp.h | ||
exynos-ppmu.c | ||
exynos-ppmu.h | ||
Kconfig | ||
Makefile | ||
rockchip-dfi.c |