diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2013-02-05 07:42:21 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-05 10:50:14 -0500 |
commit | b4c13d3df1dfabac3d7737924a0dec665a971484 (patch) | |
tree | 5f795932009c5147076361a06619ad5cbc56f500 | |
parent | 24dec5dabfcc1d424d7bc86d393d31f57ebcc975 (diff) |
[media] saa7164: silence GCC warnings
Compiling the saa7164 driver without CONFIG_VIDEO_ADV_DEBUG set triggers
these GCC warnings:
drivers/media/pci/saa7164/saa7164-encoder.c:1301:12: warning: ‘saa7164_g_register’ defined but not used [-Wunused-function]
drivers/media/pci/saa7164/saa7164-encoder.c:1314:12: warning: ‘saa7164_s_register’ defined but not used [-Wunused-function]
Silence these warnings by wrapping these two functions in an "#ifdef
CONFIG_VIDEO_ADV_DEBUG" and "#endif" pair.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/pci/saa7164/saa7164-encoder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/pci/saa7164/saa7164-encoder.c b/drivers/media/pci/saa7164/saa7164-encoder.c index 994018e2d0d6..9bb0903ee5f1 100644 --- a/drivers/media/pci/saa7164/saa7164-encoder.c +++ b/drivers/media/pci/saa7164/saa7164-encoder.c | |||
@@ -1298,6 +1298,7 @@ static int saa7164_g_chip_ident(struct file *file, void *fh, | |||
1298 | return 0; | 1298 | return 0; |
1299 | } | 1299 | } |
1300 | 1300 | ||
1301 | #ifdef CONFIG_VIDEO_ADV_DEBUG | ||
1301 | static int saa7164_g_register(struct file *file, void *fh, | 1302 | static int saa7164_g_register(struct file *file, void *fh, |
1302 | struct v4l2_dbg_register *reg) | 1303 | struct v4l2_dbg_register *reg) |
1303 | { | 1304 | { |
@@ -1323,6 +1324,7 @@ static int saa7164_s_register(struct file *file, void *fh, | |||
1323 | 1324 | ||
1324 | return 0; | 1325 | return 0; |
1325 | } | 1326 | } |
1327 | #endif | ||
1326 | 1328 | ||
1327 | static const struct v4l2_ioctl_ops mpeg_ioctl_ops = { | 1329 | static const struct v4l2_ioctl_ops mpeg_ioctl_ops = { |
1328 | .vidioc_s_std = vidioc_s_std, | 1330 | .vidioc_s_std = vidioc_s_std, |