VPU: fix the code cannot be built in 32bits environment.
authorAlpha Lin <alpha.lin@rock-chips.com>
Tue, 9 Jun 2015 02:58:57 +0000 (10:58 +0800)
committerAlpha Lin <alpha.lin@rock-chips.com>
Tue, 9 Jun 2015 05:44:33 +0000 (13:44 +0800)
compat_uptr_t isn't define under 32bits environment, using
this definition under the CONFIG_COMPAT macro.

Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
arch/arm/mach-rockchip/vcodec_service.c

index b9f93242aa7fdf1a25797a122531fbfe6b3dd441..967c3d158d3b6b691be19240642388954396e3f8 100755 (executable)
@@ -540,10 +540,12 @@ struct vpu_request {
        u32 size;
 };
 
+#ifdef CONFIG_COMPAT
 struct compat_vpu_request {
        compat_uptr_t req;
        u32 size;
 };
+#endif
 
 /* debugfs root directory for all device (vpu, hevc).*/
 static struct dentry *parent;