Re: [PATCH] warnkill trivia 2/2

David S. Miller (davem@redhat.com)
Sun, 01 Sep 2002 04:35:12 -0700 (PDT)


From: Tomas Szepe <szepe@pinerecords.com>
Date: Sun, 1 Sep 2002 13:37:42 +0200

> BTW who even passes around const atomic_t's? Ie. what
> genrated the warning and made you even edit this to begin with?

fs/reiserfs/buffer2.c, line ~28:
atomic_t gets the const quality on account of being a member
of a const struct buffer_head instance.

void wait_buffer_until_released (const struct buffer_head * bh)
{

Reiserfs is buggy, it means struct buffer_head const * bh

Let's keep the sparc atomic_read() how it is so more bugs
like this can be found.
-
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/