From: Felipe Balbi <balbi@ti.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: balbi@ti.com, Jesper Juhl <jj@chaosbits.net>,
LKML <linux-kernel@vger.kernel.org>,
trivial@kernel.org, Greg Kroah-Hartman <gregkh@suse.de>,
Matthew Dharm <mdharm-usb@one-eyed-alien.net>,
linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net
Subject: Re: [PATCH][Resend] Remove unneeded version.h includes (and add where needed) for drivers/usb/
Date: Wed, 3 Aug 2011 01:50:42 +0300 [thread overview]
Message-ID: <20110802225041.GA10284@legolas.emea.dhcp.ti.com> (raw)
In-Reply-To: <201108030011.54322.laurent.pinchart@ideasonboard.com>
[-- Attachment #1: Type: text/plain, Size: 1903 bytes --]
Hi Laurent,
On Wed, Aug 03, 2011 at 12:11:53AM +0200, Laurent Pinchart wrote:
> Hi Felipe,
>
> On Tuesday 02 August 2011 23:19:24 Felipe Balbi wrote:
> > On Mon, Aug 01, 2011 at 11:33:29PM +0200, 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/usb/.
> > > This patch fixes up the includes.
> > >
> > > For the UVC gadget driver bits, this was ACK'ed by Laurent Pinchart.
> > >
> > > Signed-off-by: Jesper Juhl <jj@chaosbits.net>
> > > Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > > ---
> > >
> > > drivers/usb/gadget/uvc.h | 1 +
> > > drivers/usb/gadget/uvc_v4l2.c | 1 -
> > > drivers/usb/storage/realtek_cr.c | 1 -
> > > 3 files changed, 1 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/drivers/usb/gadget/uvc.h b/drivers/usb/gadget/uvc.h
> > > index 5b79194..81971fb 100644
> > > --- a/drivers/usb/gadget/uvc.h
> > > +++ b/drivers/usb/gadget/uvc.h
> > > @@ -56,6 +56,7 @@ struct uvc_event
> > >
> > > #include <linux/usb.h> /* For usb_endpoint_* */
> > > #include <linux/usb/gadget.h>
> > > #include <linux/videodev2.h>
> > >
> > > +#include <linux/version.h>
> >
> > does uvc.h really needs <linux/version.h> ?? Laurent ?
>
> uvc.h has
>
> #define DRIVER_VERSION_NUMBER KERNEL_VERSION(0, 1, 0)
>
> This is used in drivers/usb/gadget/uvc_v4l2.c only.
>
> As the uvc gadget driver lives in-tree, the best fix is probably to remove
> DRIVER_VERSION_NUMBER completely, and replace it with LINUX_VERSION_CODE where
> it is used.
yeah, I can agree with that, but do you need a MODULE_VERSION() anyway ?
Would it be better to just remove the MODULE_VERSION altogether as
there's no real benefit from having it ?
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
next prev parent reply other threads:[~2011-08-02 22:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-01 21:33 Jesper Juhl
2011-08-02 21:19 ` Felipe Balbi
2011-08-02 22:11 ` Laurent Pinchart
2011-08-02 22:50 ` Felipe Balbi [this message]
2011-08-03 8:18 ` Laurent Pinchart
2011-08-03 10:03 ` Felipe Balbi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110802225041.GA10284@legolas.emea.dhcp.ti.com \
--to=balbi@ti.com \
--cc=gregkh@suse.de \
--cc=jj@chaosbits.net \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mdharm-usb@one-eyed-alien.net \
--cc=trivial@kernel.org \
--cc=usb-storage@lists.one-eyed-alien.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®