mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 10:50:53 +07:00
Fix unused variable warning when CIFS POSIX disabled
Fix unused variable warning when CONFIG_CIFS_POSIX disabled. fs/cifs/ioctl.c: In function 'cifs_ioctl': >> fs/cifs/ioctl.c:40:8: warning: unused variable 'ExtAttrMask' [-Wunused-variable] __u64 ExtAttrMask = 0; ^ Pointed out by 0-DAY kernel build testing backend Signed-off-by: Steve French <smfrench@gmail.com>
This commit is contained in:
parent
c7f508a99b
commit
f10d9ba405
@ -37,7 +37,6 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
|
|||||||
struct cifsFileInfo *pSMBFile = filep->private_data;
|
struct cifsFileInfo *pSMBFile = filep->private_data;
|
||||||
struct cifs_tcon *tcon;
|
struct cifs_tcon *tcon;
|
||||||
__u64 ExtAttrBits = 0;
|
__u64 ExtAttrBits = 0;
|
||||||
__u64 ExtAttrMask = 0;
|
|
||||||
__u64 caps;
|
__u64 caps;
|
||||||
|
|
||||||
xid = get_xid();
|
xid = get_xid();
|
||||||
@ -54,6 +53,7 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
|
|||||||
caps = le64_to_cpu(tcon->fsUnixInfo.Capability);
|
caps = le64_to_cpu(tcon->fsUnixInfo.Capability);
|
||||||
#ifdef CONFIG_CIFS_POSIX
|
#ifdef CONFIG_CIFS_POSIX
|
||||||
if (CIFS_UNIX_EXTATTR_CAP & caps) {
|
if (CIFS_UNIX_EXTATTR_CAP & caps) {
|
||||||
|
__u64 ExtAttrMask = 0;
|
||||||
rc = CIFSGetExtAttr(xid, tcon,
|
rc = CIFSGetExtAttr(xid, tcon,
|
||||||
pSMBFile->fid.netfid,
|
pSMBFile->fid.netfid,
|
||||||
&ExtAttrBits, &ExtAttrMask);
|
&ExtAttrBits, &ExtAttrMask);
|
||||||
|
Loading…
Reference in New Issue
Block a user