X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Flinux%2Fshm.h;h=ad2e3af6599710d43269a7f4c243ebd90171925d;hb=805f53f085346b6765eda02820721a14ce0d644f;hp=a2c896ad0befa6819dbae3e1ffd47b1679597346;hpb=3f00d3e8fb963968a922d821a9a53b503b687e81;p=powerpc.git diff --git a/include/linux/shm.h b/include/linux/shm.h index a2c896ad0b..ad2e3af659 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__ */