diff mbox series

[v2,5/8] vsprintf.h: include <linux/types.h>

Message ID 1505538646-19191-6-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit f7d6b896d641767e04409fc3abf05338b19d9109
Headers show
Series Sync and consolidate Linux-derived printk, BUILD_BUG, BUG, WARN, etc. | expand

Commit Message

Masahiro Yamada Sept. 16, 2017, 5:10 a.m. UTC
This header uses ulong, size_t, loff_t.
Include <linux/types.h> to make this header self-contained.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

Changes in v2: None

 include/vsprintf.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini Oct. 5, 2017, 9:52 p.m. UTC | #1
On Sat, Sep 16, 2017 at 02:10:43PM +0900, Masahiro Yamada wrote:

> This header uses ulong, size_t, loff_t.

> Include <linux/types.h> to make this header self-contained.

> 

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>


Applied to u-boot/master, thanks!

-- 
Tom
diff mbox series

Patch

diff --git a/include/vsprintf.h b/include/vsprintf.h
index 490c96ca6d1f..33d05aa0c65c 100644
--- a/include/vsprintf.h
+++ b/include/vsprintf.h
@@ -9,6 +9,7 @@ 
 #define __VSPRINTF_H
 
 #include <stdarg.h>
+#include <linux/types.h>
 
 ulong simple_strtoul(const char *cp, char **endp, unsigned int base);