Typecasting a void pointer to unsigned long in zsmalloc.c

Greg KH greg at kroah.com
Thu Jan 23 12:00:09 EST 2025


On Thu, Jan 23, 2025 at 05:27:03PM +0100, Sotir Danailov wrote:
> > This is a requirement that Linux makes for the compiler to work with
> > it for any platform that Linux runs on.
> 
> Ah I see, thank you! Is this documented somewhere? I was searching
> for information on this, but nothing came up in the kernel docs.

It's just a "known thing" for Linux platforms.  It's documented
somewhere I think but I can't remember where, sorry.

greg k-h



More information about the Kernelnewbies mailing list