* [PATCH] staging/otus: trivial, fix sparse warnig.
@ 2009-10-30 0:04 Thiago Farina
2009-11-06 22:47 ` Greg KH
0 siblings, 1 reply; 14+ messages in thread
From: Thiago Farina @ 2009-10-30 0:04 UTC (permalink / raw)
To: linux-kernel; +Cc: greg, otus-devel, Luis.Rodriguez, Thiago Farina
*apdbg.c: use NULL pointer instead of 0 integer.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
---
drivers/staging/otus/apdbg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/otus/apdbg.c b/drivers/staging/otus/apdbg.c
index d3e2f62..70a40b8 100644
--- a/drivers/staging/otus/apdbg.c
+++ b/drivers/staging/otus/apdbg.c
@@ -109,7 +109,7 @@ int set_ioctl(int sock, struct ifreq *req)
int read_reg(int sock, struct ifreq *req)
{
- struct zdap_ioctl *zdreq = 0;
+ struct zdap_ioctl *zdreq = NULL;
if (!set_ioctl(sock, req))
return -1;
@@ -123,7 +123,7 @@ int read_reg(int sock, struct ifreq *req)
int read_mem(int sock, struct ifreq *req)
{
- struct zdap_ioctl *zdreq = 0;
+ struct zdap_ioctl *zdreq = NULL;
int i;
if (!set_ioctl(sock, req))
--
1.6.5.1.61.ge79999
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH] staging/otus: trivial, fix sparse warnig.
2009-10-30 0:04 [PATCH] staging/otus: trivial, fix sparse warnig Thiago Farina
@ 2009-11-06 22:47 ` Greg KH
2009-11-06 23:47 ` Thiago Farina
0 siblings, 1 reply; 14+ messages in thread
From: Greg KH @ 2009-11-06 22:47 UTC (permalink / raw)
To: Thiago Farina; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
On Thu, Oct 29, 2009 at 08:04:26PM -0400, Thiago Farina wrote:
> *apdbg.c: use NULL pointer instead of 0 integer.
>
> Signed-off-by: Thiago Farina <tfransosi@gmail.com>
> ---
> drivers/staging/otus/apdbg.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/otus/apdbg.c b/drivers/staging/otus/apdbg.c
> index d3e2f62..70a40b8 100644
> --- a/drivers/staging/otus/apdbg.c
> +++ b/drivers/staging/otus/apdbg.c
> @@ -109,7 +109,7 @@ int set_ioctl(int sock, struct ifreq *req)
>
> int read_reg(int sock, struct ifreq *req)
> {
> - struct zdap_ioctl *zdreq = 0;
> + struct zdap_ioctl *zdreq = NULL;
The tabs somehow got converted to spaces in your patches, so they can't
be applied :(
care to rediff both of them?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] staging/otus: trivial, fix sparse warnig.
2009-11-06 22:47 ` Greg KH
@ 2009-11-06 23:47 ` Thiago Farina
2009-11-07 0:07 ` Greg KH
2009-11-07 0:20 ` [PATCH] " Thiago Farina
0 siblings, 2 replies; 14+ messages in thread
From: Thiago Farina @ 2009-11-06 23:47 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
Hi Greg,
On Fri, Nov 6, 2009 at 8:47 PM, Greg KH <greg@kroah.com> wrote:
> The tabs somehow got converted to spaces in your patches, so they can't
> be applied :(
I can't see spaces instead of tabs in this patch, may be you are
talking about other patch?
> care to rediff both of them?
Sure, but which?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] staging/otus: trivial, fix sparse warnig.
2009-11-06 23:47 ` Thiago Farina
@ 2009-11-07 0:07 ` Greg KH
2009-11-07 1:23 ` Thiago Farina
2009-11-07 0:20 ` [PATCH] " Thiago Farina
1 sibling, 1 reply; 14+ messages in thread
From: Greg KH @ 2009-11-07 0:07 UTC (permalink / raw)
To: Thiago Farina; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
On Fri, Nov 06, 2009 at 09:47:22PM -0200, Thiago Farina wrote:
> Hi Greg,
>
> On Fri, Nov 6, 2009 at 8:47 PM, Greg KH <greg@kroah.com> wrote:
> > The tabs somehow got converted to spaces in your patches, so they can't
> > be applied :(
>
> I can't see spaces instead of tabs in this patch, may be you are
> talking about other patch?
Well, for some reason this patch would not apply at all, it looks like
there are no tabs in it.
> > care to rediff both of them?
> Sure, but which?
This one, and you sent another otus one, right?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] staging/otus: trivial, fix sparse warnig.
2009-11-06 23:47 ` Thiago Farina
2009-11-07 0:07 ` Greg KH
@ 2009-11-07 0:20 ` Thiago Farina
1 sibling, 0 replies; 14+ messages in thread
From: Thiago Farina @ 2009-11-07 0:20 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
On Fri, Nov 6, 2009 at 9:47 PM, Thiago Farina <tfransosi@gmail.com> wrote:
> Hi Greg,
>
> On Fri, Nov 6, 2009 at 8:47 PM, Greg KH <greg@kroah.com> wrote:
>> The tabs somehow got converted to spaces in your patches, so they can't
>> be applied :(
>
> I can't see spaces instead of tabs in this patch, may be you are
> talking about other patch?
Sorry Greg, I think my answer was rude. Please could you tell me if
this patch has spaces instead of tabs, or is another patch that I
sent? If so, just point me, then I will make all the corrections.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH] staging/otus: trivial, fix sparse warnig.
2009-11-07 0:07 ` Greg KH
@ 2009-11-07 1:23 ` Thiago Farina
2009-11-07 1:45 ` [PATCH v2] " Thiago Farina
0 siblings, 1 reply; 14+ messages in thread
From: Thiago Farina @ 2009-11-07 1:23 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
On Fri, Nov 6, 2009 at 10:07 PM, Greg KH <greg@kroah.com> wrote:
> Well, for some reason this patch would not apply at all, it looks like
> there are no tabs in it.
I will rebase it and send it again. I hope it will works this time :)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2] staging/otus: trivial, fix sparse warnig.
2009-11-07 1:23 ` Thiago Farina
@ 2009-11-07 1:45 ` Thiago Farina
2009-11-19 19:34 ` Greg KH
0 siblings, 1 reply; 14+ messages in thread
From: Thiago Farina @ 2009-11-07 1:45 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
*apdbg.c: use NULL pointer instead of 0 integer.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
---
drivers/staging/otus/apdbg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/otus/apdbg.c b/drivers/staging/otus/apdbg.c
index d3e2f62..70a40b8 100644
--- a/drivers/staging/otus/apdbg.c
+++ b/drivers/staging/otus/apdbg.c
@@ -109,7 +109,7 @@ int set_ioctl(int sock, struct ifreq *req)
int read_reg(int sock, struct ifreq *req)
{
- struct zdap_ioctl *zdreq = 0;
+ struct zdap_ioctl *zdreq = NULL;
if (!set_ioctl(sock, req))
return -1;
@@ -123,7 +123,7 @@ int read_reg(int sock, struct ifreq *req)
int read_mem(int sock, struct ifreq *req)
{
- struct zdap_ioctl *zdreq = 0;
+ struct zdap_ioctl *zdreq = NULL;
int i;
if (!set_ioctl(sock, req))
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v2] staging/otus: trivial, fix sparse warnig.
2009-11-07 1:45 ` [PATCH v2] " Thiago Farina
@ 2009-11-19 19:34 ` Greg KH
2009-11-20 19:18 ` Thiago Farina
0 siblings, 1 reply; 14+ messages in thread
From: Greg KH @ 2009-11-19 19:34 UTC (permalink / raw)
To: Thiago Farina; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
On Fri, Nov 06, 2009 at 11:45:05PM -0200, Thiago Farina wrote:
> *apdbg.c: use NULL pointer instead of 0 integer.
>
> Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Still doesn't apply, I don't know what you are doing wrong here :(
odd.
greg k-h
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2] staging/otus: trivial, fix sparse warnig.
2009-11-19 19:34 ` Greg KH
@ 2009-11-20 19:18 ` Thiago Farina
2009-11-20 19:22 ` Greg KH
0 siblings, 1 reply; 14+ messages in thread
From: Thiago Farina @ 2009-11-20 19:18 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
Hi Greg,
On Thu, Nov 19, 2009 at 5:34 PM, Greg KH <greg@kroah.com> wrote:
> On Fri, Nov 06, 2009 at 11:45:05PM -0200, Thiago Farina wrote:
>> *apdbg.c: use NULL pointer instead of 0 integer.
>>
>> Signed-off-by: Thiago Farina <tfransosi@gmail.com>
>
> Still doesn't apply, I don't know what you are doing wrong here :(
>
> odd.
How are you applying it?
I can try reproduce here and figure out what is wrong :/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2] staging/otus: trivial, fix sparse warnig.
2009-11-20 19:18 ` Thiago Farina
@ 2009-11-20 19:22 ` Greg KH
2009-11-20 20:09 ` Thiago Farina
0 siblings, 1 reply; 14+ messages in thread
From: Greg KH @ 2009-11-20 19:22 UTC (permalink / raw)
To: Thiago Farina; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
On Fri, Nov 20, 2009 at 05:18:09PM -0200, Thiago Farina wrote:
> Hi Greg,
>
> On Thu, Nov 19, 2009 at 5:34 PM, Greg KH <greg@kroah.com> wrote:
> > On Fri, Nov 06, 2009 at 11:45:05PM -0200, Thiago Farina wrote:
> >> *apdbg.c: use NULL pointer instead of 0 integer.
> >>
> >> Signed-off-by: Thiago Farina <tfransosi@gmail.com>
> >
> > Still doesn't apply, I don't know what you are doing wrong here :(
> >
> > odd.
>
> How are you applying it?
'patch -p1 < your_email'
> I can try reproduce here and figure out what is wrong :/
Please do.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2] staging/otus: trivial, fix sparse warnig.
2009-11-20 19:22 ` Greg KH
@ 2009-11-20 20:09 ` Thiago Farina
2009-11-20 20:15 ` Greg KH
0 siblings, 1 reply; 14+ messages in thread
From: Thiago Farina @ 2009-11-20 20:09 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
On Fri, Nov 20, 2009 at 5:22 PM, Greg KH <greg@kroah.com> wrote:
> On Fri, Nov 20, 2009 at 05:18:09PM -0200, Thiago Farina wrote:
>> Hi Greg,
>>
>> On Thu, Nov 19, 2009 at 5:34 PM, Greg KH <greg@kroah.com> wrote:
>> > On Fri, Nov 06, 2009 at 11:45:05PM -0200, Thiago Farina wrote:
>> >> *apdbg.c: use NULL pointer instead of 0 integer.
>> >>
>> >> Signed-off-by: Thiago Farina <tfransosi@gmail.com>
>> >
>> > Still doesn't apply, I don't know what you are doing wrong here :(
>> >
>> > odd.
>>
>> How are you applying it?
>
> 'patch -p1 < your_email'
Are you getting something like: "Hmm... Ignoring the trailing garbage." ?
The output for me was this:
...
Patching file drivers/staging/otus/apdbg.c using Plan A...
Hunk #1 succeeded at 109.
Hunk #2 succeeded at 123.
Hmm... Ignoring the trailing garbage.
done
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2] staging/otus: trivial, fix sparse warnig.
2009-11-20 20:09 ` Thiago Farina
@ 2009-11-20 20:15 ` Greg KH
2009-11-20 21:22 ` Thiago Farina
0 siblings, 1 reply; 14+ messages in thread
From: Greg KH @ 2009-11-20 20:15 UTC (permalink / raw)
To: Thiago Farina; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
On Fri, Nov 20, 2009 at 06:09:09PM -0200, Thiago Farina wrote:
> On Fri, Nov 20, 2009 at 5:22 PM, Greg KH <greg@kroah.com> wrote:
> > On Fri, Nov 20, 2009 at 05:18:09PM -0200, Thiago Farina wrote:
> >> Hi Greg,
> >>
> >> On Thu, Nov 19, 2009 at 5:34 PM, Greg KH <greg@kroah.com> wrote:
> >> > On Fri, Nov 06, 2009 at 11:45:05PM -0200, Thiago Farina wrote:
> >> >> *apdbg.c: use NULL pointer instead of 0 integer.
> >> >>
> >> >> Signed-off-by: Thiago Farina <tfransosi@gmail.com>
> >> >
> >> > Still doesn't apply, I don't know what you are doing wrong here :(
> >> >
> >> > odd.
> >>
> >> How are you applying it?
> >
> > 'patch -p1 < your_email'
>
> Are you getting something like: "Hmm... Ignoring the trailing garbage." ?
>
> The output for me was this:
> ...
> Patching file drivers/staging/otus/apdbg.c using Plan A...
> Hunk #1 succeeded at 109.
> Hunk #2 succeeded at 123.
> Hmm... Ignoring the trailing garbage.
> done
Are you appling this to the linux-next tree? Or Linus's tree? I just
get a failure against linux-next.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2] staging/otus: trivial, fix sparse warnig.
2009-11-20 20:15 ` Greg KH
@ 2009-11-20 21:22 ` Thiago Farina
2009-11-20 21:28 ` Greg KH
0 siblings, 1 reply; 14+ messages in thread
From: Thiago Farina @ 2009-11-20 21:22 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
On Fri, Nov 20, 2009 at 6:15 PM, Greg KH <greg@kroah.com> wrote:
> On Fri, Nov 20, 2009 at 06:09:09PM -0200, Thiago Farina wrote:
>> On Fri, Nov 20, 2009 at 5:22 PM, Greg KH <greg@kroah.com> wrote:
>> > On Fri, Nov 20, 2009 at 05:18:09PM -0200, Thiago Farina wrote:
>> >> Hi Greg,
>> >>
>> >> On Thu, Nov 19, 2009 at 5:34 PM, Greg KH <greg@kroah.com> wrote:
>> >> > On Fri, Nov 06, 2009 at 11:45:05PM -0200, Thiago Farina wrote:
>> >> >> *apdbg.c: use NULL pointer instead of 0 integer.
>> >> >>
>> >> >> Signed-off-by: Thiago Farina <tfransosi@gmail.com>
>> >> >
>> >> > Still doesn't apply, I don't know what you are doing wrong here :(
>> >> >
>> >> > odd.
>> >>
>> >> How are you applying it?
>> >
>> > 'patch -p1 < your_email'
>>
>> Are you getting something like: "Hmm... Ignoring the trailing garbage." ?
>>
>> The output for me was this:
>> ...
>> Patching file drivers/staging/otus/apdbg.c using Plan A...
>> Hunk #1 succeeded at 109.
>> Hunk #2 succeeded at 123.
>> Hmm... Ignoring the trailing garbage.
>> done
>
> Are you appling this to the linux-next tree? Or Linus's tree? I just
> get a failure against linux-next.
I'm applying it to the Linus's tree.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2] staging/otus: trivial, fix sparse warnig.
2009-11-20 21:22 ` Thiago Farina
@ 2009-11-20 21:28 ` Greg KH
0 siblings, 0 replies; 14+ messages in thread
From: Greg KH @ 2009-11-20 21:28 UTC (permalink / raw)
To: Thiago Farina; +Cc: linux-kernel, otus-devel, Luis.Rodriguez
On Fri, Nov 20, 2009 at 07:22:59PM -0200, Thiago Farina wrote:
> On Fri, Nov 20, 2009 at 6:15 PM, Greg KH <greg@kroah.com> wrote:
> > On Fri, Nov 20, 2009 at 06:09:09PM -0200, Thiago Farina wrote:
> >> On Fri, Nov 20, 2009 at 5:22 PM, Greg KH <greg@kroah.com> wrote:
> >> > On Fri, Nov 20, 2009 at 05:18:09PM -0200, Thiago Farina wrote:
> >> >> Hi Greg,
> >> >>
> >> >> On Thu, Nov 19, 2009 at 5:34 PM, Greg KH <greg@kroah.com> wrote:
> >> >> > On Fri, Nov 06, 2009 at 11:45:05PM -0200, Thiago Farina wrote:
> >> >> >> *apdbg.c: use NULL pointer instead of 0 integer.
> >> >> >>
> >> >> >> Signed-off-by: Thiago Farina <tfransosi@gmail.com>
> >> >> >
> >> >> > Still doesn't apply, I don't know what you are doing wrong here :(
> >> >> >
> >> >> > odd.
> >> >>
> >> >> How are you applying it?
> >> >
> >> > 'patch -p1 < your_email'
> >>
> >> Are you getting something like: "Hmm... Ignoring the trailing garbage." ?
> >>
> >> The output for me was this:
> >> ...
> >> Patching file drivers/staging/otus/apdbg.c using Plan A...
> >> Hunk #1 succeeded at 109.
> >> Hunk #2 succeeded at 123.
> >> Hmm... Ignoring the trailing garbage.
> >> done
> >
> > Are you appling this to the linux-next tree? Or Linus's tree? I just
> > get a failure against linux-next.
>
> I'm applying it to the Linus's tree.
Please generate it against linux-next, as there are already otus patches
in my tree, which is included in the linux-next snapshots.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2009-11-20 21:29 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-30 0:04 [PATCH] staging/otus: trivial, fix sparse warnig Thiago Farina
2009-11-06 22:47 ` Greg KH
2009-11-06 23:47 ` Thiago Farina
2009-11-07 0:07 ` Greg KH
2009-11-07 1:23 ` Thiago Farina
2009-11-07 1:45 ` [PATCH v2] " Thiago Farina
2009-11-19 19:34 ` Greg KH
2009-11-20 19:18 ` Thiago Farina
2009-11-20 19:22 ` Greg KH
2009-11-20 20:09 ` Thiago Farina
2009-11-20 20:15 ` Greg KH
2009-11-20 21:22 ` Thiago Farina
2009-11-20 21:28 ` Greg KH
2009-11-07 0:20 ` [PATCH] " Thiago Farina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox