Re: [PATCH 12/37] Remove unneeded version.h includes (and add where needed) for drivers/media/video/

From: Laurent Pinchart
Date: Fri Jun 24 2011 - 04:52:14 EST


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@xxxxxxxxxxxxx>

[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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/