From: Arnaldo Carvalho de Melo Date: Fri, 9 Nov 2012 18:42:26 +0000 (-0300) Subject: tools lib traceevent: No need to check for < 0 on an unsigned enum X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~77^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e46466b8bd5918626250dc0d6cb6c2147a611087;p=pandora-kernel.git tools lib traceevent: No need to check for < 0 on an unsigned enum gcc on f14 32-bit complains: tools/lib/traceevent/event-parse.c: In function ‘pevent_register_print_function’: tools/lib/traceevent/event-parse.c:5366:3: error: comparison of unsigned expression < 0 is always false This is because: enum pevent_func_arg_type type; this enum doesn't have any negative value, so gcc makes it an 'unsigned int'. Fix it by removing the < 0 test. Cc: David Ahern Cc: Frederic Weisbecker Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Steven Rostedt Link: http://lkml.kernel.org/n/tip-6vnd6ud6fbpn48zax4a5ru01@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed