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 691dc17..4ee14f7 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 bd912bc..baa2c49 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 */