X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fshm.h;h=ad2e3af6599710d43269a7f4c243ebd90171925d;hb=28e8351ac22de25034e048c680014ad824323c65;hp=a2c896ad0befa6819dbae3e1ffd47b1679597346;hpb=383f9749505cef0a30dbd7109db7fe469aa64753;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/shm.h b/include/linux/shm.h index a2c896ad0be..ad2e3af6599 100644 --- a/include/linux/shm.h +++ b/include/linux/shm.h @@ -96,12 +96,17 @@ struct shmid_kernel /* private to the kernel */ #ifdef CONFIG_SYSVIPC long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr); +extern int is_file_shm_hugepages(struct file *file); #else static inline long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr) { return -ENOSYS; } +static inline int is_file_shm_hugepages(struct file *file) +{ + return 0; +} #endif #endif /* __KERNEL__ */