diff options
author | Tushar Behera <tushar.behera@linaro.org> | 2012-06-18 11:56:28 +0530 |
---|---|---|
committer | Tushar Behera <tushar.behera@linaro.org> | 2012-12-13 14:53:59 +0530 |
commit | ec5348b5eba0a8e1df8b7e41f3507aff7fd30bb6 (patch) | |
tree | fd96333719fe952007fe5df526f74d3014ec6ed5 | |
parent | 3fbaabd2783904d93d6dbccc3b8dfa048e407b43 (diff) | |
download | linux-topics-ec5348b5eba0a8e1df8b7e41f3507aff7fd30bb6.tar.gz |
gpu: mali: Replace do_mmap with do_mmap_pdoff
Fix following compilation error.
drivers/gpu/arm/mali/linux/mali_osk_indir_mmap.c: In function ‘_mali_osk_specific_indirect_mmap’:
drivers/gpu/arm/mali/linux/mali_osk_indir_mmap.c:40:5: error: implicit declaration of function ‘do_mmap’
Suggested-by: Chunsang Jeong <chunsang.jeong@linaro.org>
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r-- | drivers/gpu/arm/mali/linux/mali_osk_indir_mmap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/arm/mali/linux/mali_osk_indir_mmap.c b/drivers/gpu/arm/mali/linux/mali_osk_indir_mmap.c index 883409ecf51..ecb44818a6b 100644 --- a/drivers/gpu/arm/mali/linux/mali_osk_indir_mmap.c +++ b/drivers/gpu/arm/mali/linux/mali_osk_indir_mmap.c @@ -7,6 +7,8 @@ * A copy of the licence is included with the program, and can also be obtained from Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include <linux/version.h> + #include <linux/slab.h> #include <linux/pagemap.h> #include <linux/mm.h> @@ -25,6 +27,10 @@ * Implementation of per-OS Kernel level specifics */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0) +#define do_mmap do_mmap_pgoff +#endif + _mali_osk_errcode_t _mali_osk_specific_indirect_mmap( _mali_uk_mem_mmap_s *args ) { /* args->ctx ignored here; args->ukk_private required instead */ |