Re: [PATCH] genksyms: Use same type in loop comparison

From: Michal Marek
Date: Mon Jul 25 2011 - 08:58:58 EST


On Tue, Jul 12, 2011 at 12:32:04AM +0200, Jesper Juhl wrote:
> The ARRAY_SIZE macro in scripts/genksyms/genksyms.c returns a value of
> type size_t. That value is being compared to a variable of type int in
> a loop in read_node(). Change the int variable to size_t type as well,
> so we don't do signed vs unsigned type comparisons with all the
> potential promotion/sign extension trouble that can cause (also
> silences compiler warnings at high levels of warnings).
>
> Signed-off-by: Jesper Juhl <jj@xxxxxxxxxxxxx>

Applied to kbuid-2.6.git#kbuild, thanks.

Michal
--
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/