include/linux/err.h: add a function to cast error-pointers to a return value