]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/proc_fs.h
[PATCH] getting rid of all casts of k[cmz]alloc() calls
[linux-2.6-omap-h63xx.git] / include / linux / proc_fs.h
index 57f70bc8b24bba1bf3f9e9336a1a10b01945778c..87dec8fe6de900da1c495175144e21f99a1bf6b1 100644 (file)
@@ -244,13 +244,15 @@ static inline void kclist_add(struct kcore_list *new, void *addr, size_t size)
 extern void kclist_add(struct kcore_list *, void *, size_t);
 #endif
 
+union proc_op {
+       int (*proc_get_link)(struct inode *, struct dentry **, struct vfsmount **);
+       int (*proc_read)(struct task_struct *task, char *page);
+};
+
 struct proc_inode {
        struct pid *pid;
        int fd;
-       union {
-               int (*proc_get_link)(struct inode *, struct dentry **, struct vfsmount **);
-               int (*proc_read)(struct task_struct *task, char *page);
-       } op;
+       union proc_op op;
        struct proc_dir_entry *pde;
        struct inode vfs_inode;
 };