Re: 2.4.0-test8-pre1 is quite bad / how about integrating Rik's VM

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sun Sep 03 2000 - 16:40:48 EST


> I've considered making "free_page()" a macro something like
>
> __free_pge(x);
> x = NULL;
>
> but that works only for lvalues, of course, and not all users are
> lvalue-users, so it's hard to do. But that would have caught this.

Not that hard. (barf buckets at the ready)

        *((unsigned long *)(&x)) = NULL;

Alan

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



This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:16 EST