diff options
| author | Arnd Bergmann <[email protected]> | 2019-03-13 17:10:29 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2019-03-29 07:37:10 -0400 |
| commit | 2980c03e1f09a4ba36cb0d818a6a203213e98868 (patch) | |
| tree | cc5204c047d605f2be66aac39dfab914a5572eb6 /tools/perf/scripts/python/syscall-counts.py | |
| parent | bcfc16eb1650f14053eb70725574f98648bb7c0a (diff) | |
media: staging: media: davinci_vpfe: fix large stack usage with clang
clang is unable to optimize the isif_ioctl() in the same way that
gcc does, as it fails to prove that the local copy of
the 'struct vpfe_isif_raw_config' argument is unnecessary:
drivers/staging/media/davinci_vpfe/dm365_isif.c:622:13: error: stack frame size of 1344 bytes in function 'isif_ioctl' [-Werror,-Wframe-larger-than=]
Marking it as 'const' while passing the data down clearly shows us that
the copy is never modified, and we can skip copying it entirely, which
reduces the stack usage to just eight bytes.
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions