Re: [RFC][PATCH] Faster generic_fls

David S. Miller (davem@redhat.com)
02 May 2003 15:55:32 -0700


On Fri, 2003-05-02 at 03:04, Chuck Ebbert wrote:
> I realized after sending that last that I should have added that there
> were no volatiles and no aliasing possible. This was the kernel code:
>
> return conf->last_used = new_disk;
>
> (new_disk is a local variable, conf is a function arg.)

Since new_disk is on the stack, is there something about 'conf'
that guarenetes it is not on the stack too? F.e. what if
&conf->last_used were one byte into 'new_disk' or something
like that.

Probably this is all illegal...

-- 
David S. Miller <davem@redhat.com>
-
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/