aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2013-12-12 19:09:47 -0800
committerColin Cross <ccross@android.com>2013-12-17 01:35:47 +0000
commite513299f8dc0a79e6e3f5ee79615426edaf086b9 (patch)
tree628c288dc65f33bcadafff054d783aa6f8a02c63 /drivers/staging
parent8d9bc1404990afcc1fa73f1412f2b653fc3ecd31 (diff)
downloadlinaro-lsk-e513299f8dc0a79e6e3f5ee79615426edaf086b9.tar.gz
ion: Fix build warning
Add #include <linux/device.h> to fix the following warning seen with gcc 4.7.3: In file included from drivers/staging/android/ion/ion_heap.c:26:0: drivers/staging/android/ion/ion_priv.h:358:21: warning: ‘struct device’ declared inside parameter list [enabled by default] drivers/staging/android/ion/ion_priv.h:358:21: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] Change-Id: Icc249b32d877a5b76b1669c99bef2b05d9e322da Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/android/ion/ion_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/android/ion/ion_priv.h b/drivers/staging/android/ion/ion_priv.h
index 19691c0d24c..ac625b11505 100644
--- a/drivers/staging/android/ion/ion_priv.h
+++ b/drivers/staging/android/ion/ion_priv.h
@@ -17,6 +17,7 @@
#ifndef _ION_PRIV_H
#define _ION_PRIV_H
+#include <linux/device.h>
#include <linux/dma-direction.h>
#include <linux/kref.h>
#include <linux/mm_types.h>