X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=us_manager%2Fus_manager_common.h;h=d888b2634ea23a512e7c1d9234e9cea505f2a946;hb=e970dee4cbab29d3973d369a75e25e8b89eb3080;hp=7febc1b5762c2cea6efccaee395745692de02e40;hpb=605be5de133490f6ad31f9898f9da5a31af22964;p=kernel%2Fswap-modules.git diff --git a/us_manager/us_manager_common.h b/us_manager/us_manager_common.h index 7febc1b..d888b26 100644 --- a/us_manager/us_manager_common.h +++ b/us_manager/us_manager_common.h @@ -32,11 +32,13 @@ static inline unsigned long swap_do_mmap(struct file *filp, unsigned long addr, unsigned long flag, unsigned long offset) { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0) unsigned long populate; return do_mmap_pgoff(filp, addr, len, prot, flag, offset, &populate); -#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0) */ +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 5, 0) + return do_mmap_pgoff(filp, addr, len, prot, flag, offset); +#else return do_mmap(filp, addr, len, prot, flag, offset); #endif }