Re: [PATCH] *(int*)0 = 0 & variations

Manfred Spraul (masp0008@stud.uni-sb.de)
Wed, 23 Jun 1999 16:53:29 +0200


From: Riley Williams <rhw@memalpha.cx>
>Perhaps the following patch will help.
>
>All that's required is for the relevant unit authors to add the
>relevant calls to their units.

But unless this patch is part of the main kernel, I must
remove the kassert() calls before submitting patches -
this defeats the main purpose of kassert().

>+#else
>+#define kassert(cond)
>+#endif

use
#define kassert(cond) do { } while(0)
otherwise DEBUG and release could generate different code.
(I currently don't see the problem, but everyone does this.)

--
    Manfred

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