diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-07-04 10:21:40 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-07 15:23:45 +0200 |
commit | bf5482f919caad7029be9ab3019eb9a696ddc37a (patch) | |
tree | da026ae7b5373c8a14867e52b69c76c0cd5c0615 /fs/cifs/cifsfs.c | |
parent | 5d6700e3d62450658de92ee8f6da850bd78854e8 (diff) | |
download | linux-stable-bf5482f919caad7029be9ab3019eb9a696ddc37a.tar.gz linux-stable-bf5482f919caad7029be9ab3019eb9a696ddc37a.tar.bz2 linux-stable-bf5482f919caad7029be9ab3019eb9a696ddc37a.zip |
gspca: avoid unused variable warnings
commit d7e92e15e92fc987640772bf110586898b5f15aa upstream.
When CONFIG_INPUT is disabled, multiple gspca backend drivers
print compile-time warnings about unused variables:
media/usb/gspca/cpia1.c: In function 'sd_stopN':
media/usb/gspca/cpia1.c:1627:13: error: unused variable 'sd' [-Werror=unused-variable]
media/usb/gspca/konica.c: In function 'sd_stopN':
media/usb/gspca/konica.c:246:13: error: unused variable 'sd' [-Werror=unused-variable]
This annotates the variables as __maybe_unused, to let the compiler
know that they are declared intentionally.
Fixes: ee186fd96a5f ("[media] gscpa_t613: Add support for the camera button")
Fixes: c2f644aeeba3 ("[media] gspca_cpia1: Add support for button")
Fixes: b517af722860 ("V4L/DVB: gspca_konica: New gspca subdriver for konica chipset using cams")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/cifs/cifsfs.c')
0 files changed, 0 insertions, 0 deletions