<div dir="ltr">Hi all,<div><br></div><div>I'm writing my little module now a days and want to ioremap some space. I learnt from LDD3 that "Therefore, generic memory addresses in the kernel are usually unsigned long"(ch11). So I declared a pointer like "usigned long p2dev;" But when I feed it with ioremap, it yields a warning:</div>
<div><br></div><div><div>warning: assignment makes integer from pointer without a cast [enabled by default]<br></div><div><br></div><div>Do I really have to add a cast? What is the reason that while "generic pointers are unsigned long" but the return type of ioremap is void *?</div>
<div><br></div><div>Thanks in advance.</div><div><br></div>-- <br>Cheers,<br>Grissiom
</div></div>