All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument
@ 2013-08-16 18:49 Kumar Gaurav
  2013-08-16 18:57 ` Greg KH
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Kumar Gaurav @ 2013-08-16 18:49 UTC (permalink / raw)
  To: kernel-janitors

Removed struct xhci_hcd from xhci_readl fucntion as it's no more in use.
---
 drivers/usb/host/xhci.h |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index c338741..7cf0e41 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1598,8 +1598,7 @@ static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci)
 
 /* TODO: copied from ehci.h - can be refactored? */
 /* xHCI spec says all registers are little endian */
-static inline unsigned int xhci_readl(const struct xhci_hcd *xhci,
-		__le32 __iomem *regs)
+static inline unsigned int xhci_readl(__le32 __iomem *regs)
 {
 	return readl(regs);
 }
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument
  2013-08-16 18:49 [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument Kumar Gaurav
@ 2013-08-16 18:57 ` Greg KH
  2013-08-16 19:00 ` Greg KH
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2013-08-16 18:57 UTC (permalink / raw)
  To: kernel-janitors

On Sat, Aug 17, 2013 at 12:18:42AM +0530, Kumar Gaurav wrote:
> Removed struct xhci_hcd from xhci_readl fucntion as it's no more in use.
> ---
>  drivers/usb/host/xhci.h |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

When sending kernel patches, it helps to run them through the
scripts/checkpatch.pl tool first, before sending them out to the world.
It will point out problems that are in the patch that you can fix up
before someone like me points it out again :)

Care to run all of these through that tool and fix up the issues it
points out?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument
  2013-08-16 18:49 [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument Kumar Gaurav
  2013-08-16 18:57 ` Greg KH
@ 2013-08-16 19:00 ` Greg KH
  2013-08-16 19:14 ` Greg KH
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2013-08-16 19:00 UTC (permalink / raw)
  To: kernel-janitors

On Sat, Aug 17, 2013 at 12:18:42AM +0530, Kumar Gaurav wrote:
> Removed struct xhci_hcd from xhci_readl fucntion as it's no more in use.
> ---
>  drivers/usb/host/xhci.h |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
> index c338741..7cf0e41 100644
> --- a/drivers/usb/host/xhci.h
> +++ b/drivers/usb/host/xhci.h
> @@ -1598,8 +1598,7 @@ static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci)
>  
>  /* TODO: copied from ehci.h - can be refactored? */
>  /* xHCI spec says all registers are little endian */
> -static inline unsigned int xhci_readl(const struct xhci_hcd *xhci,
> -		__le32 __iomem *regs)
> +static inline unsigned int xhci_readl(__le32 __iomem *regs)

And you broke the build :(

Sorry, that's not ok.

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument
  2013-08-16 18:49 [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument Kumar Gaurav
  2013-08-16 18:57 ` Greg KH
  2013-08-16 19:00 ` Greg KH
@ 2013-08-16 19:14 ` Greg KH
  2013-08-16 19:16 ` Kumar Gaurav
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2013-08-16 19:14 UTC (permalink / raw)
  To: kernel-janitors

On Sat, Aug 17, 2013 at 12:34:04AM +0530, Kumar Gaurav wrote:
> On Saturday 17 August 2013 12:30 AM, Greg KH wrote:
> >On Sat, Aug 17, 2013 at 12:18:42AM +0530, Kumar Gaurav wrote:
> >>Removed struct xhci_hcd from xhci_readl fucntion as it's no more in use.
> >>---
> >>  drivers/usb/host/xhci.h |    3 +--
> >>  1 file changed, 1 insertion(+), 2 deletions(-)
> >>
> >>diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.hthe
> >>index c338741..7cf0e41 100644
> >>--- a/drivers/usb/host/xhci.h
> >>+++ b/drivers/usb/host/xhci.h
> >>@@ -1598,8 +1598,7 @@ static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci)
> >>  /* TODO: copied from ehci.h - can be refactored? */
> >>  /* xHCI spec says all registers are little endian */
> >>-static inline unsigned int xhci_readl(const struct xhci_hcd *xhci,
> >>-		__le32 __iomem *regs)
> >>+static inline unsigned int xhci_readl(__le32 __iomem *regs)
> >And you broke the build :(
> >
> >Sorry, that's not ok.
> >
> >greg k-h
> I'm writing patch to change function definition along with changes
> in program files where this function is called.
> After changing all files i built the module and it compiled as well.
> 
> There were 6 files which were using xhci_read. I fixed all the calls
> and compiled.
> Am i missing anything? Please suggest then i'll send patches again

Patches get applied in order, and each patch must be "stand alone".  In
other words, one patch can not break the build, and the next one fix it
up.  Perhaps this should all just be one big patch, as you really are
only doing one thing, right?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument
  2013-08-16 18:49 [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument Kumar Gaurav
                   ` (2 preceding siblings ...)
  2013-08-16 19:14 ` Greg KH
@ 2013-08-16 19:16 ` Kumar Gaurav
  2013-08-17  6:49 ` Julia Lawall
  2013-08-17 18:21 ` Kumar Gaurav
  5 siblings, 0 replies; 7+ messages in thread
From: Kumar Gaurav @ 2013-08-16 19:16 UTC (permalink / raw)
  To: kernel-janitors

On Saturday 17 August 2013 12:30 AM, Greg KH wrote:
> On Sat, Aug 17, 2013 at 12:18:42AM +0530, Kumar Gaurav wrote:
>> Removed struct xhci_hcd from xhci_readl fucntion as it's no more in use.
>> ---
>>   drivers/usb/host/xhci.h |    3 +--
>>   1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.hthe
>> index c338741..7cf0e41 100644
>> --- a/drivers/usb/host/xhci.h
>> +++ b/drivers/usb/host/xhci.h
>> @@ -1598,8 +1598,7 @@ static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci)
>>   
>>   /* TODO: copied from ehci.h - can be refactored? */
>>   /* xHCI spec says all registers are little endian */
>> -static inline unsigned int xhci_readl(const struct xhci_hcd *xhci,
>> -		__le32 __iomem *regs)
>> +static inline unsigned int xhci_readl(__le32 __iomem *regs)
> And you broke the build :(
>
> Sorry, that's not ok.
>
> greg k-h
I'm writing patch to change function definition along with changes in 
program files where this function is called.
After changing all files i built the module and it compiled as well.

There were 6 files which were using xhci_read. I fixed all the calls and 
compiled.
Am i missing anything? Please suggest then i'll send patches again
thanks



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument
  2013-08-16 18:49 [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument Kumar Gaurav
                   ` (3 preceding siblings ...)
  2013-08-16 19:16 ` Kumar Gaurav
@ 2013-08-17  6:49 ` Julia Lawall
  2013-08-17 18:21 ` Kumar Gaurav
  5 siblings, 0 replies; 7+ messages in thread
From: Julia Lawall @ 2013-08-17  6:49 UTC (permalink / raw)
  To: kernel-janitors

On Sat, 17 Aug 2013, Kumar Gaurav wrote:

> On Saturday 17 August 2013 12:30 AM, Greg KH wrote:
> > On Sat, Aug 17, 2013 at 12:18:42AM +0530, Kumar Gaurav wrote:
> > > Removed struct xhci_hcd from xhci_readl fucntion as it's no more in use.
> > > ---
> > >   drivers/usb/host/xhci.h |    3 +--
> > >   1 file changed, 1 insertion(+), 2 deletions(-)
> > > 
> > > diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.hthe
> > > index c338741..7cf0e41 100644
> > > --- a/drivers/usb/host/xhci.h
> > > +++ b/drivers/usb/host/xhci.h
> > > @@ -1598,8 +1598,7 @@ static inline struct usb_hcd *xhci_to_hcd(struct
> > > xhci_hcd *xhci)
> > >     /* TODO: copied from ehci.h - can be refactored? */
> > >   /* xHCI spec says all registers are little endian */
> > > -static inline unsigned int xhci_readl(const struct xhci_hcd *xhci,
> > > -		__le32 __iomem *regs)
> > > +static inline unsigned int xhci_readl(__le32 __iomem *regs)
> > And you broke the build :(
> > 
> > Sorry, that's not ok.
> > 
> > greg k-h
> I'm writing patch to change function definition along with changes in program
> files where this function is called.
> After changing all files i built the module and it compiled as well.
> 
> There were 6 files which were using xhci_read. I fixed all the calls and
> compiled.
> Am i missing anything? Please suggest then i'll send patches again

I haven't followed along in detail, but I think Greg wants one patch that 
fixes both the definition and all of the calls, and not one patch for each 
file.

julia

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument
  2013-08-16 18:49 [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument Kumar Gaurav
                   ` (4 preceding siblings ...)
  2013-08-17  6:49 ` Julia Lawall
@ 2013-08-17 18:21 ` Kumar Gaurav
  5 siblings, 0 replies; 7+ messages in thread
From: Kumar Gaurav @ 2013-08-17 18:21 UTC (permalink / raw)
  To: kernel-janitors

On Saturday 17 August 2013 12:19 PM, Julia Lawall wrote:
> On Sat, 17 Aug 2013, Kumar Gaurav wrote:
>
>> On Saturday 17 August 2013 12:30 AM, Greg KH wrote:
>>> On Sat, Aug 17, 2013 at 12:18:42AM +0530, Kumar Gaurav wrote:
>>>> Removed struct xhci_hcd from xhci_readl fucntion as it's no more in use.
>>>> ---
>>>>    drivers/usb/host/xhci.h |    3 +--
>>>>    1 file changed, 1 insertion(+), 2 deletions(-)
>>>>
>>>> diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.hthe
>>>> index c338741..7cf0e41 100644
>>>> --- a/drivers/usb/host/xhci.h
>>>> +++ b/drivers/usb/host/xhci.h
>>>> @@ -1598,8 +1598,7 @@ static inline struct usb_hcd *xhci_to_hcd(struct
>>>> xhci_hcd *xhci)
>>>>      /* TODO: copied from ehci.h - can be refactored? */
>>>>    /* xHCI spec says all registers are little endian */
>>>> -static inline unsigned int xhci_readl(const struct xhci_hcd *xhci,
>>>> -		__le32 __iomem *regs)
>>>> +static inline unsigned int xhci_readl(__le32 __iomem *regs)
>>> And you broke the build :(
>>>
>>> Sorry, that's not ok.
>>>
>>> greg k-h
>> I'm writing patch to change function definition along with changes in program
>> files where this function is called.
>> After changing all files i built the module and it compiled as well.
>>
>> There were 6 files which were using xhci_read. I fixed all the calls and
>> compiled.
>> Am i missing anything? Please suggest then i'll send patches again
> I haven't followed along in detail, but I think Greg wants one patch that
> fixes both the definition and all of the calls, and not one patch for each
> file.
>
> julia
yeah i understand that now. I wasn't aware of this before, i thought a 
series of patch would be required for multiple files. My bad. I'm 
resending in single patch


Regards
Kumar gaurav

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-08-17 18:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-16 18:49 [PATCH 1/6] drivers:usb:host:xhci.h Removing xhci_hcd from argument Kumar Gaurav
2013-08-16 18:57 ` Greg KH
2013-08-16 19:00 ` Greg KH
2013-08-16 19:14 ` Greg KH
2013-08-16 19:16 ` Kumar Gaurav
2013-08-17  6:49 ` Julia Lawall
2013-08-17 18:21 ` Kumar Gaurav

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.