android_kernel_oneplus_msm8998/drivers/media/pci
Arnd Bergmann 3a5d113328 media: saa7146: avoid high stack usage with clang
[ Upstream commit 03aa4f191a36f33fce015387f84efa0eee94408e ]

Two saa7146/hexium files contain a construct that causes a warning
when built with clang:

drivers/media/pci/saa7146/hexium_orion.c:210:12: error: stack frame size of 2272 bytes in function 'hexium_probe'
      [-Werror,-Wframe-larger-than=]
static int hexium_probe(struct saa7146_dev *dev)
           ^
drivers/media/pci/saa7146/hexium_gemini.c:257:12: error: stack frame size of 2304 bytes in function 'hexium_attach'
      [-Werror,-Wframe-larger-than=]
static int hexium_attach(struct saa7146_dev *dev, struct saa7146_pci_extension_data *info)
           ^

This one happens regardless of KASAN, and the problem is that a
constructor to initialize a dynamically allocated structure leads
to a copy of that structure on the stack, whereas gcc initializes
it in place.

Link: https://bugs.llvm.org/show_bug.cgi?id=40776

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: fix checkpatch warnings]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-11 12:24:05 +02:00
..
b2c2
bt8xx media: bt8xx: Fix err 'bt878_probe()' 2018-03-24 10:58:47 +01:00
cobalt
cx18
cx88
cx23885 media: pci: cx23885: handle adding to list failure 2018-11-21 09:27:38 +01:00
cx25821 media: cx25821: prevent out-of-bounds read on array card 2018-05-30 07:49:15 +02:00
ddbridge
dm1105
dt3155
ivtv mm: replace get_user_pages_unlocked() write/force parameters with gup_flags 2018-12-17 21:55:16 +01:00
mantis
meye
netup_unidvb
ngene
pluto2
pt1
pt3
saa7134
saa7146 media: saa7146: avoid high stack usage with clang 2019-06-11 12:24:05 +02:00
saa7164 media: saa7164: Fix driver name in debug output 2018-08-06 16:24:36 +02:00
smipcie
solo6x10 solo6x10: release vb2 buffers in solo_stop_streaming() 2018-03-22 09:23:21 +01:00
sta2x11
ttpci
tw68
zoran
Kconfig
Makefile