From: Alpha Lin Date: Tue, 9 Jun 2015 02:58:57 +0000 (+0800) Subject: VPU: fix the code cannot be built in 32bits environment. X-Git-Tag: firefly_0821_release~4058 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=095cb8d965f6a88394623bf7bec3ffb2111788be;p=firefly-linux-kernel-4.4.55.git VPU: fix the code cannot be built in 32bits environment. compat_uptr_t isn't define under 32bits environment, using this definition under the CONFIG_COMPAT macro. Signed-off-by: Alpha Lin --- diff --git a/arch/arm/mach-rockchip/vcodec_service.c b/arch/arm/mach-rockchip/vcodec_service.c index b9f93242aa7f..967c3d158d3b 100755 --- a/arch/arm/mach-rockchip/vcodec_service.c +++ b/arch/arm/mach-rockchip/vcodec_service.c @@ -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;