From patchwork Fri Sep 17 14:55:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 188332 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8HEtoBW004535 for ; Fri, 17 Sep 2010 14:55:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755017Ab0IQOz1 (ORCPT ); Fri, 17 Sep 2010 10:55:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48860 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755007Ab0IQOzZ (ORCPT ); Fri, 17 Sep 2010 10:55:25 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o8HEtOJI002840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 17 Sep 2010 10:55:24 -0400 Received: from [10.3.238.156] (vpn-238-156.phx2.redhat.com [10.3.238.156]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o8HEtKxm006381 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 17 Sep 2010 10:55:23 -0400 Message-ID: <4C938158.9020604@redhat.com> Date: Fri, 17 Sep 2010 11:55:20 -0300 From: Mauro Carvalho Chehab User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100827 Red Hat/3.1.3-1.el6 Lightning/1.0b2 Thunderbird/3.1.3 MIME-Version: 1.0 To: Douglas Schilling Landgraf , Linux Media Mailing List Subject: [PATCH -hg] Warn user that driver is backported and might not work as expected X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 17 Sep 2010 14:55:51 +0000 (UTC) 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; }