]> 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, 12 Apr 2021 04:22:18 +0000 (23:22 -0500)
commit340f38efb097bbb5284b85cd8298fc4d5bd453d9
tree2f2f466162ef3c3ce9ddea48b60a56da3e18f2c2
parentb60043f03009e6ae3f20549499811ce2f7758f4e
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