]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: Move type declarations to linux/types.h
authorSimon Glass <sjg@chromium.org>
Sat, 28 Dec 2019 17:44:53 +0000 (10:44 -0700)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 24 Jan 2020 17:36:48 +0000 (23:06 +0530)
This file already has lots of type declarations so it seems better to put
all of them there.

Move them.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/common.h
include/linux/types.h

index 691dc173c08193cf86856ba2399706ef316fe817..4ee14f78d0ab5a3dc4aaf59411ee3432301f8aff 100644 (file)
 
 #ifndef __ASSEMBLY__           /* put C only stuff in this section */
 
-typedef volatile unsigned long vu_long;
-typedef volatile unsigned short vu_short;
-typedef volatile unsigned char vu_char;
-
 #include <config.h>
 #include <errno.h>
 #include <time.h>
index bd912bcb42fd2bc54619828f21f93dac95d3984f..baa2c491ea5bd187f176dbf04d4df6f0db1a80d3 100644 (file)
@@ -163,4 +163,8 @@ struct ustat {
 #define DECLARE_BITMAP(name, bits) \
        unsigned long name[BITS_TO_LONGS(bits)]
 
+typedef volatile unsigned long vu_long;
+typedef volatile unsigned short vu_short;
+typedef volatile unsigned char vu_char;
+
 #endif /* _LINUX_TYPES_H */