]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: go7007: avoid clang frame overflow warning with KASAN
authorArnd Bergmann <arnd@arndb.de>
Tue, 19 Feb 2019 17:01:58 +0000 (12:01 -0500)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit64b25ee7dab4b6fb35bf21f1bc6c473ed19b1692
tree952f3a5e0f0adb7a3a9b8d60d5d3192719a5da86
parent60bd97ededc12c9b4399ff78e3595642921938d3
media: go7007: avoid clang frame overflow warning with KASAN

BugLink: https://bugs.launchpad.net/bugs/1838700
[ Upstream commit ed713a4a1367aca5c0f2f329579465db00c17995 ]

clang-8 warns about one function here when KASAN is enabled, even
without the 'asan-stack' option:

drivers/media/usb/go7007/go7007-fw.c:1551:5: warning: stack frame size of 2656 bytes in function

I have reported this issue in the llvm bugzilla, but to make
it work with the clang-8 release, a small annotation is still
needed.

Link: https://bugs.llvm.org/show_bug.cgi?id=38809
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: fix checkpatch warning]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/media/usb/go7007/go7007-fw.c