
13 Apr
2007
13 Apr
'07
7:22 p.m.
Denis Peter wrote:
My patch from April, 2nd, fixes this issue already. In my patch I decided to just cast the pointer back to ulong *, since I don't know if it is a good idea to increment a pointer to void *.
It's not part of the normal C standard, but gcc allows you to perform pointer math on a void *. It acts as is it were a "u8 *".
Remember, this code:
ulong *p; p++;
Has the same effect as:
void *p p += sizeof(ulong);
--
Timur Tabi
Linux Kernel Developer @ Freescale