* [PATCH] media: mtk-vcodec: remove informative log @ 2017-04-05 10:54 Minghsiu Tsai 2017-04-05 11:09 ` Tiffany Lin 0 siblings, 1 reply; 4+ messages in thread From: Minghsiu Tsai @ 2017-04-05 10:54 UTC (permalink / raw) To: Hans Verkuil, daniel.thompson, Rob Herring, Mauro Carvalho Chehab, Matthias Brugger, Daniel Kurtz, Pawel Osciak, Tiffany Lin Cc: srv_heupstream, Eddie Huang, Yingjoe Chen, Wu-Cheng Li, devicetree, linux-kernel, linux-arm-kernel, linux-media, linux-mediatek, Minghsiu Tsai Driver is stable. Remove DEBUG definition from driver. There are debug message in /var/log/messages if DEBUG is defined, such as: [MTK_V4L2] level=0 fops_vcodec_open(),170: decoder capability 0 [MTK_V4L2] level=0 fops_vcodec_open(),177: 16000000.vcodec decoder [0] [MTK_V4L2] level=0 fops_vcodec_release(),200: [0] decoder Signed-off-by: Minghsiu Tsai <minghsiu.tsai@mediatek.com> --- drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h index 7d55975..1248083 100644 --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h @@ -31,7 +31,6 @@ struct mtk_vcodec_mem { extern int mtk_v4l2_dbg_level; extern bool mtk_vcodec_dbg; -#define DEBUG 1 #if defined(DEBUG) -- 1.9.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] media: mtk-vcodec: remove informative log 2017-04-05 10:54 [PATCH] media: mtk-vcodec: remove informative log Minghsiu Tsai @ 2017-04-05 11:09 ` Tiffany Lin 2017-04-19 10:56 ` Mauro Carvalho Chehab 0 siblings, 1 reply; 4+ messages in thread From: Tiffany Lin @ 2017-04-05 11:09 UTC (permalink / raw) To: Minghsiu Tsai Cc: Hans Verkuil, daniel.thompson, Rob Herring, Mauro Carvalho Chehab, Matthias Brugger, Daniel Kurtz, Pawel Osciak, srv_heupstream, Eddie Huang, Yingjoe Chen, Wu-Cheng Li, devicetree, linux-kernel, linux-arm-kernel, linux-media, linux-mediatek On Wed, 2017-04-05 at 18:54 +0800, Minghsiu Tsai wrote: > Driver is stable. Remove DEBUG definition from driver. > > There are debug message in /var/log/messages if DEBUG is defined, > such as: > [MTK_V4L2] level=0 fops_vcodec_open(),170: decoder capability 0 > [MTK_V4L2] level=0 fops_vcodec_open(),177: 16000000.vcodec decoder [0] > [MTK_V4L2] level=0 fops_vcodec_release(),200: [0] decoder > > Signed-off-by: Minghsiu Tsai <minghsiu.tsai@mediatek.com> Acked-by:Tiffany Lin <Tiffany.lin@mediatek.com> > --- > drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h > index 7d55975..1248083 100644 > --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h > +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h > @@ -31,7 +31,6 @@ struct mtk_vcodec_mem { > extern int mtk_v4l2_dbg_level; > extern bool mtk_vcodec_dbg; > > -#define DEBUG 1 > > #if defined(DEBUG) > ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] media: mtk-vcodec: remove informative log 2017-04-05 11:09 ` Tiffany Lin @ 2017-04-19 10:56 ` Mauro Carvalho Chehab 2017-04-21 8:04 ` Tiffany Lin 0 siblings, 1 reply; 4+ messages in thread From: Mauro Carvalho Chehab @ 2017-04-19 10:56 UTC (permalink / raw) To: Tiffany Lin Cc: Minghsiu Tsai, Hans Verkuil, daniel.thompson, Rob Herring, Matthias Brugger, Daniel Kurtz, Pawel Osciak, srv_heupstream, Eddie Huang, Yingjoe Chen, Wu-Cheng Li, devicetree, linux-kernel, linux-arm-kernel, linux-media, linux-mediatek Em Wed, 5 Apr 2017 19:09:59 +0800 Tiffany Lin <tiffany.lin@mediatek.com> escreveu: > On Wed, 2017-04-05 at 18:54 +0800, Minghsiu Tsai wrote: > > Driver is stable. Remove DEBUG definition from driver. > > > > There are debug message in /var/log/messages if DEBUG is defined, > > such as: > > [MTK_V4L2] level=0 fops_vcodec_open(),170: decoder capability 0 > > [MTK_V4L2] level=0 fops_vcodec_open(),177: 16000000.vcodec decoder [0] > > [MTK_V4L2] level=0 fops_vcodec_release(),200: [0] decoder > > > > Signed-off-by: Minghsiu Tsai <minghsiu.tsai@mediatek.com> > Acked-by:Tiffany Lin <Tiffany.lin@mediatek.com> > > > --- > > drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h | 1 - > > 1 file changed, 1 deletion(-) > > > > diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h > > index 7d55975..1248083 100644 > > --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h > > +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h > > @@ -31,7 +31,6 @@ struct mtk_vcodec_mem { > > extern int mtk_v4l2_dbg_level; > > extern bool mtk_vcodec_dbg; > > > > -#define DEBUG 1 > > > > #if defined(DEBUG) > > After this patch, building the Kernel with W=1 now shows warnings: drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c: In function 'mtk_vcodec_dec_pw_on': drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c:114:51: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] mtk_v4l2_err("pm_runtime_get_sync fail %d", ret); ^ I wrote a patch fixing it, as this is really a trivial issue. Yet, after that, this one still remains: drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c: In function 'mtk_vdec_pic_info_update': drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c:284:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] int ret; ^~~ Shouldn't be mtk_vdec_pic_info_update() returning an error code? Also, IMHO, at least errors should be shown at dmesg. Thanks, Mauro ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] media: mtk-vcodec: remove informative log 2017-04-19 10:56 ` Mauro Carvalho Chehab @ 2017-04-21 8:04 ` Tiffany Lin 0 siblings, 0 replies; 4+ messages in thread From: Tiffany Lin @ 2017-04-21 8:04 UTC (permalink / raw) To: Mauro Carvalho Chehab Cc: Minghsiu Tsai, Hans Verkuil, daniel.thompson, Rob Herring, Matthias Brugger, Daniel Kurtz, Pawel Osciak, srv_heupstream, Eddie Huang, Yingjoe Chen, Wu-Cheng Li, devicetree, linux-kernel, linux-arm-kernel, linux-media, linux-mediatek On Wed, 2017-04-19 at 07:56 -0300, Mauro Carvalho Chehab wrote: > Em Wed, 5 Apr 2017 19:09:59 +0800 > Tiffany Lin <tiffany.lin@mediatek.com> escreveu: > > > On Wed, 2017-04-05 at 18:54 +0800, Minghsiu Tsai wrote: > > > Driver is stable. Remove DEBUG definition from driver. > > > > > > There are debug message in /var/log/messages if DEBUG is defined, > > > such as: > > > [MTK_V4L2] level=0 fops_vcodec_open(),170: decoder capability 0 > > > [MTK_V4L2] level=0 fops_vcodec_open(),177: 16000000.vcodec decoder [0] > > > [MTK_V4L2] level=0 fops_vcodec_release(),200: [0] decoder > > > > > > Signed-off-by: Minghsiu Tsai <minghsiu.tsai@mediatek.com> > > Acked-by:Tiffany Lin <Tiffany.lin@mediatek.com> > > > > > --- > > > drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h | 1 - > > > 1 file changed, 1 deletion(-) > > > > > > diff --git a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h > > > index 7d55975..1248083 100644 > > > --- a/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h > > > +++ b/drivers/media/platform/mtk-vcodec/mtk_vcodec_util.h > > > @@ -31,7 +31,6 @@ struct mtk_vcodec_mem { > > > extern int mtk_v4l2_dbg_level; > > > extern bool mtk_vcodec_dbg; > > > > > > -#define DEBUG 1 > > > > > > #if defined(DEBUG) > > > > > After this patch, building the Kernel with W=1 now shows warnings: > > drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c: In function 'mtk_vcodec_dec_pw_on': > drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c:114:51: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] > mtk_v4l2_err("pm_runtime_get_sync fail %d", ret); > ^ > > I wrote a patch fixing it, as this is really a trivial issue. > > Yet, after that, this one still remains: > > > drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c: In function 'mtk_vdec_pic_info_update': > drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c:284:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] > int ret; > ^~~ > > > Shouldn't be mtk_vdec_pic_info_update() returning an error code? > > > Also, IMHO, at least errors should be shown at dmesg. > Got it. We will upstream patch to fix warning and add dmesg when error. best regards, Tiffany > Thanks, > Mauro ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-04-21 8:05 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-04-05 10:54 [PATCH] media: mtk-vcodec: remove informative log Minghsiu Tsai 2017-04-05 11:09 ` Tiffany Lin 2017-04-19 10:56 ` Mauro Carvalho Chehab 2017-04-21 8:04 ` Tiffany Lin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).