Subject: Re: [PATCH] powerpc: change rheap functions to use long integers instead of pointers

From: Timur Tabi <[email-masked]>
Date: Wed, 04 Apr 2007 13:13:26 -0500

Sylvain Munaut wrote:

> But you're right, your not changing the actual values returned,
> ERR_PTR(x) == x ....
> So if someone wants to use it with addresses, he still can. He should
> just do cast to (void *). And to detect errors on alloc he should he
> IS_ERR(...)

How about I change rh_alloc() to return unsigned long, instead of just long, and then the 
callers can use IS_ERR_VALUE() to check for error?

-- 
Timur Tabi
Linux Kernel Developer @ Freescale