]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
goldfish: Add missing includes to goldfish.h
authorRoman Kiryanov <rkir@google.com>
Mon, 23 Jul 2018 22:47:26 +0000 (15:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Aug 2018 08:24:51 +0000 (10:24 +0200)
goldfish.h refers to external symbols such as
dma_addr_t and writel. This causes compilation errors
if this file is included before other header files.

The mentioned symbols are defined in types.h (dma_addr_t)
and io.h (writel).

Signed-off-by: Roman Kiryanov <rkir@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/goldfish.h

index 2835c150c3ff0a89dc8f1a9628f2b3f3f0b0ed42..159b4191f15d8b3515257b345460b6418b19f880 100644 (file)
@@ -2,6 +2,9 @@
 #ifndef __LINUX_GOLDFISH_H
 #define __LINUX_GOLDFISH_H
 
+#include <linux/types.h>
+#include <linux/io.h>
+
 /* Helpers for Goldfish virtual platform */
 
 static inline void gf_write_ptr(const void *ptr, void __iomem *portl,