1 #include <linux/module.h> 2 #include <linux/fs.h> 3 4 #ifdef CONFIG_CGROUP_DEVICE 5 extern int devcgroup_inode_permission(struct inode *inode, int mask); 6 extern int devcgroup_inode_mknod(int mode, dev_t dev); 7 #else devcgroup_inode_permission(struct inode * inode,int mask)8static inline int devcgroup_inode_permission(struct inode *inode, int mask) 9 { return 0; } devcgroup_inode_mknod(int mode,dev_t dev)10static inline int devcgroup_inode_mknod(int mode, dev_t dev) 11 { return 0; } 12 #endif 13