summaryrefslogtreecommitdiff
path: root/include/remoteproc.h
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2024-01-18 19:10:47 +0100
committerTom Rini <trini@konsulko.com>2024-01-24 11:12:11 -0500
commite2e69291ee6031eccf50113fdd12099a1a7d44ba (patch)
tree0739009b7e6e5bb081e17b38f46734850d196eb5 /include/remoteproc.h
parentcc7e3d1929342f9beb998933e26ce5e89d52a8fb (diff)
downloadu-boot-e2e69291ee6031eccf50113fdd12099a1a7d44ba.tar.gz
u-boot-e2e69291ee6031eccf50113fdd12099a1a7d44ba.tar.bz2
u-boot-e2e69291ee6031eccf50113fdd12099a1a7d44ba.zip
headers: don't depend on errno.h being available
These headers follow the pattern: | #if CONFIG_IS_ENABLED(FANCY_FEATURE) | void foo(void); | #else | static inline void foo(void) { return -ENOSYS; } | #endif In the #else path ENOSYS is used, however linux/errno.h is not included. If errno.h has not been included already the compiler errors out even if the inline function is not referenced. Make those headers self contained. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/remoteproc.h')
-rw-r--r--include/remoteproc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/remoteproc.h b/include/remoteproc.h
index a11dc8a9b6..91a88791a4 100644
--- a/include/remoteproc.h
+++ b/include/remoteproc.h
@@ -14,6 +14,7 @@
* platforms have moved to dm/fdt.
*/
#include <dm/platdata.h> /* For platform data support - non dt world */
+#include <linux/errno.h>
/**
* struct fw_rsc_hdr - firmware resource entry header