[PATCH 06/20] spi: Add <errno.h> to spi-mem-nodm.c

Tom Rini trini at konsulko.com
Wed Nov 1 17:28:10 CET 2023


This file uses errno return values in functions, so include <errno.h>
here rather than rely on indirect inclusion.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 drivers/spi/spi-mem-nodm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi-mem-nodm.c b/drivers/spi/spi-mem-nodm.c
index 77ddb19a9f32..f9cadcc026dc 100644
--- a/drivers/spi/spi-mem-nodm.c
+++ b/drivers/spi/spi-mem-nodm.c
@@ -3,6 +3,7 @@
  * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
  */
 
+#include <errno.h>
 #include <log.h>
 #include <malloc.h>
 #include <spi.h>
-- 
2.34.1



More information about the U-Boot mailing list