[GIT,PULL,FOR,v3.10] v4l2: make arg of write-only ioctls const
Message ID | 201303221204.14376.hverkuil@xs4all.nl (mailing list archive) |
---|---|
State | Changes Requested, archived |
Headers |
Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from <linux-media-owner@vger.kernel.org>) id 1UIzlr-0001Dn-QW; Fri, 22 Mar 2013 12:04:27 +0100 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-4) with esmtp id 1UIzlq-0006jj-Ay; Fri, 22 Mar 2013 12:04:27 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932362Ab3CVLEY (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Fri, 22 Mar 2013 07:04:24 -0400 Received: from smtp-vbr12.xs4all.nl ([194.109.24.32]:3561 "EHLO smtp-vbr12.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754525Ab3CVLEX (ORCPT <rfc822;linux-media@vger.kernel.org>); Fri, 22 Mar 2013 07:04:23 -0400 Received: from alastor.dyndns.org (166.80-203-20.nextgentel.com [80.203.20.166] (may be forged)) (authenticated bits=0) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id r2MB4JCh009040 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for <linux-media@vger.kernel.org>; Fri, 22 Mar 2013 12:04:22 +0100 (CET) (envelope-from hverkuil@xs4all.nl) Received: from durdane.localnet (64-103-25-233.cisco.com [64.103.25.233]) (Authenticated sender: hans) by alastor.dyndns.org (Postfix) with ESMTPSA id 194BE11E0154 for <linux-media@vger.kernel.org>; Fri, 22 Mar 2013 12:04:19 +0100 (CET) From: Hans Verkuil <hverkuil@xs4all.nl> To: "linux-media" <linux-media@vger.kernel.org> Subject: [GIT PULL FOR v3.10] v4l2: make arg of write-only ioctls const Date: Fri, 22 Mar 2013 12:04:14 +0100 User-Agent: KMail/1.13.7 (Linux/3.9.0-rc1-durdane; KDE/4.8.4; x86_64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201303221204.14376.hverkuil@xs4all.nl> X-Virus-Scanned: by XS4ALL Virus Scanner Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2013.3.22.105716 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODY_SIZE_10000_PLUS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_MEDIA_BODY 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILING_LIST 0, __INT_PROD_TV 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __URI_NS , __USER_AGENT 0' |
Pull-request
git://linuxtv.org/hverkuil/media_tree.git constMessage
Hans Verkuil
March 22, 2013, 11:04 a.m. UTC
Hi Mauro, This is the second and last phase of ensuring that the arguments of write-only ioctls in V4L2 are const. The first phase was 4-5 months ago and added const to s_crop, s_modulator, s_audio, s_audout, (un)subscribe_event, s_freq_hw_seek, s_jpegcomp and s_fbuf. This second phase adds const to s_frequency, s_tuner, s_std and s_register. Actually, for s_std it doesn't add const but changes it to pass the std by value which is more consistent in that particular case. As a result drivers will be aware when they are implementing write-only ioctls (and I saw a few drivers attempting to return data back to the user), and the v4l2 core will know that drivers won't change the argument of a write-only ioctls which simplifies the core debug code. The changes have been compile-tested with the linux-media daily build but I may have missed some more exotic architectures. Ideally I would like to have this merged fairly early on so we have enough time to shake out any remaining compile problems. This pull request is identical to: http://www.mail-archive.com/linux-media@vger.kernel.org/msg59774.html and http://www.mail-archive.com/linux-media@vger.kernel.org/msg59886.html with this final change for radio-keene.c: http://www.spinics.net/lists/linux-media/msg61339.html and an extra s_register change for the ths7303 due to the recently merged ths7303 change. Note that I will be making more pull requests based on top of this pull request since you will get merge conflicts otherwise. Regards, Hans The following changes since commit d7104bffcfb7a1a7f1dbb1274443e339588c2cb3: [media] MAINTAINERS: add drivers/media/tuners/it913x* (2013-03-21 19:06:43 -0300) are available in the git repository at: git://linuxtv.org/hverkuil/media_tree.git const for you to fetch changes up to 8bf1a5a826d06a9b6f65b3e8dffb9be59d8937c3: v4l2-ioctl: add precision when printing names. (2013-03-22 11:59:21 +0100) ---------------------------------------------------------------- Hans Verkuil (6): v4l2: add const to argument of write-only s_frequency ioctl. v4l2: add const to argument of write-only s_tuner ioctl. v4l2: pass std by value to the write-only s_std ioctl. v4l2: add const to argument of write-only s_register ioctl. v4l2-ioctl: simplify debug code. v4l2-ioctl: add precision when printing names. drivers/media/common/saa7146/saa7146_video.c | 4 +-- drivers/media/dvb-frontends/au8522_decoder.c | 2 +- drivers/media/i2c/ad9389b.c | 2 +- drivers/media/i2c/adv7183.c | 2 +- drivers/media/i2c/adv7604.c | 2 +- drivers/media/i2c/ak881x.c | 2 +- drivers/media/i2c/cs5345.c | 2 +- drivers/media/i2c/cx25840/cx25840-core.c | 6 ++-- drivers/media/i2c/m52790.c | 2 +- drivers/media/i2c/msp3400-driver.c | 4 +-- drivers/media/i2c/mt9m032.c | 2 +- drivers/media/i2c/mt9v011.c | 2 +- drivers/media/i2c/ov7670.c | 2 +- drivers/media/i2c/saa6588.c | 2 +- drivers/media/i2c/saa7115.c | 2 +- drivers/media/i2c/saa7127.c | 2 +- drivers/media/i2c/saa717x.c | 4 +-- drivers/media/i2c/soc_camera/mt9m001.c | 2 +- drivers/media/i2c/soc_camera/mt9m111.c | 2 +- drivers/media/i2c/soc_camera/mt9t031.c | 2 +- drivers/media/i2c/soc_camera/mt9t112.c | 2 +- drivers/media/i2c/soc_camera/mt9v022.c | 2 +- drivers/media/i2c/soc_camera/ov2640.c | 2 +- drivers/media/i2c/soc_camera/ov5642.c | 2 +- drivers/media/i2c/soc_camera/ov6650.c | 2 +- drivers/media/i2c/soc_camera/ov772x.c | 2 +- drivers/media/i2c/soc_camera/ov9640.c | 2 +- drivers/media/i2c/soc_camera/ov9740.c | 2 +- drivers/media/i2c/soc_camera/rj54n1cb0c.c | 2 +- drivers/media/i2c/soc_camera/tw9910.c | 2 +- drivers/media/i2c/tda9840.c | 2 +- drivers/media/i2c/ths7303.c | 2 +- drivers/media/i2c/tvaudio.c | 4 +-- drivers/media/i2c/tvp5150.c | 2 +- drivers/media/i2c/tvp7002.c | 2 +- drivers/media/i2c/upd64031a.c | 4 +-- drivers/media/i2c/upd64083.c | 2 +- drivers/media/i2c/vp27smpx.c | 2 +- drivers/media/i2c/vs6624.c | 2 +- drivers/media/i2c/wm8775.c | 2 +- drivers/media/parport/pms.c | 4 +-- drivers/media/pci/bt8xx/bttv-driver.c | 36 +++++++++++++----------- drivers/media/pci/cx18/cx18-av-core.c | 6 ++-- drivers/media/pci/cx18/cx18-driver.c | 2 +- drivers/media/pci/cx18/cx18-ioctl.c | 50 ++++++++++++++------------------- drivers/media/pci/cx18/cx18-ioctl.h | 4 +-- drivers/media/pci/cx23885/cx23885-417.c | 10 +++---- drivers/media/pci/cx23885/cx23885-ioctl.c | 9 ++---- drivers/media/pci/cx23885/cx23885-ioctl.h | 2 +- drivers/media/pci/cx23885/cx23885-video.c | 14 +++++----- drivers/media/pci/cx23885/cx23885.h | 2 +- drivers/media/pci/cx23885/cx23888-ir.c | 2 +- drivers/media/pci/cx25821/cx25821-video.c | 14 +++++----- drivers/media/pci/cx25821/cx25821-video.h | 10 +++---- drivers/media/pci/cx88/cx88-blackbird.c | 8 +++--- drivers/media/pci/cx88/cx88-video.c | 25 ++++++++--------- drivers/media/pci/cx88/cx88.h | 2 +- drivers/media/pci/ivtv/ivtv-driver.c | 4 +-- drivers/media/pci/ivtv/ivtv-firmware.c | 4 +-- drivers/media/pci/ivtv/ivtv-gpio.c | 2 +- drivers/media/pci/ivtv/ivtv-ioctl.c | 73 ++++++++++++++++++++++++------------------------ drivers/media/pci/ivtv/ivtv-ioctl.h | 6 ++-- drivers/media/pci/saa7134/saa7134-empress.c | 2 +- drivers/media/pci/saa7134/saa7134-video.c | 22 +++++++-------- drivers/media/pci/saa7134/saa7134.h | 2 +- drivers/media/pci/saa7146/mxb.c | 9 +++--- drivers/media/pci/saa7164/saa7164-encoder.c | 14 +++++----- drivers/media/pci/saa7164/saa7164-vbi.c | 12 ++++---- drivers/media/pci/sta2x11/sta2x11_vip.c | 18 ++++++------ drivers/media/pci/ttpci/av7110_v4l.c | 4 +-- drivers/media/pci/zoran/zoran_driver.c | 4 +-- drivers/media/platform/blackfin/bfin_capture.c | 8 +++--- drivers/media/platform/davinci/vpbe.c | 8 +++--- drivers/media/platform/davinci/vpbe_display.c | 4 +-- drivers/media/platform/davinci/vpfe_capture.c | 12 ++++---- drivers/media/platform/davinci/vpif_capture.c | 9 +++--- drivers/media/platform/davinci/vpif_display.c | 13 +++++---- drivers/media/platform/fsl-viu.c | 6 ++-- drivers/media/platform/marvell-ccic/mcam-core.c | 4 +-- drivers/media/platform/s5p-tv/mixer_video.c | 4 +-- drivers/media/platform/sh_vou.c | 14 +++++----- drivers/media/platform/soc_camera/soc_camera.c | 6 ++-- drivers/media/platform/timblogiw.c | 6 ++-- drivers/media/platform/via-camera.c | 2 +- drivers/media/platform/vino.c | 10 +++---- drivers/media/radio/dsbr100.c | 4 +-- drivers/media/radio/radio-cadet.c | 48 ++++++++++++++++---------------- drivers/media/radio/radio-isa.c | 11 ++++---- drivers/media/radio/radio-keene.c | 8 +++--- drivers/media/radio/radio-ma901.c | 4 +-- drivers/media/radio/radio-miropcm20.c | 12 ++++---- drivers/media/radio/radio-mr800.c | 4 +-- drivers/media/radio/radio-sf16fmi.c | 4 +-- drivers/media/radio/radio-si4713.c | 2 +- drivers/media/radio/radio-tea5764.c | 4 +-- drivers/media/radio/radio-tea5777.c | 9 +++--- drivers/media/radio/radio-timb.c | 4 +-- drivers/media/radio/radio-wl1273.c | 4 +-- drivers/media/radio/si470x/radio-si470x-common.c | 4 +-- drivers/media/radio/si4713-i2c.c | 5 ++-- drivers/media/radio/tef6862.c | 4 +-- drivers/media/radio/wl128x/fmdrv_v4l2.c | 8 ++---- drivers/media/usb/au0828/au0828-video.c | 12 ++++---- drivers/media/usb/cx231xx/cx231xx-417.c | 4 +-- drivers/media/usb/cx231xx/cx231xx-video.c | 19 +++++++------ drivers/media/usb/cx231xx/cx231xx.h | 6 ++-- drivers/media/usb/em28xx/em28xx-video.c | 21 +++++++------- drivers/media/usb/gspca/gspca.c | 2 +- drivers/media/usb/gspca/gspca.h | 8 ++++-- drivers/media/usb/gspca/pac7302.c | 2 +- drivers/media/usb/gspca/sn9c20x.c | 2 +- drivers/media/usb/hdpvr/hdpvr-video.c | 4 +-- drivers/media/usb/pvrusb2/pvrusb2-hdw.c | 2 +- drivers/media/usb/pvrusb2/pvrusb2-hdw.h | 2 +- drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 10 +++---- drivers/media/usb/s2255/s2255drv.c | 8 +++--- drivers/media/usb/stk1160/stk1160-v4l.c | 6 ++-- drivers/media/usb/tlg2300/pd-radio.c | 4 +-- drivers/media/usb/tlg2300/pd-video.c | 15 +++++----- drivers/media/usb/tm6000/tm6000-video.c | 16 ++++------- drivers/media/usb/usbvision/usbvision-video.c | 10 +++---- drivers/media/v4l2-core/tuner-core.c | 4 +-- drivers/media/v4l2-core/v4l2-ioctl.c | 85 +++++++++++++++++++++++++++----------------------------- drivers/staging/media/davinci_vpfe/vpfe_video.c | 6 ++-- drivers/staging/media/dt3155v4l/dt3155v4l.c | 4 +-- drivers/staging/media/go7007/go7007-v4l2.c | 20 ++++++------- drivers/staging/media/solo6x10/v4l2-enc.c | 2 +- drivers/staging/media/solo6x10/v4l2.c | 2 +- include/media/davinci/vpbe.h | 2 +- include/media/v4l2-ioctl.h | 8 +++--- include/media/v4l2-subdev.h | 6 ++-- sound/i2c/other/tea575x-tuner.c | 6 ++-- 132 files changed, 500 insertions(+), 513 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html