Re: 2.5.74-mm1

From: Zwane Mwaikambo (zwane@arm.linux.org.uk)
Date: Fri Jul 04 2003 - 03:37:51 EST


On Fri, 4 Jul 2003, Andrew Morton wrote:

> static inline void bitmap_or(unsigned long *dst, unsigned long *bitmap1,
> unsigned long *bitmap2, int bits)
> {
> int k;
> int nr = BITS_TO_LONGS(bits);
>
> for (k = 0; k < nr; k++)
> dst[k] = bitmap1[k] | bitmap2[k];
> }
>
> fixes it up, and looks nicer anyway. Removing the volatiles (what were
> they doing there?) did not fix it. The `nr' thing fixed it.
>
> I shall make that change.

Very nice, thanks!

        Zwane

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



This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:22 EST