Re: [PATCH] xarray: update document for error space returned by xarray normal API

2020-07-19 Thread Chaitanya Kulkarni
On 7/19/20 20:58, Wang Long wrote: > xa_is_error(xa_mk_internal(-4095)) and xa_is_error(xa_mk_internal(-1)) > are all return true. 's/xa_is_error()/xa_is_err()/` ? Reviewed-by: Chaitanya Kulkarni

[PATCH] xarray: update document for error space returned by xarray normal API

2020-07-19 Thread Wang Long
In the current xarray code, the negative value -1 and -4095 represented as an error. xa_is_error(xa_mk_internal(-4095)) and xa_is_error(xa_mk_internal(-1)) are all return true. This patch update the document. Signed-off-by: Wang Long --- include/linux/xarray.h | 2 +- 1 file changed, 1 inserti

[PATCH] xarray: update document for error space returned by xarray normal API

2020-07-19 Thread Wang Long
In the current xarray code, the negative value -1 and -4095 represented as an error. xa_is_error(xa_mk_internal(-4095)) and xa_is_error(xa_mk_internal(-1)) are all return true. This patch update the document. Signed-off-by: Wang Long --- include/linux/xarray.h | 2 +- 1 file changed, 1 inserti