linux err: make ERR_PTR/PTR_ERR architecture specific
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Tue, 22 Oct 2019 19:29:47 +0000 (21:29 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 7 Nov 2019 23:01:13 +0000 (18:01 -0500)
commit8c59ca93b839261863f0db2295a2b6b4dd4f175e
tree6ff0c0ed9e6e72d041506d7507c1c842e6439b29
parent93db2b83ed515fd5700b6c5abb0fba612ef2cdcb
linux err: make ERR_PTR/PTR_ERR architecture specific

This patch changes ERR_PTR/PTR_ERR to use CONFIG_ERR_PTR_OFFSET to map
errno values into a pointer region that cannot contain valid pointers.

IS_ERR and IS_ERR_OR_NULL have to be converted to use PTR_ERR, too,
for this to work.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
include/linux/err.h