lkml.org 
[lkml]   [2008]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: suppress trivial sparse signedness warnings

* Harvey Harrison <harvey.harrison@gmail.com> wrote:

> Could just as easily change the three casts to cast to the correct
> type...this patch changes the type of ftrace_nop instead.
>
> Supresses sparse warnings:
> arch/x86/kernel/ftrace.c:157:14: warning: incorrect type in assignment (different signedness)
> arch/x86/kernel/ftrace.c:157:14: expected long *static [toplevel] ftrace_nop
> arch/x86/kernel/ftrace.c:157:14: got unsigned long *<noident>
> arch/x86/kernel/ftrace.c:161:14: warning: incorrect type in assignment (different signedness)
> arch/x86/kernel/ftrace.c:161:14: expected long *static [toplevel] ftrace_nop
> arch/x86/kernel/ftrace.c:161:14: got unsigned long *<noident>
> arch/x86/kernel/ftrace.c:165:14: warning: incorrect type in assignment (different signedness)
> arch/x86/kernel/ftrace.c:165:14: expected long *static [toplevel] ftrace_nop
> arch/x86/kernel/ftrace.c:165:14: got unsigned long *<noident>
>
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

applied to tip/tracing/ftrace, thanks Harvey!

Ingo


\
 
 \ /
  Last update: 2008-09-24 09:59    [W:0.043 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site