mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
sys_sysfs: Add CONFIG_SYSFS_SYSCALL
sys_sysfs is an obsolete system call no longer supported by libc. - This patch adds a default CONFIG_SYSFS_SYSCALL=y - Option can be turned off in expert mode. - cond_syscall added to kernel/sys_ni.c [[email protected]: tweak Kconfig help text] Signed-off-by: Fabian Frederick <[email protected]> Cc: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e3a0cfdc8c
commit
6af9f7bf3c
3 changed files with 13 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ int unregister_filesystem(struct file_system_type * fs)
|
|||
|
||||
EXPORT_SYMBOL(unregister_filesystem);
|
||||
|
||||
#ifdef CONFIG_SYSFS_SYSCALL
|
||||
static int fs_index(const char __user * __name)
|
||||
{
|
||||
struct file_system_type * tmp;
|
||||
|
|
@ -199,6 +200,7 @@ SYSCALL_DEFINE3(sysfs, int, option, unsigned long, arg1, unsigned long, arg2)
|
|||
}
|
||||
return retval;
|
||||
}
|
||||
#endif
|
||||
|
||||
int __init get_filesystem_list(char *buf)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue