staging/ion: fix build warnings accepted/tizen/mobile/20160113.050904 submit/tizen/20160113.015730
authorJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 13 Jan 2016 00:44:54 +0000 (09:44 +0900)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 13 Jan 2016 01:29:28 +0000 (10:29 +0900)
This fixed below warnings.

include/video/ion_sprd.h:128:7: warning: ‘struct ion_handle’ declared inside parameter list
include/video/ion_sprd.h:128:7: warning: its scope is only this definition or declaration, which is probably not what you want
include/video/ion_sprd.h:129:29: warning: ‘struct ion_handle’ declared inside parameter list

drivers/staging/android/ion/ion.h:126:13: warning: ‘struct drm_gem_object’ declared inside parameter list
drivers/staging/android/ion/ion.h:126:13: warning: its scope is only this definition or declaration, which is probably not what you want

Change-Id: If51462fad12a1f7d20777835b39b1a276149cef1
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/staging/android/ion/ion.h
include/video/ion_sprd.h

index 0158a66..6be45c2 100644 (file)
@@ -18,6 +18,9 @@
 #define _LINUX_ION_H
 
 #include <linux/types.h>
+#ifdef CONFIG_DRM_SPRD
+#include <drm/drmP.h>
+#endif
 
 #include "../uapi/ion.h"
 
index f099eae..85116a5 100644 (file)
@@ -36,6 +36,8 @@
 
 #define ION_DRIVER_VERSION     1
 
+struct ion_handle;
+
 enum ION_MASTER_ID {
        ION_GSP = 0,
        ION_MM,