android_kernel_oneplus_msm8998/drivers/media/tuners
Arnd Bergmann c4fd9c8d38 media: r820t: fix r820t_write_reg for KASAN
commit 16c3ada89cff9a8c2a0eea34ffa1aa20af3f6008 upstream.

With CONFIG_KASAN, we get an overly long stack frame due to inlining
the register access functions:

drivers/media/tuners/r820t.c: In function 'generic_set_freq.isra.7':
drivers/media/tuners/r820t.c:1334:1: error: the frame size of 2880 bytes is larger than 2048 bytes [-Werror=frame-larger-than=]

This is caused by a gcc bug that has now been fixed in gcc-8.
To work around the problem, we can pass the register data
through a local variable that older gcc versions can optimize
out as well.

Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-22 15:45:02 +01:00
..
e4000.c
e4000.h
e4000_priv.h
fc001x-common.h
fc0011.c
fc0011.h
fc0012-priv.h
fc0012.c
fc0012.h
fc0013-priv.h
fc0013.c
fc0013.h
fc2580.c
fc2580.h
fc2580_priv.h
it913x.c
it913x.h
Kconfig
m88rs6000t.c
m88rs6000t.h
Makefile
max2165.c
max2165.h
max2165_priv.h
mc44s803.c
mc44s803.h
mc44s803_priv.h
msi001.c
mt20xx.c
mt20xx.h
mt2060.c
mt2060.h
mt2060_priv.h
mt2063.c
mt2063.h
mt2131.c
mt2131.h
mt2131_priv.h
mt2266.c
mt2266.h
mxl301rf.c
mxl301rf.h
mxl5005s.c
mxl5005s.h
mxl5007t.c
mxl5007t.h
qm1d1c0042.c
qm1d1c0042.h
qt1010.c
qt1010.h
qt1010_priv.h
r820t.c media: r820t: fix r820t_write_reg for KASAN 2018-02-22 15:45:02 +01:00
r820t.h
si2157.c
si2157.h
si2157_priv.h
tda827x.c
tda827x.h
tda8290.c
tda8290.h
tda9887.c
tda9887.h
tda18212.c
tda18212.h
tda18218.c
tda18218.h
tda18218_priv.h
tda18271-common.c
tda18271-fe.c
tda18271-maps.c
tda18271-priv.h
tda18271.h
tea5761.c
tea5761.h
tea5767.c
tea5767.h
tua9001.c
tua9001.h
tua9001_priv.h
tuner-i2c.h
tuner-simple.c
tuner-simple.h
tuner-types.c
tuner-xc2028-types.h
tuner-xc2028.c xc2028: Fix use-after-free bug properly 2017-05-25 14:30:15 +02:00
tuner-xc2028.h
xc4000.c
xc4000.h
xc5000.c
xc5000.h