Subject: Re: void * arithmetic
To: None <>
From: Christos Zoulas <>
List: tech-kern
Date: 01/08/1999 13:43:55
In article <> (Lennart Augustsson) writes:
>What's the policy about using arithmetic on void * in the kernel?
>It's not ANSI (as far as I know), but works with gcc.
>I try to avoid it, and it seems others do too, but there are
>a dozen uses of it in the kernel.  If they shouldn't be there
>I can take care of them.
>Furthermore, if they shouldn't be there we should add -Wpointer-arith
>to the compiler flags.

We should add -Wpointer-arith; we'd like to get the void * pointer arithmetic
out of the kernel.