Re: [PATCH] kprobes: Fix compiler warning

From: Kumar Gala
Date: Tue Jan 30 2007 - 02:07:40 EST



On Jan 29, 2007, at 11:55 PM, Ananth N Mavinakayanahalli wrote:

On Mon, Jan 29, 2007 at 11:43:33PM -0600, Kumar Gala wrote:
On ppc the compiler gripes about:

kernel/kprobes.c: In function 'collect_garbage_slots':
kernel/kprobes.c:215: warning: comparison is always false due to limited
range of data type

The compiler ends up optimizing away the test since char's are unsigned on
ppc.

Kumar,

Masami fixed this last week:

http://marc.theaimsgroup.com/?l=linux-kernel&m=116968723823366&w=2

Patch currently in -mm.

Thanks,
Ananth

Cool, Masami's patch looks far more complete.

- k

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/