summaryrefslogtreecommitdiffstats
path: root/include/linux/err.h
Commit message (Collapse)AuthorAgeFilesLines
* include: provide linux/errno.hAhmad Fatoum2023-11-231-1/+1
| | | | | | | | | | | | | | | We don't have the historic baggage of having to support different errno definitions depending on architecture. We thus have only asm-generic/errno.h and include that from errno.h and elsewhere directly. Kernel code however includes <linux/errno.h>, so let's provide that file as well and define there the Linux-specific errno's and include <asm-generic/errno.h> for all other errnos. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231122172951.376531-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make IS_ERR_VALUE() complain about non-pointer-sized argumentsSascha Hauer2022-11-081-1/+1
| | | | | | | | | | | | | IS_ERR_VALUE() needs a pointer sized argument, so warn when any int sized arguments sneak in. When this happens a warning is generated: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Based on Kernel commit aa00edc1287a ("make IS_ERR_VALUE() complain about non-pointer-sized arguments") Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Link: https://lore.barebox.org/20221107100727.2510346-2-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include: add SPDX-License-IdentifierAhmad Fatoum2022-01-051-0/+2
| | | | | | | | | All these files lack a license statement, so add the default GPL-2.0-only. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220103120539.1730644-7-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* err.h: Add PTR_ERR_OR_ZERO from kernelSascha Hauer2014-03-281-0/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* err.h: introduce IS_ERR_OR_NULLSascha Hauer2012-10-041-0/+5
| | | | | | Copied from Linux. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add include/linux/err.h from KernelSascha Hauer2008-08-131-0/+52
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>