Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1312443
| From | Shuah Khan <shuahkh@osg.samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] media: au0828 fix enable/disable source compile warns |
| Date | 2016-01-19 19:40 +0100 |
| Message-ID | <qSJma-3dX-19@gated-at.bofh.it> (permalink) |
| References | <qSJm9-3dX-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Fix the following compile warns for MEDIA_CONTROLLER
disabled case.
CC [M] drivers/media/usb/au0828/au0828-core.o
drivers/media/usb/au0828/au0828-core.c:398:12: warning: ‘au0828_enable_source’ defined but not used [-Wunused-function]
static int au0828_enable_source(struct media_entity *entity,
^
drivers/media/usb/au0828/au0828-core.c:497:13: warning: ‘au0828_disable_source’ defined but not used [-Wunused-function]
static void au0828_disable_source(struct media_entity *entity)
^
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---
drivers/media/usb/au0828/au0828-core.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/media/usb/au0828/au0828-core.c b/drivers/media/usb/au0828/au0828-core.c
index de357a2..7dda0dd 100644
--- a/drivers/media/usb/au0828/au0828-core.c
+++ b/drivers/media/usb/au0828/au0828-core.c
@@ -395,10 +395,10 @@ void au0828_create_media_graph_notify(struct media_entity *new,
#endif
}
+#ifdef CONFIG_MEDIA_CONTROLLER
static int au0828_enable_source(struct media_entity *entity,
struct media_pipeline *pipe)
{
-#ifdef CONFIG_MEDIA_CONTROLLER
struct media_entity *source;
struct media_entity *sink;
struct media_link *link, *found_link = NULL;
@@ -490,13 +490,10 @@ end:
pr_debug("au0828_enable_source() end %s %d %d\n",
entity->name, entity->function, ret);
return ret;
-#endif
- return 0;
}
static void au0828_disable_source(struct media_entity *entity)
{
-#ifdef CONFIG_MEDIA_CONTROLLER
struct media_entity *sink;
int ret = 0;
struct media_device *mdev = entity->graph_obj.mdev;
@@ -536,8 +533,8 @@ static void au0828_disable_source(struct media_entity *entity)
end:
mutex_unlock(&mdev->graph_mutex);
-#endif
}
+#endif
static int au0828_media_device_register(struct au0828_dev *dev,
struct usb_device *udev)
--
2.5.0
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/2] media: au0828 fix compile warns Shuah Khan <shuahkh@osg.samsung.com> - 2016-01-19 19:40 +0100 [PATCH 1/2] media: au0828 fix enable/disable source compile warns Shuah Khan <shuahkh@osg.samsung.com> - 2016-01-19 19:40 +0100
csiph-web