]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifsd: fix implicit declaration of function 'groups_alloc'
authorNamjae Jeon <namjae.jeon@samsung.com>
Tue, 30 Mar 2021 05:43:16 +0000 (14:43 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 12 Apr 2021 04:22:20 +0000 (23:22 -0500)
commit1d0c7207fbdbca823f445ab3b6107c5a0ae71ed6
tree6ad476ee760b861621da1dd08255336bfc31de93
parent8af71edd93c30c331b0ccca9f3ae2a796a2ba019
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 <lkp@intel.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/Kconfig