lkml.org 
[lkml]   [2010]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/4] trace/trace_output.c: fix "integer as NULL pointer" warning.
From
Date
On Mon, 2010-01-25 at 16:40 -0500, Steven Rostedt wrote:
> On Sun, 2010-01-24 at 11:03 -0500, Thiago Farina wrote:
> > kernel/trace/trace_output.c:256:24: warning: Using plain integer as NULL pointer
> >
> > Signed-off-by: Thiago Farina <tfransosi@gmail.com>
>
> Is this going through some other tree, or should I just pull it?

I guess this never went through any other tree (never got a response).
I'll pull it now.

-- Steve

> > ---
> > kernel/trace/trace_output.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
> > index 8e46b33..2404c12 100644
> > --- a/kernel/trace/trace_output.c
> > +++ b/kernel/trace/trace_output.c
> > @@ -253,7 +253,7 @@ void *trace_seq_reserve(struct trace_seq *s, size_t len)
> > void *ret;
> >
> > if (s->full)
> > - return 0;
> > + return NULL;
> >
> > if (len > ((PAGE_SIZE - 1) - s->len)) {
> > s->full = 1;
>




\
 
 \ /
  Last update: 2010-05-05 18:03    [W:0.053 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site