diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-11-22 18:29:32 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-11-23 15:45:54 +0100 |
commit | c7710eefb960f08f8d812ce69b8aead786bb866b (patch) | |
tree | d2b1e50fe47f1a8223f3a655f2093660041174c1 /include/linux/err.h | |
parent | fb64146c451b74fcd48e97008890a6cfba913db6 (diff) | |
download | barebox-c7710eefb960f08f8d812ce69b8aead786bb866b.tar.gz barebox-c7710eefb960f08f8d812ce69b8aead786bb866b.tar.xz |
include: provide linux/errno.h
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>
Diffstat (limited to 'include/linux/err.h')
-rw-r--r-- | include/linux/err.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/err.h b/include/linux/err.h index db7ad6cc5b..d743b4d092 100644 --- a/include/linux/err.h +++ b/include/linux/err.h @@ -5,7 +5,7 @@ #include <linux/compiler.h> -#include <asm-generic/errno.h> +#include <linux/errno.h> /* * Kernel pointers have redundant information, so we can use a |