X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2FLINUX%2Fosi_compat.h;h=4999b89b93b36b8ce87f37a36e24806f8cdfd33b;hp=d236081431d613999fc6222344785245329fb97a;hb=1626986bd6d70c526376cf7cedfd3ebbf6d3588a;hpb=6d6a28720f4eae4652f2628fdfcc30983916f39d diff --git a/src/afs/LINUX/osi_compat.h b/src/afs/LINUX/osi_compat.h index d236081..4999b89 100644 --- a/src/afs/LINUX/osi_compat.h +++ b/src/afs/LINUX/osi_compat.h @@ -627,14 +627,18 @@ afs_truncate(struct inode *inode, int len) } static inline struct proc_dir_entry * -afs_proc_create(char *name, umode_t mode, struct proc_dir_entry *parent, struct file_operations *fops) { +#if defined(HAVE_LINUX_STRUCT_PROC_OPS) +afs_proc_create(char *name, umode_t mode, struct proc_dir_entry *parent, struct proc_ops *ops) { +#else +afs_proc_create(char *name, umode_t mode, struct proc_dir_entry *parent, struct file_operations *ops) { +#endif #if defined(HAVE_LINUX_PROC_CREATE) - return proc_create(name, mode, parent, fops); + return proc_create(name, mode, parent, ops); #else struct proc_dir_entry *entry; entry = create_proc_entry(name, mode, parent); if (entry) - entry->proc_fops = fops; + entry->proc_fops = ops; return entry; #endif }