Skip to contentSkip to conversation

staging/otus: trivial, fix sparse warnig.

PATCH In review Thiago Farina 2 participants 14 messages Oct 30, 2009 – Nov 20, 2009 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging/otus: trivial, fix sparse warnig.

*apdbg.c: use NULL pointer instead of 0 integer.

---
 drivers/staging/otus/apdbg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/otus/apdbg.c +2 -2
index d3e2f62..70a40b8 100644
@@ -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))
Signature · 1 line
1.6.5.1.61.ge79999
#1 lore raw
Quoted 12 lines · Thiago Farina

*apdbg.c: use NULL pointer instead of 0 integer.

---
 drivers/staging/otus/apdbg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/otus/apdbg.c +0 -0
index d3e2f62..70a40b8 100644

drivers/staging/otus/apdbg.c int set_ioctl(int sock, struct ifreq *req) · line 112

Quoted 5 lines
drivers/staging/otus/apdbg.c +1 -1
@@ -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

#2 lore raw

Hi Greg,

Quoted 2 lines · Greg KH

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?

Quoted 1 line

care to rediff both of them?

Sure, but which?

#3 lore raw
Quoted 8 lines · Thiago Farina

Hi Greg,

Quoted 2 lines · Greg KH

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.

#4 lore raw
In reply to Thiago Farina
Quoted 8 lines · Thiago Farina

Hi Greg,

Quoted 2 lines · Greg KH

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.

Quoted 2 lines
Quoted 1 line

care to rediff both of them?

Sure, but which?

This one, and you sent another otus one, right?

thanks,

greg k-h

#5 lore raw
Quoted 2 lines · Greg KH

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 :)

#6 lore raw

*apdbg.c: use NULL pointer instead of 0 integer.

---
 drivers/staging/otus/apdbg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/otus/apdbg.c +2 -2
index d3e2f62..70a40b8 100644
@@ -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))
#7 lore raw
Quoted 3 lines · Thiago Farina

*apdbg.c: use NULL pointer instead of 0 integer.

Still doesn't apply, I don't know what you are doing wrong here :(

odd.

greg k-h

#8 lore raw

Hi Greg,

Quoted 8 lines · Greg KH
Quoted 3 lines · Thiago Farina

*apdbg.c: use NULL pointer instead of 0 integer.

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 :/

#9 lore raw
Quoted 6 lines · Thiago Farina

Hi Greg,

Quoted 3 lines · Greg KH
Quoted 2 lines · Thiago Farina

*apdbg.c: use NULL pointer instead of 0 integer.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Still doesn't apply, I don't know what you are doing wrong here :(

odd.

How are you applying it?

'patch -p1 < your_email'

Quoted 1 line

I can try reproduce here and figure out what is wrong :/

Please do.

thanks,

greg k-h

#10 lore raw
Quoted 9 lines · Greg KH
Quoted 8 lines · Thiago Farina

Hi Greg,

Quoted 5 lines · Greg KH
Quoted 3 lines · Thiago Farina

*apdbg.c: use NULL pointer instead of 0 integer.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

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

#11 lore raw
Quoted 20 lines · Thiago Farina
Quoted 9 lines · Greg KH
Quoted 8 lines · Thiago Farina

Hi Greg,

Quoted 5 lines · Greg KH
Quoted 3 lines · Thiago Farina

*apdbg.c: use NULL pointer instead of 0 integer.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

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." ?

Quoted 7 lines

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

#12 lore raw
Quoted 29 lines · Greg KH
Quoted 20 lines · Thiago Farina
Quoted 9 lines · Greg KH
Quoted 8 lines · Thiago Farina

Hi Greg,

Quoted 5 lines · Greg KH
Quoted 3 lines · Thiago Farina

*apdbg.c: use NULL pointer instead of 0 integer.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

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." ?

Quoted 7 lines

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

Quoted 2 lines

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.

#13 lore raw
Quoted 30 lines · Thiago Farina
Quoted 29 lines · Greg KH
Quoted 27 lines · Thiago Farina
Quoted 9 lines · Greg KH
Quoted 8 lines · Thiago Farina

Hi Greg,

Quoted 5 lines · Greg KH
Quoted 3 lines · Thiago Farina

*apdbg.c: use NULL pointer instead of 0 integer.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

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

Quoted 4 lines
Quoted 2 lines

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