diff mbox series

[1/7] disk: include errno.h explicitly in part.h

Message ID 20220419010158.47034-2-takahiro.akashi@linaro.org
State New
Headers show
Series disk: don't compile in partition support for spl/tpl if not really necessary | expand

Commit Message

AKASHI Takahiro April 19, 2022, 1:01 a.m. UTC
Some errno numbers are used in defining inline functions.
So "errno.h" should be explicitly included to avoid possible build errors.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
---
 include/part.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/include/part.h b/include/part.h
index 53cfbdd87671..1196220817e4 100644
--- a/include/part.h
+++ b/include/part.h
@@ -10,6 +10,7 @@ 
 #include <ide.h>
 #include <uuid.h>
 #include <linker_lists.h>
+#include <linux/errno.h>
 #include <linux/list.h>
 
 struct block_drvr {