|
发表于 2010-11-9 19:26:23
|
显示全部楼层
- #ifdef CONFIG_COMPAT
- static long autofs_root_compat_ioctl(struct file *filp,
- unsigned int cmd, unsigned long arg)
- {
- struct inode *inode = filp->f_path.dentry->d_inode;
- int ret;
- lock_kernel();
- if (cmd == AUTOFS_IOC_READY || cmd == AUTOFS_IOC_FAIL)
- ret = autofs_do_root_ioctl(inode, filp, cmd, arg);
- else
- ret = autofs_do_root_ioctl(inode, filp, cmd,
- (unsigned long)compat_ptr(arg));
- unlock_kernel();
- return ret;
- }
- #endif
复制代码
被ifdef包起来了,应该再加上else,然后只return 0 |
|