]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: suppress trivial sparse signedness warnings
authorHarvey Harrison <harvey.harrison@gmail.com>
Tue, 23 Sep 2008 22:05:46 +0000 (15:05 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Oct 2008 08:38:14 +0000 (10:38 +0200)
commit37a52f5ef120b93734bb2461744512b55695f69c
treec50d991252df8cdff2ae3c95b82c13631b7768be
parent05736a427f7e16be948ccbf39782bd3a6ae16b14
x86: suppress trivial sparse signedness warnings

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>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/ftrace.c