[lkml]   [2003]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: 2.5.74-mm1
    Zwane Mwaikambo <> wrote:

    Changing this:

    > static inline void bitmap_or(volatile unsigned long *dst, const volatile unsigned long *bitmap1,
    > const volatile unsigned long *bitmap2, int bits)
    > {
    > int k;
    > for (k = 0; k < BITS_TO_LONGS(bits); ++k)
    > dst[k] = bitmap1[k] | bitmap2[k];
    > }

    to this:

    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.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:46    [W:0.020 / U:33.216 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site