diff options
author | Namjae Jeon <[email protected]> | 2021-03-30 14:43:16 +0900 |
---|---|---|
committer | Steve French <[email protected]> | 2021-05-10 19:15:31 -0500 |
commit | a36abeaaf00f8bd07af4b530f12b9a64dc15c777 (patch) | |
tree | 2e1b9e65f5ccb7e3fc9fb438ed4ba85b3ed21695 | |
parent | 5365564901778d96a81e00e34c804d4fb05f0093 (diff) |
cifsd: fix implicit declaration of function 'groups_alloc'
kernel test robot reported:
fs/cifsd/smb_common.c: In function 'ksmbd_override_fsids':
>> fs/cifsd/smb_common.c:613:7: error: implicit declaration of function
>> 'groups_alloc'; did you mean 'cgroup_sk_alloc'?
>> [-Werror=implicit-function-declaration]
613 | gi = groups_alloc(0);
| ^~~~~~~~~~~~
| cgroup_sk_alloc
fs/cifsd/smb_common.c:613:5: warning: assignment to 'struct
group_info *' from 'int' makes pointer from integer without a cast
[-Wint-conversion]
613 | gi = groups_alloc(0);
| ^
>> fs/cifsd/smb_common.c:618:2: error: implicit declaration of function
>> 'set_groups'; did you mean 'get_cgroup_ns'?
>> [-Werror=implicit-function-declaration]
618 | set_groups(cred, gi);
| ^~~~~~~~~~
| get_cgroup_ns
cc1: some warnings being treated as errors
This patch add depends on MULTIUSER.
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
-rw-r--r-- | fs/cifsd/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifsd/Kconfig b/fs/cifsd/Kconfig index 8c5dd9a44401..37fd9124129b 100644 --- a/fs/cifsd/Kconfig +++ b/fs/cifsd/Kconfig @@ -1,6 +1,7 @@ config SMB_SERVER tristate "SMB server support (EXPERIMENTAL)" depends on INET + depends on MULTIUSER select NLS select NLS_UTF8 select CRYPTO |