Re: [PATCH] [media] vb2: remove unused variable
Hello, On 2015-04-10 22:24, Arnd Bergmann wrote: A recent bug fix removed all uses of the 'fileio' variable in vb2_thread_stop(), which now causes warnings in a lot of ARM defconfig builds: drivers/media/v4l2-core/videobuf2-core.c:3228:26: warning: unused variable 'fileio' [-Wunused-variable] This removes the variable as well. The commit that introduced the warning was marked for 3.18+ backports, so this should probably be backported too. Signed-off-by: Arnd Bergmann a...@arndb.de Fixes: 0e661006370b7 ([media] vb2: fix 'UNBALANCED' warnings when calling vb2_thread_stop()) Cc: sta...@vger.kernel.org # for v3.18 and up Acked-by: Marek Szyprowski m.szyprow...@samsung.com diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index c11aee7db884..d3f7bf0db61e 100644 --- a/drivers/media/v4l2-core/videobuf2-core.c +++ b/drivers/media/v4l2-core/videobuf2-core.c @@ -3225,7 +3225,6 @@ EXPORT_SYMBOL_GPL(vb2_thread_start); int vb2_thread_stop(struct vb2_queue *q) { struct vb2_threadio_data *threadio = q-threadio; - struct vb2_fileio_data *fileio = q-fileio; int err; if (threadio == NULL) Best regards -- Marek Szyprowski, PhD Samsung RD Institute Poland -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] [media] vb2: remove unused variable
A recent bug fix removed all uses of the 'fileio' variable in vb2_thread_stop(), which now causes warnings in a lot of ARM defconfig builds: drivers/media/v4l2-core/videobuf2-core.c:3228:26: warning: unused variable 'fileio' [-Wunused-variable] This removes the variable as well. The commit that introduced the warning was marked for 3.18+ backports, so this should probably be backported too. Signed-off-by: Arnd Bergmann a...@arndb.de Fixes: 0e661006370b7 ([media] vb2: fix 'UNBALANCED' warnings when calling vb2_thread_stop()) Cc: sta...@vger.kernel.org # for v3.18 and up diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index c11aee7db884..d3f7bf0db61e 100644 --- a/drivers/media/v4l2-core/videobuf2-core.c +++ b/drivers/media/v4l2-core/videobuf2-core.c @@ -3225,7 +3225,6 @@ EXPORT_SYMBOL_GPL(vb2_thread_start); int vb2_thread_stop(struct vb2_queue *q) { struct vb2_threadio_data *threadio = q-threadio; - struct vb2_fileio_data *fileio = q-fileio; int err; if (threadio == NULL) -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] [media] vb2: Remove unused variable fileio in vb2_thread_stop()
drivers/media/v4l2-core/videobuf2-core.c: In function 'vb2_thread_stop': drivers/media/v4l2-core/videobuf2-core.c:3228:26: warning: unused variable 'fileio' [-Wunused-variable] Fixes: 0e661006370b7e7f ([media] vb2: fix 'UNBALANCED' warnings when calling vb2_thread_stop()) Signed-off-by: Geert Uytterhoeven geert+rene...@glider.be --- drivers/media/v4l2-core/videobuf2-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index cc16e76a24933c41..471b171cec3dabfa 100644 --- a/drivers/media/v4l2-core/videobuf2-core.c +++ b/drivers/media/v4l2-core/videobuf2-core.c @@ -3225,7 +3225,6 @@ EXPORT_SYMBOL_GPL(vb2_thread_start); int vb2_thread_stop(struct vb2_queue *q) { struct vb2_threadio_data *threadio = q-threadio; - struct vb2_fileio_data *fileio = q-fileio; int err; if (threadio == NULL) -- 1.9.1 -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html