[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201106241052.02244.laurent.pinchart@ideasonboard.com>
Date: Fri, 24 Jun 2011 10:52:00 +0200
From: Laurent Pinchart <laurent.pinchart@...asonboard.com>
To: Jesper Juhl <jj@...osbits.net>
Cc: LKML <linux-kernel@...r.kernel.org>, trivial@...nel.org,
linux-media@...r.kernel.org, linux-usb@...r.kernel.org,
ivtv-devel@...vdriver.org,
Mauro Carvalho Chehab <mchehab@...radead.org>,
Andy Walls <awalls@...metrocast.net>,
Luca Risolia <luca.risolia@...dio.unibo.it>,
Olivier Lorin <o.lorin@...oste.net>,
"Jean-Francois Moine" <moinejf@...e.fr>,
Huang Shijie <shijie8@...il.com>,
Kang Yong <kangyong@...egent.com>,
Zhang Xiaobing <xbzhang@...egent.com>
Subject: Re: [PATCH 12/37] Remove unneeded version.h includes (and add where needed) for drivers/media/video/
Hi Jesper,
On Friday 24 June 2011 00:17:01 Jesper Juhl wrote:
> It was pointed out by 'make versioncheck' that linux/version.h was not
> always being included where needed and sometimes included needlessly
> in drivers/media/video/.
> This patch fixes up the includes.
>
> Signed-off-by: Jesper Juhl <jj@...osbits.net>
[snip]
> diff --git a/drivers/media/video/uvc/uvc_v4l2.c
> b/drivers/media/video/uvc/uvc_v4l2.c index 543a803..7fbd389 100644
> --- a/drivers/media/video/uvc/uvc_v4l2.c
> +++ b/drivers/media/video/uvc/uvc_v4l2.c
> @@ -12,7 +12,6 @@
> */
>
> #include <linux/kernel.h>
> -#include <linux/version.h>
> #include <linux/list.h>
> #include <linux/module.h>
> #include <linux/slab.h>
uvc_v4l2.c uses KERNEL_VERSION explicitly. It includes linux/version.h through
linux/media.h, but I'd rather keep the explicit include.
> diff --git a/drivers/media/video/uvc/uvcvideo.h
> b/drivers/media/video/uvc/uvcvideo.h index 20107fd..1c0fe5e 100644
> --- a/drivers/media/video/uvc/uvcvideo.h
> +++ b/drivers/media/video/uvc/uvcvideo.h
> @@ -101,6 +101,7 @@ struct uvc_xu_control {
> #include <linux/usb.h>
> #include <linux/usb/video.h>
> #include <linux/uvcvideo.h>
> +#include <linux/version.h>
> #include <media/media-device.h>
> #include <media/v4l2-device.h>
This file doesn't include linux/version.h anymore in 3.0-rc4.
--
Regards,
Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists