]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifsd: fix warning: variable 'total_ace_size' and 'posix_ccontext' set but not used
authorNamjae Jeon <namjae.jeon@samsung.com>
Sun, 21 Mar 2021 08:30:49 +0000 (17:30 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 19 Apr 2021 00:20:49 +0000 (19:20 -0500)
commitf6873c9d9b46e7c5212486f8f113103d639571c3
treeba441784361b6d1eda6ad6410f54391f4b76ca01
parent419cdb94c7f269f3a1e14d242a5745c2ad37bb4a
cifsd: fix warning: variable 'total_ace_size' and 'posix_ccontext' set but not used

kernel test robot reported warnings:

   fs/cifsd/smbacl.c: In function 'parse_sec_desc':
>> fs/cifsd/smbacl.c:786:6: warning: variable 'total_ace_size' set but
not used [-Wunused-but-set-variable]
     786 |  int total_ace_size = 0, pntsd_type;
         |      ^~~~~~~~~~~~~~
--
   fs/cifsd/smb2pdu.c: In function 'smb2_open':
>> fs/cifsd/smb2pdu.c:3285:26: warning: variable 'posix_ccontext' set but
not used [-Wunused-but-set-variable]
    3285 |   struct create_context *posix_ccontext;
         |                          ^~~~~~~~~~~~~~

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/smb2pdu.c
fs/cifsd/smbacl.c