linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -hg] Warn user that driver is backported and might not work as expected
@ 2010-09-17 14:55 Mauro Carvalho Chehab
  2010-09-18 22:57 ` David Ellingsworth
  2010-09-19  5:24 ` Douglas Schilling Landgraf
  0 siblings, 2 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2010-09-17 14:55 UTC (permalink / raw)
  To: Douglas Schilling Landgraf, Linux Media Mailing List

Since the migration to -git, less developers are using the -hg tree. Also, some
changes are happening upstream that would require much more than just compiling
the tree with an older version, to be sure that the backport won't break anything,
like the removal of BKL.

As normal users might not be aware of those issues, and bug reports may be sent
based on a backported tree, add some messages to warn about the usage of a
backported experimental (unsupported) tree.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

diff -r 60edc4bd92b7 linux/drivers/media/dvb/dvb-core/dvbdev.c
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c	Sun Jun 27 17:17:06 2010 -0300
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c	Fri Sep 17 11:49:02 2010 -0300
@@ -521,6 +521,12 @@
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)
 	dvb_class->devnode = dvb_devnode;
 #endif
+#ifdef EXPERIMENTAL_TREE
+	printk(KERN_ERR "WARNING: You're using an experimental version of the DVB stack. As the driver\n"
+			"         is backported to an older kernel, it doesn't offer enough quality for\n"
+			"         its usage in production.\n"
+			"         Use it with care.\n");
+#endif
 	return 0;
 
 error:
diff -r 60edc4bd92b7 linux/drivers/media/video/v4l2-dev.c
--- a/linux/drivers/media/video/v4l2-dev.c	Sun Jun 27 17:17:06 2010 -0300
+++ b/linux/drivers/media/video/v4l2-dev.c	Fri Sep 17 11:49:02 2010 -0300
@@ -686,6 +686,12 @@
 	int ret;
 
 	printk(KERN_INFO "Linux video capture interface: v2.00\n");
+#ifdef EXPERIMENTAL_TREE
+	printk(KERN_ERR "WARNING: You're using an experimental version of the V4L stack. As the driver\n"
+			"         is backported to an older kernel, it doesn't offer enough quality for\n"
+			"         its usage in production.\n"
+			"         Use it with care.\n");
+#endif
 	ret = register_chrdev_region(dev, VIDEO_NUM_DEVICES, VIDEO_NAME);
 	if (ret < 0) {
 		printk(KERN_WARNING "videodev: unable to get major %d\n",
diff -r 60edc4bd92b7 v4l/compat.h
--- a/v4l/compat.h	Sun Jun 27 17:17:06 2010 -0300
+++ b/v4l/compat.h	Fri Sep 17 11:49:02 2010 -0300
@@ -14,6 +14,8 @@
 #define INIT_DELAYED_WORK(a,b,c)	INIT_WORK(a,b,c)
 #endif
 
+#define EXPERIMENTAL_TREE
+
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)
 #define usb_buffer_alloc(dev, size, mem_flags, dma) usb_alloc_coherent(dev, size, mem_flags, dma)
 #define usb_buffer_free(dev, size, addr, dma) usb_free_coherent(dev, size, addr, dma)
diff -r 60edc4bd92b7 v4l/scripts/make_kconfig.pl
--- a/v4l/scripts/make_kconfig.pl	Sun Jun 27 17:17:06 2010 -0300
+++ b/v4l/scripts/make_kconfig.pl	Fri Sep 17 11:49:02 2010 -0300
@@ -671,4 +671,13 @@
 
 EOF2
 	}
+print << "EOF3";
+WARNING: This is the V4L/DVB backport tree, with experimental drivers
+	 backported to run on legacy kernels from the development tree at:
+		http://git.linuxtv.org/media-tree.git.
+	 It is generally safe to use it for testing a new driver or
+	 feature, but its usage on production environments is risky.
+	 Don't use it at production. You've being warned.
+EOF3
+	sleep 5;
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -hg] Warn user that driver is backported and might not work as expected
  2010-09-17 14:55 [PATCH -hg] Warn user that driver is backported and might not work as expected Mauro Carvalho Chehab
@ 2010-09-18 22:57 ` David Ellingsworth
  2010-09-19  5:25   ` Douglas Schilling Landgraf
  2010-09-19  5:24 ` Douglas Schilling Landgraf
  1 sibling, 1 reply; 4+ messages in thread
From: David Ellingsworth @ 2010-09-18 22:57 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: Douglas Schilling Landgraf, Linux Media Mailing List

<snip>
> --- a/v4l/scripts/make_kconfig.pl       Sun Jun 27 17:17:06 2010 -0300
> +++ b/v4l/scripts/make_kconfig.pl       Fri Sep 17 11:49:02 2010 -0300
> @@ -671,4 +671,13 @@
>
>  EOF2
>        }
> +print << "EOF3";
> +WARNING: This is the V4L/DVB backport tree, with experimental drivers
> +        backported to run on legacy kernels from the development tree at:
> +               http://git.linuxtv.org/media-tree.git.
> +        It is generally safe to use it for testing a new driver or
> +        feature, but its usage on production environments is risky.
> +        Don't use it at production. You've being warned.

The last line should read: "Don't use it in production. You've been warned."

> +EOF3
> +       sleep 5;
>  }
> --

Regards,

David Ellingsworth

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -hg] Warn user that driver is backported and might not work as expected
  2010-09-17 14:55 [PATCH -hg] Warn user that driver is backported and might not work as expected Mauro Carvalho Chehab
  2010-09-18 22:57 ` David Ellingsworth
@ 2010-09-19  5:24 ` Douglas Schilling Landgraf
  1 sibling, 0 replies; 4+ messages in thread
From: Douglas Schilling Landgraf @ 2010-09-19  5:24 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: Linux Media Mailing List

Hi,

Mauro Carvalho Chehab wrote:
> Since the migration to -git, less developers are using the -hg tree. Also, some
> changes are happening upstream that would require much more than just compiling
> the tree with an older version, to be sure that the backport won't break anything,
> like the removal of BKL.
> 
> As normal users might not be aware of those issues, and bug reports may be sent
> based on a backported tree, add some messages to warn about the usage of a
> backported experimental (unsupported) tree.
> 
> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

Applied, thanks!

Cheers
Douglas

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -hg] Warn user that driver is backported and might not work as expected
  2010-09-18 22:57 ` David Ellingsworth
@ 2010-09-19  5:25   ` Douglas Schilling Landgraf
  0 siblings, 0 replies; 4+ messages in thread
From: Douglas Schilling Landgraf @ 2010-09-19  5:25 UTC (permalink / raw)
  To: David Ellingsworth; +Cc: Mauro Carvalho Chehab, Linux Media Mailing List

Hi,

David Ellingsworth wrote:
> <snip>
>> --- a/v4l/scripts/make_kconfig.pl       Sun Jun 27 17:17:06 2010 -0300
>> +++ b/v4l/scripts/make_kconfig.pl       Fri Sep 17 11:49:02 2010 -0300
>> @@ -671,4 +671,13 @@
>>
>>  EOF2
>>        }
>> +print << "EOF3";
>> +WARNING: This is the V4L/DVB backport tree, with experimental drivers
>> +        backported to run on legacy kernels from the development tree at:
>> +               http://git.linuxtv.org/media-tree.git.
>> +        It is generally safe to use it for testing a new driver or
>> +        feature, but its usage on production environments is risky.
>> +        Don't use it at production. You've being warned.
> 
> The last line should read: "Don't use it in production. You've been warned."
> 

Fixed thanks!

Cheers
Douglas

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-19  5:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-17 14:55 [PATCH -hg] Warn user that driver is backported and might not work as expected Mauro Carvalho Chehab
2010-09-18 22:57 ` David Ellingsworth
2010-09-19  5:25   ` Douglas Schilling Landgraf
2010-09-19  5:24 ` Douglas Schilling Landgraf

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).