* Re: [PULL] http://kernellabs.com/hg/~stoth/saa7164-v4l
[not found] <AANLkTima57h2Zz23y885AnyzWJOOUNWZxzt4o4gRjaUX@mail.gmail.com>
@ 2010-10-11 21:03 ` Mauro Carvalho Chehab
2010-10-11 22:06 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2010-10-11 21:03 UTC (permalink / raw)
To: Steven Toth; +Cc: linux-media
Hi stoth,
Em 31-07-2010 17:42, Steven Toth escreveu:
> Mauro,
>
> Analog Encoder and VBI support in the SAA7164 tree, for the HVR2200
> and HVR2250 cards.
>
> Please pull from http://www.kernellabs.com/hg/~stoth/saa7164-v4l
>
As requested on irc, I've pulled from your tree again, and fixed a few things
on your patch series (a warning and _lots_ of checkpatch issues).
There are still some compilation breakages in the middle of your patch series.
So, I'll fold some patches, in order to avoid the issues.
There are still a few checkpatch issues (I removed all 80-columns warning noise).
Could you please double check them?
To make life easier for you, I've created a temp git tree at:
http://git.linuxtv.org/mchehab/stoth.git
The checkpatch.pl errors/warnings are enclosed bellow.
Thanks,
Mauro
---
WARNING: braces {} are not necessary for single statement blocks
#47: FILE: drivers/media/video/saa7164/saa7164-api.c:43:
+ if (ret != SAA_OK) {
+ printk(KERN_ERR "%s() error, ret = 0x%x\n", __func__, ret);
+ }
WARNING: braces {} are not necessary for single statement blocks
#70: FILE: drivers/media/video/saa7164/saa7164-api.c:66:
+ if (ret != SAA_OK) {
+ printk(KERN_ERR "%s() error, ret = 0x%x\n", __func__, ret);
+ }
WARNING: braces {} are not necessary for single statement blocks
#93: FILE: drivers/media/video/saa7164/saa7164-api.c:89:
+ if (ret != SAA_OK) {
+ printk(KERN_ERR "%s() error, ret = 0x%x\n", __func__, ret);
+ }
WARNING: braces {} are not necessary for single statement blocks
#103: FILE: drivers/media/video/saa7164/saa7164-api.c:99:
+ if (ret != SAA_OK) {
+ printk(KERN_ERR "%s() error, ret = 0x%x\n", __func__, ret);
+ }
ERROR: do not use C99 // comments
#654: FILE: drivers/media/video/saa7164/saa7164-api.c:650:
+ //saa7164_dumphex16(dev, buf, 16);
WARNING: kfree(NULL) is safe this check is probably not required
#1381: FILE: drivers/media/video/saa7164/saa7164-buffer.c:317:
+ if (buf->data) {
+ kfree(buf->data);
WARNING: kfree(NULL) is safe this check is probably not required
#1386: FILE: drivers/media/video/saa7164/saa7164-buffer.c:322:
+ if (buf)
+ kfree(buf);
ERROR: do not use C99 // comments
#1962: FILE: drivers/media/video/saa7164/saa7164-core.c:126:
+// saa7164_dumphex16FF(buf->port->dev, (p + i), 32);
WARNING: braces {} are not necessary for single statement blocks
#2038: FILE: drivers/media/video/saa7164/saa7164-core.c:202:
+ for (i = 0; i < 30; i++) {
+ hg->counter1[0 + i].val = i;
+ }
WARNING: braces {} are not necessary for single statement blocks
#2043: FILE: drivers/media/video/saa7164/saa7164-core.c:207:
+ for (i = 0; i < 18; i++) {
+ hg->counter1[30 + i].val = 30 + (i * 10);
+ }
WARNING: braces {} are not necessary for single statement blocks
#2048: FILE: drivers/media/video/saa7164/saa7164-core.c:212:
+ for (i = 0; i < 15; i++) {
+ hg->counter1[48 + i].val = 200 + (i * 200);
+ }
WARNING: %Ld/%Lu are not-standard C, use %lld/%llu
#2103: FILE: drivers/media/video/saa7164/saa7164-core.c:267:
+ printk(KERN_ERR " %4d %12d %Ld\n",
ERROR: do not use C99 // comments
#2154: FILE: drivers/media/video/saa7164/saa7164-core.c:318:
+// saa7164_dumphex16FF(dev, (p + buf->actual_size) - 32 , 64);
WARNING: %Ld/%Lu are not-standard C, use %lld/%llu
#2239: FILE: drivers/media/video/saa7164/saa7164-core.c:403:
+ "%s() %Ldms elapsed irq->deferred %Ldms wp: %d rp: %d\n",
WARNING: %Ld/%Lu are not-standard C, use %lld/%llu
#2315: FILE: drivers/media/video/saa7164/saa7164-core.c:479:
+ "%s() %Ldms elapsed irq->deferred %Ldms wp: %d rp: %d\n",
WARNING: %Ld/%Lu are not-standard C, use %lld/%llu
#2402: FILE: drivers/media/video/saa7164/saa7164-core.c:567:
+ dprintk(DBGLVL_IRQ, "%s() %Ldms elapsed\n", __func__,
WARNING: %Ld/%Lu are not-standard C, use %lld/%llu
#2427: FILE: drivers/media/video/saa7164/saa7164-core.c:592:
+ dprintk(DBGLVL_IRQ, "%s() %Ldms elapsed\n", __func__,
ERROR: else should follow close brace '}'
#2606: FILE: drivers/media/video/saa7164/saa7164-core.c:965:
+ }
+ else
WARNING: struct file_operations should normally be const
#2747: FILE: drivers/media/video/saa7164/saa7164-core.c:1172:
+static struct file_operations saa7164_proc_fops = {
WARNING: braces {} are not necessary for single statement blocks
#4427: FILE: drivers/media/video/saa7164/saa7164-encoder.c:1236:
+ if (ubuf->pos > ubuf->actual_size) {
+ printk(KERN_ERR "read() pos > actual, huh?\n");
+ }
WARNING: braces {} are not necessary for single statement blocks
#4453: FILE: drivers/media/video/saa7164/saa7164-encoder.c:1262:
+ if (!ret && !ubuf) {
+ ret = -EAGAIN;
+ }
WARNING: braces {} are not necessary for single statement blocks
#4475: FILE: drivers/media/video/saa7164/saa7164-encoder.c:1284:
+ if (!video_is_registered(port->v4l_device)) {
+ return -EIO;
+ }
ERROR: do not use C99 // comments
#5359: FILE: drivers/media/video/saa7164/saa7164-vbi.c:54:
+// /* Configure the correct video standard */
ERROR: do not use C99 // comments
#5360: FILE: drivers/media/video/saa7164/saa7164-vbi.c:55:
+// saa7164_api_configure_dif(port, port->encodernorm.id);
ERROR: do not use C99 // comments
#5362: FILE: drivers/media/video/saa7164/saa7164-vbi.c:57:
+// /* Ensure the audio decoder is correct configured */
ERROR: do not use C99 // comments
#5363: FILE: drivers/media/video/saa7164/saa7164-vbi.c:58:
+// saa7164_api_set_audio_std(port);
ERROR: do not use C99 // comments
#6228: FILE: drivers/media/video/saa7164/saa7164-vbi.c:923:
+// saa7164_api_set_encoder(port);
ERROR: do not use C99 // comments
#6229: FILE: drivers/media/video/saa7164/saa7164-vbi.c:924:
+// saa7164_api_get_encoder(port);
WARNING: braces {} are not necessary for single statement blocks
#6488: FILE: drivers/media/video/saa7164/saa7164-vbi.c:1183:
+ if (ubuf->pos > ubuf->actual_size) {
+ printk(KERN_ERR "read() pos > actual, huh?\n");
+ }
WARNING: braces {} are not necessary for single statement blocks
#6537: FILE: drivers/media/video/saa7164/saa7164-vbi.c:1232:
+ if (!video_is_registered(port->v4l_device)) {
+ return -EIO;
+ }
ERROR: do not use C99 // comments
#6597: FILE: drivers/media/video/saa7164/saa7164-vbi.c:1292:
+// .vidioc_g_chip_ident = saa7164_g_chip_ident,
ERROR: do not use C99 // comments
#6599: FILE: drivers/media/video/saa7164/saa7164-vbi.c:1294:
+// .vidioc_g_register = saa7164_g_register,
ERROR: do not use C99 // comments
#6600: FILE: drivers/media/video/saa7164/saa7164-vbi.c:1295:
+// .vidioc_s_register = saa7164_s_register,
ERROR: do not use C99 // comments
#6813: FILE: drivers/media/video/saa7164/saa7164.h:186:
+// u32 freq;
ERROR: do not use C99 // comments
#6814: FILE: drivers/media/video/saa7164/saa7164.h:187:
+// u32 tuner_type;
ERROR: do not use C99 // comments
#6820: FILE: drivers/media/video/saa7164/saa7164.h:193:
+// u32 freq;
ERROR: do not use C99 // comments
#6821: FILE: drivers/media/video/saa7164/saa7164.h:194:
+// u32 tuner_type;
ERROR: do not use C99 // comments
#6862: FILE: drivers/media/video/saa7164/saa7164.h:269:
+// u32 cxiformat;
ERROR: do not use C99 // comments
#6863: FILE: drivers/media/video/saa7164/saa7164.h:270:
+// u32 cxoformat;
ERROR: Missing Signed-off-by: line(s)
total: 20 errors, 20 warnings, 6999 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PULL] http://kernellabs.com/hg/~stoth/saa7164-v4l
2010-10-11 21:03 ` [PULL] http://kernellabs.com/hg/~stoth/saa7164-v4l Mauro Carvalho Chehab
@ 2010-10-11 22:06 ` Mauro Carvalho Chehab
[not found] ` <AANLkTimabbX5PzA_ozkuuv5=CQGEr-hw_bzHynum8cFU@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2010-10-11 22:06 UTC (permalink / raw)
To: Steven Toth; +Cc: linux-media, Gavin Hurlbut
Em 11-10-2010 18:03, Mauro Carvalho Chehab escreveu:
> Hi stoth,
>
> Em 31-07-2010 17:42, Steven Toth escreveu:
>> Mauro,
>>
>> Analog Encoder and VBI support in the SAA7164 tree, for the HVR2200
>> and HVR2250 cards.
>>
>> Please pull from http://www.kernellabs.com/hg/~stoth/saa7164-v4l
>>
>
> As requested on irc, I've pulled from your tree again, and fixed a few things
> on your patch series (a warning and _lots_ of checkpatch issues).
>
> There are still some compilation breakages in the middle of your patch series.
> So, I'll fold some patches, in order to avoid the issues.
>
> There are still a few checkpatch issues (I removed all 80-columns warning noise).
> Could you please double check them?
>
> To make life easier for you, I've created a temp git tree at:
> http://git.linuxtv.org/mchehab/stoth.git
Stoth,
I realized that I missed a few patches on my queue. I've applied them also at the
git tree. There are a few issues on some of them:
commit a5209649cb5aa8a706e6ed5ab74378f2f95c64bf
Author: Steven Toth <stoth@kernellabs.com>
Date: Wed Oct 6 21:52:22 2010 -0300
V4L/DVB: saa7164: Removed use of the BKL
Remove usage of the BKL and instead used video_set_drvdata() during
open fops.
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
There were some conflicts on this patch. Please verify that the conflict solve
went ok.
commit 86ae40b5f3da13c5fd0c70731aac6447c6af4cd8
Author: Gavin Hurlbut <gjhurlbu@gmail.com>
Date: Thu Sep 30 18:21:20 2010 -0300
V4L/DVB: Fix the -E{*} returns in the VBI device as well
commit f92f45822ce73cfc4bde8d61a75598fb9db35d6b
Author: Gavin Hurlbut <gjhurlbu@gmail.com>
Date: Wed Sep 29 15:18:20 2010 -0300
V4L/DVB: Fix the negative -E{BLAH} returns from fops_read
commit 25b5ab78a5240c82baa78167e55c8d74a6e0a276
Author: Gavin Hurlbut <gjhurlbu@gmail.com>
Date: Mon Sep 27 23:50:43 2010 -0300
V4L/DVB: Change the second input names to include " 2" to distinguish them
Those three patches are missing your Signed-off-by: and Gavin's Signed-off-by:
Could you please provide it?
Thanks,
Mauro
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PULL] http://kernellabs.com/hg/~stoth/saa7164-v4l
[not found] ` <AANLkTimabbX5PzA_ozkuuv5=CQGEr-hw_bzHynum8cFU@mail.gmail.com>
@ 2010-10-12 3:19 ` Gavin Hurlbut
0 siblings, 0 replies; 3+ messages in thread
From: Gavin Hurlbut @ 2010-10-12 3:19 UTC (permalink / raw)
To: linux-media
I replied earlier, but due to gmail wanting to send HTML mail by
default (grr), it bounced when sending to the list.... Original
reply (slightly reformatted) follows:
> commit 86ae40b5f3da13c5fd0c70731aac6447c6af4cd8
> Author: Gavin Hurlbut <gjhurlbu@gmail.com>
> Date: Thu Sep 30 18:21:20 2010 -0300
>
> V4L/DVB: Fix the -E{*} returns in the VBI device as well
>
> commit f92f45822ce73cfc4bde8d61a75598fb9db35d6b
> Author: Gavin Hurlbut <gjhurlbu@gmail.com>
> Date: Wed Sep 29 15:18:20 2010 -0300
>
> V4L/DVB: Fix the negative -E{BLAH} returns from fops_read
>
> commit 25b5ab78a5240c82baa78167e55c8d74a6e0a276
> Author: Gavin Hurlbut <gjhurlbu@gmail.com>
> Date: Mon Sep 27 23:50:43 2010 -0300
>
> V4L/DVB: Change the second input names to include " 2" to distinguish them
>
> Those three patches are missing your Signed-off-by: and Gavin's Signed-off-by:
>
> Could you please provide it?
Chock those up to me missing putting the Signed-off-by: lines in the
patches I sent to Steven due to me being new to mercurial. Is there a
way for me to add it posthumously, as it were? I'll be sure to add
that in any future patches, and I apologize for the oversight. It
would be (for all three patches):
Signed-off-by: Gavin Hurlbut <gjhurlbu@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-12 3:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AANLkTima57h2Zz23y885AnyzWJOOUNWZxzt4o4gRjaUX@mail.gmail.com>
2010-10-11 21:03 ` [PULL] http://kernellabs.com/hg/~stoth/saa7164-v4l Mauro Carvalho Chehab
2010-10-11 22:06 ` Mauro Carvalho Chehab
[not found] ` <AANLkTimabbX5PzA_ozkuuv5=CQGEr-hw_bzHynum8cFU@mail.gmail.com>
2010-10-12 3:19 ` Gavin Hurlbut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox