From: Harvey Harrison Date: Fri, 25 Jul 2008 08:48:39 +0000 (-0700) Subject: markers: fix sparse integer as NULL pointer warning X-Git-Tag: v2.6.27-rc1~267 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a89cc1959d0ea5f36bf7421dc97b34f03809637d;p=linux-2.6 markers: fix sparse integer as NULL pointer warning kernel/trace/trace_sysprof.c:164:20: warning: Using plain integer as NULL pointer Signed-off-by: Harvey Harrison Cc: Mathieu Desnoyers Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/trace/trace_sysprof.c b/kernel/trace/trace_sysprof.c index 6352808633..ce2d723c10 100644 --- a/kernel/trace/trace_sysprof.c +++ b/kernel/trace/trace_sysprof.c @@ -161,7 +161,7 @@ static void timer_notify(struct pt_regs *regs, int cpu) __trace_special(tr, data, 2, regs->ip, 0); while (i < sample_max_depth) { - frame.next_fp = 0; + frame.next_fp = NULL; frame.return_address = 0; if (!copy_stack_frame(fp, &frame)) break;